org.hibernate.tool.hbm2x.pojo
Class ComponentPOJOClass

java.lang.Object
  extended by org.hibernate.tool.hbm2x.pojo.BasicPOJOClass
      extended by org.hibernate.tool.hbm2x.pojo.ComponentPOJOClass
All Implemented Interfaces:
MetaAttributeConstants, ImportContext, POJOClass

public class ComponentPOJOClass
extends BasicPOJOClass


Field Summary
 
Fields inherited from class org.hibernate.tool.hbm2x.pojo.BasicPOJOClass
c2j, importContext, meta
 
Fields inherited from interface org.hibernate.tool.hbm2x.MetaAttributeConstants
CLASS_DESCRIPTION, CLASS_MODIFIER, EXTENDS, GEN_PROPERTY, GENERATED_CLASS, IMPLEMENTS, INTERFACE, SCOPE_CLASS
 
Constructor Summary
ComponentPOJOClass(org.hibernate.mapping.Component component, Cfg2JavaTool cfg)
           
 
Method Summary
 String generateAnnIdGenerator()
           
 String generateAnnTableUniqueConstraint()
           
 String generateBasicAnnotation(org.hibernate.mapping.Property property)
           
 Iterator getAllPropertiesIterator()
          returns the properties that would be visible on this entity as a pojo.
 Object getDecoratedObject()
           
 String getExtends()
           
 org.hibernate.mapping.Property getIdentifierProperty()
           
 String getImplements()
           
protected  String getMappedClassName()
           
 List getPropertiesForFullConstructor()
           
 List getPropertiesForMinimalConstructor()
           
 List getPropertyClosureForFullConstructor()
           
 List getPropertyClosureForMinimalConstructor()
           
 List getPropertyClosureForSuperclassFullConstructor()
           
 List getPropertyClosureForSuperclassMinimalConstructor()
           
 POJOClass getSuperClass()
           
 org.hibernate.mapping.Property getVersionProperty()
           
 boolean hasIdentifierProperty()
           
 boolean hasVersionProperty()
           
 boolean isComponent()
           
 boolean isSubclass()
           
 boolean needsAnnTableUniqueConstraints()
           
 String toString()
           
 
Methods inherited from class org.hibernate.tool.hbm2x.pojo.BasicPOJOClass
appendCommonColumnInfo, beanCapitalize, generateAnnColumnAnnotation, generateEquals, generateEquals, generateHashCode, generateImports, getClassJavaDoc, getClassModifiers, getCollectionNameFor, getDeclarationName, getDeclarationType, getEqualsHashCodePropertiesIterator, getExtendsDeclaration, getExtraClassCode, getFieldDescription, getFieldInitialization, getFieldJavaDoc, getFieldModifiers, getGeneratedClassName, getGetterSignature, getImplementsDeclaration, getJavaTypeName, getMetaAsBool, getMetaAsBool, getMetaAsString, getMetaAsString, getMetaAttribAsBool, getPackageDeclaration, getPackageDeclaration, getPackageName, getPropertyGetModifiers, getPropertyName, getPropertySetModifiers, getQualifiedDeclarationName, getShortName, getToStringPropertiesIterator, hasFieldInitializor, hasFieldJavaDoc, hasMetaAttribute, hasMetaAttribute, importType, init, isComponent, isInterface, isRequiredInConstructor, needsEqualsHashCode, needsFullConstructor, needsMinimalConstructor, needsToString, qualifyInnerClass, staticImport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComponentPOJOClass

public ComponentPOJOClass(org.hibernate.mapping.Component component,
                          Cfg2JavaTool cfg)
Method Detail

getMappedClassName

protected String getMappedClassName()
Specified by:
getMappedClassName in class BasicPOJOClass

getExtends

public String getExtends()
Specified by:
getExtends in interface POJOClass
Specified by:
getExtends in class BasicPOJOClass

getImplements

public String getImplements()
Specified by:
getImplements in interface POJOClass
Specified by:
getImplements in class BasicPOJOClass

getAllPropertiesIterator

public Iterator getAllPropertiesIterator()
Description copied from class: BasicPOJOClass
returns the properties that would be visible on this entity as a pojo. This does not return *all* properties since hibernate has certain properties that are only relevant in context of persistence.

Specified by:
getAllPropertiesIterator in interface POJOClass
Specified by:
getAllPropertiesIterator in class BasicPOJOClass

isComponent

public boolean isComponent()

hasIdentifierProperty

public boolean hasIdentifierProperty()

needsAnnTableUniqueConstraints

public boolean needsAnnTableUniqueConstraints()

generateBasicAnnotation

public String generateBasicAnnotation(org.hibernate.mapping.Property property)
Specified by:
generateBasicAnnotation in interface POJOClass
Overrides:
generateBasicAnnotation in class BasicPOJOClass

generateAnnIdGenerator

public String generateAnnIdGenerator()

generateAnnTableUniqueConstraint

public String generateAnnTableUniqueConstraint()

getDecoratedObject

public Object getDecoratedObject()

isSubclass

public boolean isSubclass()

getPropertiesForFullConstructor

public List getPropertiesForFullConstructor()

getPropertyClosureForFullConstructor

public List getPropertyClosureForFullConstructor()

getPropertyClosureForSuperclassFullConstructor

public List getPropertyClosureForSuperclassFullConstructor()

getPropertiesForMinimalConstructor

public List getPropertiesForMinimalConstructor()

getPropertyClosureForMinimalConstructor

public List getPropertyClosureForMinimalConstructor()

getPropertyClosureForSuperclassMinimalConstructor

public List getPropertyClosureForSuperclassMinimalConstructor()

getSuperClass

public POJOClass getSuperClass()

toString

public String toString()
Overrides:
toString in class Object

getIdentifierProperty

public org.hibernate.mapping.Property getIdentifierProperty()

hasVersionProperty

public boolean hasVersionProperty()

getVersionProperty

public org.hibernate.mapping.Property getVersionProperty()