Class AbstractFieldGeneration<T extends Annotation>

java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.pojo.generator.AbstractFieldGeneration<T>
All Implemented Interfaces:
Serializable, org.hibernate.generator.AnnotationBasedGenerator<T>, org.hibernate.generator.BeforeExecutionGenerator, org.hibernate.generator.Generator, org.hibernate.generator.OnExecutionGenerator, org.hibernate.tuple.AnnotationValueGeneration<T>, org.hibernate.tuple.ValueGeneration
Direct Known Subclasses:
AlwaysFieldGeneration, InsertFieldGeneration

public abstract class AbstractFieldGeneration<T extends Annotation> extends Object implements org.hibernate.tuple.AnnotationValueGeneration<T>
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected abstract String
    getFieldName(T annotation)
     
    protected abstract String
    getFieldType(T annotation)
     
    org.hibernate.tuple.ValueGenerator<?>
     
    void
    initialize(T 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, getGenerationTiming, getReferencedColumnValues, referenceColumnsInSql, writePropertyValue
  • Constructor Details

    • AbstractFieldGeneration

      public AbstractFieldGeneration()
  • Method Details

    • initialize

      public void initialize(T annotation, Class<?> propertyType)
      Specified by:
      initialize in interface org.hibernate.tuple.AnnotationValueGeneration<T extends Annotation>
    • getFieldName

      protected abstract String getFieldName(T annotation)
    • getFieldType

      protected abstract String getFieldType(T annotation)
    • 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