public class TransactionInfo extends Object
Modifier and Type | Field and Description |
---|---|
protected Integer |
abbreviatedLength |
protected Map<String,String> |
additionalParams |
protected String |
beginStack |
protected CompressedItem |
compressedBeginStack |
protected LinkedBlockingQueue<CompressedItem> |
compressedQueries |
protected String |
currentStackElement |
protected Boolean |
decompressStatementForLog |
protected WeakReference<org.springframework.transaction.TransactionDefinition> |
definition |
protected WeakReference<javax.persistence.EntityManager> |
entityManager |
protected Boolean |
faultStateDetected |
protected Boolean |
isAbbreviated |
protected Boolean |
isCompressed |
protected Long |
lastLogTime |
protected Integer |
maxQueryListLength |
protected LinkedBlockingQueue<String> |
queries |
protected String |
requestContext |
protected Long |
startTime |
protected Long |
stuckThreadStartTime |
protected WeakReference<Thread> |
thread |
protected String |
threadId |
protected String |
threadName |
protected Integer |
totalQueries |
Constructor and Description |
---|
TransactionInfo() |
TransactionInfo(javax.persistence.EntityManager em,
org.springframework.transaction.TransactionDefinition definition,
boolean isCompressed,
boolean isAbbreviated,
int abbreviatedLength,
boolean decompressStatementForLog,
int maxQueryListLength) |
protected WeakReference<javax.persistence.EntityManager> entityManager
protected WeakReference<org.springframework.transaction.TransactionDefinition> definition
protected String beginStack
protected CompressedItem compressedBeginStack
protected WeakReference<Thread> thread
protected String threadName
protected String threadId
protected Long startTime
protected LinkedBlockingQueue<String> queries
protected LinkedBlockingQueue<CompressedItem> compressedQueries
protected String currentStackElement
protected Long lastLogTime
protected Long stuckThreadStartTime
protected Boolean faultStateDetected
protected Boolean isCompressed
protected String requestContext
protected Boolean isAbbreviated
protected Integer abbreviatedLength
protected Boolean decompressStatementForLog
protected Integer maxQueryListLength
protected Integer totalQueries
public TransactionInfo()
public TransactionInfo(javax.persistence.EntityManager em, org.springframework.transaction.TransactionDefinition definition, boolean isCompressed, boolean isAbbreviated, int abbreviatedLength, boolean decompressStatementForLog, int maxQueryListLength)
public javax.persistence.EntityManager getEntityManager()
public void setEntityManager(javax.persistence.EntityManager entityManager)
public org.springframework.transaction.TransactionDefinition getDefinition()
public void setDefinition(org.springframework.transaction.TransactionDefinition definition)
public String getBeginStack()
public void setBeginStack(String beginStack)
public CompressedItem getCompressedBeginStack()
public void setCompressedBeginStack(CompressedItem compressedBeginStack)
public Thread getThread()
public void setThread(Thread thread)
public String getThreadName()
public void setThreadName(String threadName)
public String getThreadId()
public void setThreadId(String threadId)
public String getCurrentStackElement()
public void setCurrentStackElement(String currentStackElement)
public Long getLastLogTime()
public void setLastLogTime(Long lastLogTime)
public Long getStuckThreadStartTime()
public void setStuckThreadStartTime(Long stuckThreadStartTime)
public Long getStartTime()
public void setStartTime(Long startTime)
public LinkedBlockingQueue<String> getQueries()
public void setQueries(LinkedBlockingQueue<String> queries)
public LinkedBlockingQueue<CompressedItem> getCompressedQueries()
public void setCompressedQueries(LinkedBlockingQueue<CompressedItem> compressedQueries)
public Boolean getDecompressStatementForLog()
public void setDecompressStatementForLog(Boolean decompressStatementForLog)
public Boolean getFaultStateDetected()
public void setFaultStateDetected(Boolean faultStateDetected)
public Boolean getAbbreviated()
public void setAbbreviated(Boolean abbreviated)
public Integer getAbbreviatedLength()
public void setAbbreviatedLength(Integer abbreviatedLength)
public Integer getMaxQueryListLength()
public void setMaxQueryListLength(Integer maxQueryListLength)
public void clear()
public void logStatement(String statement)
protected void initialize()
Copyright © 2022. All rights reserved.