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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    org.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

      public void initialize(Counter annotation, Class<?> propertyType)
      Specified by:
      initialize in interface org.hibernate.tuple.AnnotationValueGeneration<Counter>
    • getGenerationTiming

      public org.hibernate.tuple.GenerationTiming getGenerationTiming()
      Specified by:
      getGenerationTiming in interface org.hibernate.tuple.ValueGeneration
    • getValueGenerator

      public org.hibernate.tuple.ValueGenerator<?> getValueGenerator()
      Specified by:
      getValueGenerator in interface org.hibernate.tuple.ValueGeneration
    • referenceColumnInSql

      public boolean referenceColumnInSql()
      Specified by:
      referenceColumnInSql in interface org.hibernate.tuple.ValueGeneration
    • getDatabaseGeneratedReferencedColumnValue

      public String getDatabaseGeneratedReferencedColumnValue()
      Specified by:
      getDatabaseGeneratedReferencedColumnValue in interface org.hibernate.tuple.ValueGeneration