|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.addsimplicity.anicetus.entity.GlobalInfo
org.addsimplicity.anicetus.entity.ExecInfo
org.addsimplicity.anicetus.hibernate.HibernateTelemetry
public class HibernateTelemetry
The hibernate telemetry artifact tracks the actions performed by an application against the database through the Hibernate framework. The state captured provides information about what entities are involved, what operations were performed, what tables were involved, and what sql was executed. It also tracks timing information about the Hibernate transaction.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Constructor Summary | |
---|---|
HibernateTelemetry()
Construct a telemetry artifact without any parent. |
|
HibernateTelemetry(org.addsimplicity.anicetus.entity.GlobalInfo parent)
Construct a telemetry artifact with the specified parent. |
Method Summary | |
---|---|
void |
addHibernateEntity(HibernateEntity entity)
Add an entity to this artifact. |
void |
addSQLStatement(java.lang.String statement)
Add a SQL statement to the telemetry. |
void |
addTable(java.lang.String table)
Add a referenced table to the telemetry. |
java.util.Collection<HibernateEntity> |
getHibernateEntities()
Return an immutable collection of entities that were involved in the Hibernate transaction. |
java.util.Collection<java.lang.String> |
getSQLStatements()
Return an immutable collection of SQL statements that were executed by Hibernate for this transaction. |
java.util.Collection<java.lang.String> |
getTables()
Return an immutable set of unique table names involved in this Hibernate transaction. |
void |
setHibernateEntities(java.util.Collection<HibernateEntity> entities)
Set the entities involved in the Hibernate transaction. |
void |
setSQLStatements(java.util.Collection<java.lang.String> statements)
Set the collection of SQL statements involved in the Hibernate transaction. |
void |
setTables(java.util.Collection<java.lang.String> tables)
Set the collection of tables involved in the Hibernate transaction. |
Methods inherited from class org.addsimplicity.anicetus.entity.ExecInfo |
---|
addChild, complete, getChildren, getDuration, getStatus, setDuration, setStatus, startTimer |
Methods inherited from class org.addsimplicity.anicetus.entity.GlobalInfo |
---|
clear, containsKey, containsValue, entrySet, equals, get, getEntityId, getExecutionContext, getMessage, getParentId, getReportingNode, getTimeStamp, hashCode, isEmpty, keySet, put, putAll, remove, setEntityId, setExceptionAsMessage, setExecutionContext, setMessage, setParentId, setReportingNode, setTimeStamp, size, values |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HibernateTelemetry()
public HibernateTelemetry(org.addsimplicity.anicetus.entity.GlobalInfo parent)
parent
- The parent of the artifact.Method Detail |
---|
public void addHibernateEntity(HibernateEntity entity)
entity
- The entity to add to the telemetry.public void addSQLStatement(java.lang.String statement)
statement
- The SQL statement generated by Hibernate.public void addTable(java.lang.String table)
table
- The table name.public java.util.Collection<HibernateEntity> getHibernateEntities()
public java.util.Collection<java.lang.String> getSQLStatements()
public java.util.Collection<java.lang.String> getTables()
public void setHibernateEntities(java.util.Collection<HibernateEntity> entities)
entities
- The entities involved in the Hibernate transaction.public void setSQLStatements(java.util.Collection<java.lang.String> statements)
statements
- The SQL statements involved in the Hibernate transaction.public void setTables(java.util.Collection<java.lang.String> tables)
tables
- The collection of tables involved in the transaction.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |