Class CounterGeneration
java.lang.Object
ch.tocco.nice2.businessunit.impl.counter.CounterGeneration
- All Implemented Interfaces:
Serializable
,org.hibernate.generator.AnnotationBasedGenerator<Counter>
,org.hibernate.generator.BeforeExecutionGenerator
,org.hibernate.generator.Generator
,org.hibernate.generator.OnExecutionGenerator
,org.hibernate.tuple.AnnotationValueGeneration<Counter>
,org.hibernate.tuple.ValueGeneration
public class CounterGeneration
extends Object
implements org.hibernate.tuple.AnnotationValueGeneration<Counter>
Creates counters based on 'Counter' table for fields of type 'counter'.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.hibernate.tuple.GenerationTiming
org.hibernate.tuple.ValueGenerator
<?> void
initialize
(Counter annotation, Class<?> propertyType) boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.tuple.AnnotationValueGeneration
initialize
Methods inherited from interface org.hibernate.generator.Generator
allowAssignedIdentifiers, generatedOnExecution, generatesOnInsert, generatesOnUpdate, generatesSometimes
Methods inherited from interface org.hibernate.generator.OnExecutionGenerator
getGeneratedIdentifierDelegate, getUniqueKeyPropertyNames
Methods inherited from interface org.hibernate.tuple.ValueGeneration
generate, generatedOnExecution, getDatabaseGeneratedReferencedColumnValue, getEventTypes, getReferencedColumnValues, referenceColumnsInSql, writePropertyValue
-
Constructor Details
-
CounterGeneration
public CounterGeneration()
-
-
Method Details
-
initialize
- Specified by:
initialize
in interfaceorg.hibernate.tuple.AnnotationValueGeneration<Counter>
-
getGenerationTiming
public org.hibernate.tuple.GenerationTiming getGenerationTiming()- Specified by:
getGenerationTiming
in interfaceorg.hibernate.tuple.ValueGeneration
-
getValueGenerator
public org.hibernate.tuple.ValueGenerator<?> getValueGenerator()- Specified by:
getValueGenerator
in interfaceorg.hibernate.tuple.ValueGeneration
-
referenceColumnInSql
public boolean referenceColumnInSql()- Specified by:
referenceColumnInSql
in interfaceorg.hibernate.tuple.ValueGeneration
-
getDatabaseGeneratedReferencedColumnValue
- Specified by:
getDatabaseGeneratedReferencedColumnValue
in interfaceorg.hibernate.tuple.ValueGeneration
-