|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbutler.sql.record.RecordListener.BaseImpl
butler.ext.log.TimestampListener
public class TimestampListener
Record listener that ensure that a timestamp column is updated with current timestamp.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface butler.sql.record.RecordListener |
---|
RecordListener.BaseImpl |
Constructor Summary | |
---|---|
TimestampListener(Column col)
|
Method Summary | |
---|---|
void |
beforeInsert(Record rec)
|
void |
beforeUpdate(Record rec)
|
void |
setTimestampCallback(TimestampCallback callback)
|
Methods inherited from class butler.sql.record.RecordListener.BaseImpl |
---|
afterDelete, afterInsert, afterSet, afterUpdate, beforeDelete, beforeSet, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimestampListener(Column col)
Method Detail |
---|
public void setTimestampCallback(TimestampCallback callback)
public void beforeUpdate(Record rec) throws java.lang.Exception
beforeUpdate
in interface RecordListener
beforeUpdate
in class RecordListener.BaseImpl
java.lang.Exception
public void beforeInsert(Record rec) throws java.lang.Exception
beforeInsert
in interface RecordListener
beforeInsert
in class RecordListener.BaseImpl
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |