|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.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 StatelessSession |
session
|
private TransactionDetails |
transactionDetails
|
| Constructor Summary | |
|---|---|
LogControl(DbControl dc)
|
|
| Method Summary | |
|---|---|
Query |
createHqlQuery(String hql)
Creates a Hibernate HQL query. |
Query |
createSqlQuery(String sql)
Creates a Hibernate SQL query. |
private 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 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 Query createHqlQuery(String hql)
public Query createSqlQuery(String sql)
private StatelessSession getSession()
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||