|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.LogControl
public class LogControl
Gives information about the current transaction and gives log implementations limited access to the database.
Field Summary | |
---|---|
private WeakReference<DbControl> |
dc
|
private org.hibernate.StatelessSession |
session
|
private TransactionDetails |
transactionDetails
|
Constructor Summary | |
---|---|
LogControl(DbControl dc)
|
Method Summary | |
---|---|
org.hibernate.Query |
createHqlQuery(String hql)
Creates a Hibernate HQL query. |
org.hibernate.Query |
createSqlQuery(String sql)
Creates a Hibernate SQL query. |
private org.hibernate.StatelessSession |
getSession()
|
TransactionDetails |
getTransactionDetails()
Get information about the current transaction. |
void |
log(ChangeHistoryData history)
Add a main entry the change history table. |
void |
log(ChangeHistoryDetailData detail)
Adds information about a modified entity to the change history table. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final WeakReference<DbControl> dc
private TransactionDetails transactionDetails
private org.hibernate.StatelessSession session
Constructor Detail |
---|
LogControl(DbControl dc)
Method Detail |
---|
public TransactionDetails getTransactionDetails()
public void log(ChangeHistoryData history)
log(ChangeHistoryDetailData)
.
history
- A fully initialized ChangeHistoryData objectpublic void log(ChangeHistoryDetailData detail)
detail
- A fully initialized ChangeHistoryDetailData object
including a link to ChangeHistoryData
that has
been logged with log(ChangeHistoryData)
public org.hibernate.Query createHqlQuery(String hql)
public org.hibernate.Query createSqlQuery(String sql)
private org.hibernate.StatelessSession getSession()
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |