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