TIMESTANP_TYPE
- the time typepublic interface TimeTrackingModel<TIMESTANP_TYPE,TIMESTAMP_TYPE_RESOLVER extends org.osgl.Osgl.Function<TIMESTANP_TYPE,java.lang.Long>> extends Timestamped
The model with time tracking built-in
Modifier and Type | Method and Description |
---|---|
TIMESTANP_TYPE |
_created()
Returns the first time this model is created and saved
|
void |
_created(TIMESTANP_TYPE timestamp)
Set the created timestamp.
|
TIMESTANP_TYPE |
_lastModified()
Returns the last time this model has been updated and saved
|
void |
_lastModified(TIMESTANP_TYPE timestamp)
Set the last modified timestamp
|
java.lang.Class<TIMESTANP_TYPE> |
_timestampType()
Returns the class represents the timestamp type used to track the model creation/updating events
|
TIMESTAMP_TYPE_RESOLVER |
_timestampTypeResolver()
Returns the instance that can resolve the timestamp type into long
|
_timestamp
TIMESTANP_TYPE _created()
Returns the first time this model is created and saved
void _created(TIMESTANP_TYPE timestamp)
Set the created timestamp.
Note not to be used by application
timestamp
- the timestampTIMESTANP_TYPE _lastModified()
Returns the last time this model has been updated and saved
void _lastModified(TIMESTANP_TYPE timestamp)
Set the last modified timestamp
Note not to be used by application
timestamp
- the timestampjava.lang.Class<TIMESTANP_TYPE> _timestampType()
Returns the class represents the timestamp type used to track the model creation/updating events
TIMESTAMP_TYPE_RESOLVER _timestampTypeResolver()
Returns the instance that can resolve the timestamp type into long
Copyright © 2014–2017 ActFramework. All rights reserved.