com.hudson.hibernatesynchronizer.mapping
Class HibernateClassCollectionProperty

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

public class HibernateClassCollectionProperty
extends HibernateClassProperty
implements java.lang.Comparable

Author:
Joe Hudson This represents data related to the 'set', 'bag', 'list', 'map', and 'array' nodes of the hibernate mapping configuration file.

Field Summary
static java.lang.String TYPE_ARRAY
           
static java.lang.String TYPE_BAG
           
static java.lang.String TYPE_LIST
           
static java.lang.String TYPE_MAP
           
static java.lang.String TYPE_PRIMITIVE_ARRAY
           
static java.lang.String TYPE_SET
           
 
Fields inherited from class com.hudson.hibernatesynchronizer.mapping.HibernateClassProperty
alternateKey, column, length, name, notNull, parent, primaryKey, type, TYPE_COLLECTION, TYPE_MANY_TO_ONE, TYPE_ONE_TO_ONE, TYPE_PROPERTY
 
Fields inherited from interface com.hudson.hibernatesynchronizer.mapping.IHibernateClassProperty
LABEL_METADATA
 
Constructor Summary
HibernateClassCollectionProperty(HibernateClass parent, org.w3c.dom.Node node, java.lang.String propType, java.lang.String packageName, IProject currentProject)
           
 
Method Summary
 int compareTo(java.lang.Object arg0)
          Compare this to another object
 java.lang.String getAbsoluteImplementationClassName()
          Return the fully qualified implementation class based on the type of collection this represents.
 HibernateClass getChildClass()
          Return the plural representatio of the property name
 java.util.List getCompositeList()
           
protected  java.lang.String[] getReservedProperties()
          Return the reserved properties associated with this element
 java.lang.String getStaticName()
          Return the static variable definition name based on this property
 boolean isArray()
          Return true if this collection represents an array and false otherwise
 boolean isBag()
          Return true if this collection represents a Bag and false otherwise
 boolean isList()
          Return true if this collection represents a List and false otherwise
 boolean isMap()
          Return true if this collection represents a Map and false otherwise
 boolean isSet()
          Return true if this collection represents a Set and false otherwise
 
Methods inherited from class com.hudson.hibernatesynchronizer.mapping.HibernateClassProperty
getAbsoluteClassName, getAbsoluteSignatureClassName, getClassName, getColumn, getFinderMethod, getForeignParent, getGetterName, getLabel, getLength, getName, getObjectClass, getPackage, getParent, getPropName, getScopeField, getScopeGet, getScopeSet, getSetterName, getSignatureClassName, getType, getVarName, isAlternateKey, isManyToOne, isOneToOne, isPrimaryKey, isPrimitive, isRequired, isUserType, setAlternateKey, setLength
 
Methods inherited from class com.hudson.hibernatesynchronizer.mapping.BaseElement
clear, get, get, getCustomProperties, getJavaDoc, getJavaDoc, getMetaData, getNode, getNodeText, getParentRoot, 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
 

Field Detail

TYPE_SET

public static final java.lang.String TYPE_SET
See Also:
Constant Field Values

TYPE_BAG

public static final java.lang.String TYPE_BAG
See Also:
Constant Field Values

TYPE_LIST

public static final java.lang.String TYPE_LIST
See Also:
Constant Field Values

TYPE_MAP

public static final java.lang.String TYPE_MAP
See Also:
Constant Field Values

TYPE_ARRAY

public static final java.lang.String TYPE_ARRAY
See Also:
Constant Field Values

TYPE_PRIMITIVE_ARRAY

public static final java.lang.String TYPE_PRIMITIVE_ARRAY
See Also:
Constant Field Values
Constructor Detail

HibernateClassCollectionProperty

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

getCompositeList

public java.util.List getCompositeList()
Returns:
Returns the list of composite-element class associate with this collection

isSet

public boolean isSet()
Return true if this collection represents a Set and false otherwise


isBag

public boolean isBag()
Return true if this collection represents a Bag and false otherwise


isList

public boolean isList()
Return true if this collection represents a List and false otherwise


isMap

public boolean isMap()
Return true if this collection represents a Map and false otherwise


isArray

public boolean isArray()
Return true if this collection represents an array and false otherwise


getStaticName

public java.lang.String getStaticName()
Return the static variable definition name based on this property

Specified by:
getStaticName in interface IHibernateClassProperty
Overrides:
getStaticName in class HibernateClassProperty
Returns:

getChildClass

public HibernateClass getChildClass()
Return the plural representatio of the property name

Returns:

getAbsoluteImplementationClassName

public java.lang.String getAbsoluteImplementationClassName()
Return the fully qualified implementation class based on the type of collection this represents.


getReservedProperties

protected java.lang.String[] getReservedProperties()
Description copied from class: HibernateClassProperty
Return the reserved properties associated with this element

Overrides:
getReservedProperties in class HibernateClassProperty

compareTo

public int compareTo(java.lang.Object arg0)
Compare this to another object

Specified by:
compareTo in interface java.lang.Comparable
Overrides:
compareTo in class HibernateClassProperty