Class TransactionInfo
java.lang.Object
org.broadleafcommerce.common.persistence.transaction.TransactionInfo
POJO for in-progress transaction information. Includes thread and query information.
- Author:
- Jeff Fischer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Integerprotected Stringprotected CompressedItemprotected LinkedBlockingQueue<CompressedItem>protected Stringprotected Booleanprotected WeakReference<org.springframework.transaction.TransactionDefinition>protected WeakReference<jakarta.persistence.EntityManager>protected Booleanprotected Booleanprotected Booleanprotected Longprotected Integerprotected LinkedBlockingQueue<String>protected Stringprotected Longprotected Longprotected WeakReference<Thread>protected Stringprotected Stringprotected Integer -
Constructor Summary
ConstructorsConstructorDescriptionTransactionInfo(jakarta.persistence.EntityManager em, org.springframework.transaction.TransactionDefinition definition, boolean isCompressed, boolean isAbbreviated, int abbreviatedLength, boolean decompressStatementForLog, int maxQueryListLength) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()org.springframework.transaction.TransactionDefinitionjakarta.persistence.EntityManagerprotected voidvoidlogStatement(String statement) voidsetAbbreviated(Boolean abbreviated) voidsetAbbreviatedLength(Integer abbreviatedLength) voidsetAdditionalParams(Map<String, String> additionalParams) voidsetBeginStack(String beginStack) voidsetCompressedBeginStack(CompressedItem compressedBeginStack) voidsetCompressedQueries(LinkedBlockingQueue<CompressedItem> compressedQueries) voidsetCurrentStackElement(String currentStackElement) voidsetDecompressStatementForLog(Boolean decompressStatementForLog) voidsetDefinition(org.springframework.transaction.TransactionDefinition definition) voidsetEntityManager(jakarta.persistence.EntityManager entityManager) voidsetFaultStateDetected(Boolean faultStateDetected) voidsetLastLogTime(Long lastLogTime) voidsetMaxQueryListLength(Integer maxQueryListLength) voidsetQueries(LinkedBlockingQueue<String> queries) voidsetStartTime(Long startTime) voidsetStuckThreadStartTime(Long stuckThreadStartTime) voidvoidsetThreadId(String threadId) voidsetThreadName(String threadName) toString()
-
Field Details
-
entityManager
-
definition
-
beginStack
-
compressedBeginStack
-
thread
-
threadName
-
threadId
-
startTime
-
queries
-
compressedQueries
-
additionalParams
-
currentStackElement
-
lastLogTime
-
stuckThreadStartTime
-
faultStateDetected
-
isCompressed
-
requestContext
-
isAbbreviated
-
abbreviatedLength
-
decompressStatementForLog
-
maxQueryListLength
-
totalQueries
-
-
Constructor Details
-
TransactionInfo
public TransactionInfo() -
TransactionInfo
public TransactionInfo(jakarta.persistence.EntityManager em, org.springframework.transaction.TransactionDefinition definition, boolean isCompressed, boolean isAbbreviated, int abbreviatedLength, boolean decompressStatementForLog, int maxQueryListLength)
-
-
Method Details
-
getEntityManager
public jakarta.persistence.EntityManager getEntityManager() -
setEntityManager
public void setEntityManager(jakarta.persistence.EntityManager entityManager) -
getDefinition
public org.springframework.transaction.TransactionDefinition getDefinition() -
setDefinition
public void setDefinition(org.springframework.transaction.TransactionDefinition definition) -
getBeginStack
-
setBeginStack
-
getCompressedBeginStack
-
setCompressedBeginStack
-
getThread
-
setThread
-
getThreadName
-
setThreadName
-
getThreadId
-
setThreadId
-
getCurrentStackElement
-
setCurrentStackElement
-
getLastLogTime
-
setLastLogTime
-
getStuckThreadStartTime
-
setStuckThreadStartTime
-
getStartTime
-
setStartTime
-
getAdditionalParams
-
setAdditionalParams
-
getQueries
-
setQueries
-
getCompressedQueries
-
setCompressedQueries
-
getDecompressStatementForLog
-
setDecompressStatementForLog
-
getFaultStateDetected
-
setFaultStateDetected
-
getAbbreviated
-
setAbbreviated
-
getAbbreviatedLength
-
setAbbreviatedLength
-
getMaxQueryListLength
-
setMaxQueryListLength
-
clear
public void clear() -
logStatement
-
initialize
protected void initialize() -
toString
-