com.hudson.hibernatesynchronizer.mapping
Class HibernateComponentClass

java.lang.Object
  extended bycom.hudson.hibernatesynchronizer.mapping.BaseElement
      extended bycom.hudson.hibernatesynchronizer.mapping.HibernateClass
          extended bycom.hudson.hibernatesynchronizer.mapping.HibernateComponentClass
All Implemented Interfaces:
java.lang.Comparable, IHibernateClassProperty

public class HibernateComponentClass
extends HibernateClass
implements IHibernateClassProperty

Author:
Joe Hudson This represents data related to the 'composite-element' node of the hibernate mapping configuration file.

Field Summary
 
Fields inherited from class com.hudson.hibernatesynchronizer.mapping.HibernateClass
absoluteValueObjectClassName, TYPE_CLASS, TYPE_COMPONENT, TYPE_JOINED_SUBCLASS, TYPE_SUBCLASS
 
Fields inherited from interface com.hudson.hibernatesynchronizer.mapping.IHibernateClassProperty
LABEL_METADATA
 
Constructor Summary
HibernateComponentClass(org.w3c.dom.Node node, java.lang.String packageName, HibernateClass parent, boolean dynamic, IProject currentProject)
           
 
Method Summary
 java.lang.String getAbsoluteClassName()
          Return the fully qualified class name that represents this property
 java.lang.String getAbsoluteSignatureClassName()
          Return the fully qualified class name or interface if applicable that represents this property
 java.lang.String getClassName()
          Return the name of the class without the the package prefix that represents this property
 java.lang.String getColumn()
          This relates to no column...
 HibernateClassProperty getComponentParent()
           
 java.lang.String getFullClassName()
          Return the fully qualified class name
 java.lang.String getGetterName()
          Return the getter name (without the parenthesis) for this property
 java.lang.String getLabel()
          Return a descriptive label based on the property name
 java.lang.String getName()
          Return the defined property name for this property
 java.lang.String getObjectClass()
          Return the object class representation for this class
 java.lang.String getPackage()
          Return the package for this component
 HibernateClass getParentRoot()
          Return self as parent
 java.lang.String getPropName()
          Return the actual property name for this property (first letter upper case)
protected  java.lang.String[] getReservedProperties()
          Return the reserved properties associated with this element
 java.lang.String getScopeField()
          Return the field scope
 java.lang.String getScopeGet()
          Return the "getter" scope
 java.lang.String getScopeSet()
          Return the "setter" scope
 java.lang.String getSetterName()
          Return the setter name (without the parenthesis) for this property
 java.lang.String getSignatureClassName()
          Return the name of the class or interface if applicable without the the package prefix that represents this property
 java.lang.String getStaticName()
          Return the static variable name for this class property
 java.lang.String getVarName()
          Return the name used as the Java variable name for this property (first letter lower case)
 boolean isComponent()
          This is a component...
 boolean isDynamic()
           
 boolean isPrimitive()
          Return true if the type of this property represents a primitive
 boolean isSubclass()
          This is never a subclass (return false)
 void setDynamic(boolean dynamic)
           
protected  void setName(java.lang.String name)
           
 
Methods inherited from class com.hudson.hibernatesynchronizer.mapping.HibernateClass
canSyncCustom, canSyncDAO, canSyncValueObject, compareTo, getAbsoluteBaseDAOClassName, getAbsoluteBaseRootDAOClassName, getAbsoluteBaseValueObjectClassName, getAbsoluteDAOClassName, getAbsoluteRootDAOClassName, getAbsoluteValueObjectClassName, getAbsoluteValueObjectProxyClassName, getAbsoluteValueObjectSignatureClassName, getAllProperties, getAllProperties, getAlternateKeys, getBaseDAOClassName, getBaseDAOPackage, getBaseRootDAOClassName, getBaseValueObjectClassName, getBaseValueObjectPackage, getCollectionList, getComponentList, getDAOClassName, getDAOPackage, getDocument, getId, getId, getManyToOneList, getOneToOneList, getParent, getProject, getProperties, getPropertiesWithComponents, getProperty, getPropertyByColName, getProxyPackage, getQueries, getRequiredFields, getRootDAOClassName, getRootDAOPackage, getSubclassList, getTableName, getTimestamp, getValueObjectClassName, getValueObjectPackage, getValueObjectProxyClassName, getValueObjectScope, getValueObjectSignatureClassName, getVersion, hasProxy, setQueries, setValueObjectClassName, useCustomDAO
 
Methods inherited from class com.hudson.hibernatesynchronizer.mapping.BaseElement
clear, get, get, getCustomProperties, getJavaDoc, getJavaDoc, getMetaData, getNode, getNodeText, saveMetaData, set, setNode, setParentRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hudson.hibernatesynchronizer.mapping.IHibernateClassProperty
getMetaData, getParent
 

