public class TimestampableListener extends Object
| Constructor and Description |
|---|
TimestampableListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
createTimestamps(Object timestampable)
Saves timestamps marked for entity creation creation.
|
protected void |
generateTimestamps(Object timestampable,
TimestampType timestampType)
Fills all marked fields with timestamps.
|
void |
updateTimestamps(Object timestampable)
Saves timestamps marked for entity update creation.
|
protected void generateTimestamps(Object timestampable, TimestampType timestampType) throws IllegalAccessException
timestampable - Object to be filled.timestampType - Type of operation to handler.IllegalAccessException - When accessing source field is impossible.public void createTimestamps(Object timestampable) throws IllegalAccessException
timestampable - Subject for timestamp handling.IllegalAccessException - When accessing source field is impossible.public void updateTimestamps(Object timestampable) throws IllegalAccessException
timestampable - Subject for timestamp handling.IllegalAccessException - When accessing source field is impossible.Copyright © 2015 RafaĆ Wrzeszcz - Wrzasq.pl. All rights reserved.