UpdateTimestamp.
| Modifier and Type | Field and Description |
|---|---|
| private ValueGenerator |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getDatabaseGeneratedReferencedColumnValue()
Implements org. getValueGenerator == null), if the
column will be referenced in the SQL (referenceColumnInSql() == true), what value should be
used in the SQL as the column value.
|
| public GenerationTiming | getGenerationTiming()
Implements org. |
| public ValueGenerator | getValueGenerator()
Implements org. |
| public void | initialize(UpdateTimestamp
an instance of the strategy's annotation type. Typically implementations will retrieve the
annotation's attribute values and store them in fields. annotation, Class<?> the type of the property annotated with the generator annotation. Implementations may use
the type to determine the right propertyType)ValueGenerator to be applied.Implements org. |
| public boolean | referenceColumnInSql()
Implements org. getValueGenerator() == null), should the
column be referenced in the INSERT / UPDATE SQL?
|
| generator | back to summary |
|---|---|
| private ValueGenerator<?> generator | |
| UpdateTimestampGeneration | back to summary |
|---|---|
| public UpdateTimestampGeneration() | |
| getDatabaseGeneratedReferencedColumnValue | back to summary |
|---|---|
| public String getDatabaseGeneratedReferencedColumnValue() Implements org. Doc from org. For values which are generated in the database ( Generally this will be a function call or a marker (DEFAULTS). NOTE : for in-VM generation, this will not be called and the column value will implicitly be a JDBC parameter ('?') | |
| getGenerationTiming | back to summary |
|---|---|
| public GenerationTiming getGenerationTiming() Implements org. Doc from org. When is this value generated : NEVER, INSERT, ALWAYS (INSERT+UPDATE)
| |
| getValueGenerator | back to summary |
|---|---|
| public ValueGenerator Implements org. Doc from org. Obtain the in-VM value generator.
May return
| |
| initialize | back to summary |
|---|---|
| public void initialize(UpdateTimestamp annotation, Class<?> propertyType) Implements org. Doc from org. Initializes this generation strategy for the given annotation instance.
| |
| referenceColumnInSql | back to summary |
|---|---|
| public boolean referenceColumnInSql() Implements org. Doc from org. For values which are generated in the database ( This will be false most often to have a DDL-defined DEFAULT value be applied on INSERT
| |