Constructor Detail

HibernateComponentClass

public HibernateComponentClass(org.w3c.dom.Node node,
                               java.lang.String packageName,
                               HibernateClass parent,
                               boolean dynamic,
                               IProject currentProject)
Parameters:
node -
packageName -
parent -
currentProject -
Method Detail

getName

public java.lang.String getName()
Description copied from interface: IHibernateClassProperty
Return the defined property name for this property

Specified by:
getName in interface IHibernateClassProperty
See Also:
com.hudson.hibernatesynchronizer.mapping.HibernateClass#setName(java.lang.String)

getLabel

public java.lang.String getLabel()
Return a descriptive label based on the property name

Specified by:
getLabel in interface IHibernateClassProperty
Overrides:
getLabel in class HibernateClass

setName

protected void setName(java.lang.String name)
See Also:
com.hudson.hibernatesynchronizer.mapping.HibernateClass#setName(java.lang.String)

getComponentParent

public HibernateClassProperty getComponentParent()
Returns:
Returns the compositeParent or null if the 'parent' node was not specified.

getPropName

public java.lang.String getPropName()
Return the actual property name for this property (first letter upper case)

Specified by:
getPropName in interface IHibernateClassProperty

getGetterName

public java.lang.String getGetterName()
Return the getter name (without the parenthesis) for this property

Specified by:
getGetterName in interface IHibernateClassProperty
Returns:
the getter name

getSetterName

public java.lang.String getSetterName()
Return the setter name (without the parenthesis) for this property

Specified by:
getSetterName in interface IHibernateClassProperty
Returns:
the setter name

getVarName

public java.lang.String getVarName()
Return the name used as the Java variable name for this property (first letter lower case)

Specified by:
getVarName in interface IHibernateClassProperty
Overrides:
getVarName in class HibernateClass
Returns:
the Java variable name

isSubclass

public boolean isSubclass()
This is never a subclass (return false)

Overrides:
isSubclass in class HibernateClass

getParentRoot

public HibernateClass getParentRoot()
Return self as parent

Overrides:
getParentRoot in class HibernateClass

getReservedProperties

protected java.lang.String[] getReservedProperties()
Return the reserved properties associated with this element

Overrides:
getReservedProperties in class HibernateClass

getColumn

public java.lang.String getColumn()
This relates to no column... return null

Specified by:
getColumn in interface IHibernateClassProperty
Returns:
the column name

isDynamic

public boolean isDynamic()
Returns:
Returns the dynamic.

setDynamic

public void setDynamic(boolean dynamic)
Parameters:
dynamic - The dynamic to set.

getFullClassName

public java.lang.String getFullClassName()
Return the fully qualified class name

Returns:

getPackage

public java.lang.String getPackage()
Return the package for this component

Specified by:
getPackage in interface IHibernateClassProperty

getStaticName

public java.lang.String getStaticName()
Return the static variable name for this class property

Specified by:
getStaticName in interface IHibernateClassProperty

isComponent

public boolean isComponent()
This is a component... return true

Overrides:
isComponent in class HibernateClass

isPrimitive

public boolean isPrimitive()
Description copied from interface: IHibernateClassProperty
Return true if the type of this property represents a primitive

Specified by:
isPrimitive in interface IHibernateClassProperty

getObjectClass

public java.lang.String getObjectClass()
Return the object class representation for this class

Specified by:
getObjectClass in interface IHibernateClassProperty

getClassName

public java.lang.String getClassName()
Description copied from interface: IHibernateClassProperty
Return the name of the class without the the package prefix that represents this property

Specified by:
getClassName in interface IHibernateClassProperty

getSignatureClassName

public java.lang.String getSignatureClassName()
Description copied from interface: IHibernateClassProperty
Return the name of the class or interface if applicable without the the package prefix that represents this property

Specified by:
getSignatureClassName in interface IHibernateClassProperty

getAbsoluteSignatureClassName

public java.lang.String getAbsoluteSignatureClassName()
Description copied from interface: IHibernateClassProperty
Return the fully qualified class name or interface if applicable that represents this property

Specified by:
getAbsoluteSignatureClassName in interface IHibernateClassProperty

getAbsoluteClassName

public java.lang.String getAbsoluteClassName()
Description copied from interface: IHibernateClassProperty
Return the fully qualified class name that represents this property

Specified by:
getAbsoluteClassName in interface IHibernateClassProperty

getScopeGet

public java.lang.String getScopeGet()
Return the "getter" scope


getScopeSet

public java.lang.String getScopeSet()
Return the "setter" scope


getScopeField

public java.lang.String getScopeField()
Return the field scope