Interface POJOClass

All Superinterfaces:
ImportContext
All Known Implementing Classes:
BasicPOJOClass, ComponentPOJOClass, EntityPOJOClass

public interface POJOClass extends ImportContext
Wrapper class over PersistentClass used in hbm2java and hbm2doc tool
Author:
max, Amit Bhayani
  • Method Details

    • getPackageDeclaration

      String getPackageDeclaration()
      Returns "package packagename;" where packagename is either the declared packagename, or the one provide via meta attribute "generated-class". Returns "// default package" if no package declarition available.
    • getClassModifiers

      String getClassModifiers()
    • getQualifiedDeclarationName

      String getQualifiedDeclarationName()
    • getClassJavaDoc

      String getClassJavaDoc(String fallback, int indent)
      Returns the javadoc associated with the class.
      Parameters:
      fallback - the default text if nothing else is found
      indent - how many spaces should be added
      Returns:
    • getDeclarationType

      String getDeclarationType()
      Returns:
      declaration type "interface" or "class"
    • getDeclarationName

      String getDeclarationName()
      Returns:
      unqualified classname for this class (can be changed by meta attribute "generated-class")
    • getImplementsDeclaration

      String getImplementsDeclaration()
    • getImplements

      String getImplements()
    • getExtendsDeclaration

      String getExtendsDeclaration()
    • getExtends

      String getExtends()
    • generateEquals

      String generateEquals(String thisName, String otherName, boolean useGenerics)
    • isComponent

      boolean isComponent()
    • getExtraClassCode

      String getExtraClassCode()
    • needsEqualsHashCode

      boolean needsEqualsHashCode()
    • hasIdentifierProperty

      boolean hasIdentifierProperty()
    • generateAnnColumnAnnotation

      String generateAnnColumnAnnotation(org.hibernate.mapping.Property property)
    • generateAnnIdGenerator

      String generateAnnIdGenerator()
    • generateAnnTableUniqueConstraint

      String generateAnnTableUniqueConstraint()
    • generateBasicAnnotation

      String generateBasicAnnotation(org.hibernate.mapping.Property property)
    • getAllPropertiesIterator

      Iterator<org.hibernate.mapping.Property> getAllPropertiesIterator()
    • getPackageName

      String getPackageName()
    • getShortName

      String getShortName()
    • getToStringPropertiesIterator

      Iterator<org.hibernate.mapping.Property> getToStringPropertiesIterator()
    • getEqualsHashCodePropertiesIterator

      Iterator<org.hibernate.mapping.Property> getEqualsHashCodePropertiesIterator()
    • needsToString

      boolean needsToString()
    • getFieldJavaDoc

      String getFieldJavaDoc(org.hibernate.mapping.Property property, int indent)
    • getFieldDescription

      String getFieldDescription(org.hibernate.mapping.Property property)
    • getDecoratedObject

      Object getDecoratedObject()
    • isInterface

      boolean isInterface()
    • isSubclass

      boolean isSubclass()
    • getPropertiesForFullConstructor

      List<org.hibernate.mapping.Property> getPropertiesForFullConstructor()
    • getPropertyClosureForFullConstructor

      List<org.hibernate.mapping.Property> getPropertyClosureForFullConstructor()
    • getPropertyClosureForSuperclassFullConstructor

      List<org.hibernate.mapping.Property> getPropertyClosureForSuperclassFullConstructor()
    • needsMinimalConstructor

      boolean needsMinimalConstructor()
    • needsFullConstructor

      boolean needsFullConstructor()
    • getPropertiesForMinimalConstructor

      List<org.hibernate.mapping.Property> getPropertiesForMinimalConstructor()
    • getPropertyClosureForMinimalConstructor

      List<org.hibernate.mapping.Property> getPropertyClosureForMinimalConstructor()
    • getPropertyClosureForSuperclassMinimalConstructor

      List<org.hibernate.mapping.Property> getPropertyClosureForSuperclassMinimalConstructor()
    • getSuperClass

      POJOClass getSuperClass()
    • getJavaTypeName

      String getJavaTypeName(org.hibernate.mapping.Property p, boolean useGenerics)
    • getFieldInitialization

      String getFieldInitialization(org.hibernate.mapping.Property p, boolean useGenerics)
    • getIdentifierProperty

      org.hibernate.mapping.Property getIdentifierProperty()
    • hasVersionProperty

      boolean hasVersionProperty()
    • getVersionProperty

      org.hibernate.mapping.Property getVersionProperty()