Class SqlLogEntry
java.lang.Object
ch.tocco.nice2.persist.core.api.hibernate.spy.SqlLogEntry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SqlLogEntrycreateLogEntry(int connectionId, String timestamp, long elapsed, String category, String prepared, String sql) intlonggetSql()org.joda.time.DateTimevoidsetCategory(String category) voidsetConnectionId(int connectionId) voidsetElapsed(long elapsed) voidsetPrepared(String prepared) voidvoidsetTimestamp(org.joda.time.DateTime timestamp)
-
Constructor Details
-
SqlLogEntry
public SqlLogEntry()
-
-
Method Details
-
createLogEntry
public static SqlLogEntry createLogEntry(int connectionId, String timestamp, long elapsed, String category, String prepared, String sql) -
getConnectionId
public int getConnectionId() -
setConnectionId
public void setConnectionId(int connectionId) -
getTimestamp
public org.joda.time.DateTime getTimestamp() -
setTimestamp
public void setTimestamp(org.joda.time.DateTime timestamp) -
getElapsed
public long getElapsed() -
setElapsed
public void setElapsed(long elapsed) -
getCategory
-
setCategory
-
getPrepared
-
setPrepared
-
getSql
-
setSql
-
getFormatedTimestamp
-