|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hudson.hibernatesynchronizer.mapping.BaseElement
com.hudson.hibernatesynchronizer.mapping.HibernateClassProperty
| Field Summary | |
protected boolean |
alternateKey
|
protected java.lang.String |
column
|
protected java.lang.Integer |
length
|
protected java.lang.String |
name
|
protected boolean |
notNull
|
protected HibernateClass |
parent
|
protected boolean |
primaryKey
|
protected java.lang.String |
type
|
static int |
TYPE_COLLECTION
|
static int |
TYPE_MANY_TO_ONE
|
static int |
TYPE_ONE_TO_ONE
|
static int |
TYPE_PROPERTY
|
| Fields inherited from interface com.hudson.hibernatesynchronizer.mapping.IHibernateClassProperty |
LABEL_METADATA |
| Constructor Summary | |
HibernateClassProperty(HibernateClass parent,
org.w3c.dom.Node node)
Constructor for standard property |
|
HibernateClassProperty(HibernateClass parent,
org.w3c.dom.Node node,
boolean validate)
Constructor for standard property (validating optional) |
|
HibernateClassProperty(HibernateClass parent,
org.w3c.dom.Node node,
int refType,
java.lang.String packageName)
Constructor for many-to-one property |
|
HibernateClassProperty(HibernateClass parent,
org.w3c.dom.Node node,
int refType,
java.lang.String packageName,
boolean validate,
boolean primaryKey)
Constructor |
|
| Method Summary | |
int |
compareTo(java.lang.Object arg0)
Compare this to another object |
java.lang.String |
getAbsoluteClassName()
Return the fully qualified class name that represents this property |
java.lang.String |
getAbsoluteSignatureClassName()
Return the fully qualified signature of the class representing this property (or the actual class if it is not a proxy) |
java.lang.String |
getClassName()
Return the name of the class without the the package prefix that represents this property |
java.lang.String |
getColumn()
Return the column name that this property represents |
java.lang.String |
getFinderMethod()
Return the name of a finder method to create in the DAO |
HibernateClass |
getForeignParent()
Return the HibernateClass representing the parent to the foreign key relationship or null if N/A |
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 or the label meta attribute if exists |
java.lang.Integer |
getLength()
|
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 prefix for this property class without the class name |
HibernateClass |
getParent()
Return the parent class for this property |
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 representing this property (or the actual class if it is not a proxy) |
java.lang.String |
getStaticName()
Return the static name for this property |
java.lang.String |
getType()
Return the value that was specified as the "type" attribute for this property |
java.lang.String |
getVarName()
Return the name used as the Java variable name for this property (first letter lower case) |
boolean |
isAlternateKey()
|
boolean |
isManyToOne()
Return true if this property is a many-to-one and false otherwise |
boolean |
isOneToOne()
Return true if this property is a many-to-one and false otherwise |
boolean |
isPrimaryKey()
|
boolean |
isPrimitive()
Return true if the type of this property represents a primitive |
boolean |
isRequired()
Return true if this property can not be null and false otherwise |
boolean |
isUserType()
Return true if this property can be determined as an user type and false if not |
void |
setAlternateKey(boolean isAlternateKey)
|
void |
setLength(java.lang.Integer length)
|
| 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 |
public static final int TYPE_PROPERTY
public static final int TYPE_MANY_TO_ONE
public static final int TYPE_ONE_TO_ONE
public static final int TYPE_COLLECTION
protected HibernateClass parent
protected java.lang.String name
protected java.lang.String type
protected java.lang.String column
protected boolean notNull
protected boolean alternateKey
protected boolean primaryKey
protected java.lang.Integer length
| Constructor Detail |
public HibernateClassProperty(HibernateClass parent,
org.w3c.dom.Node node)
throws com.hudson.hibernatesynchronizer.exceptions.TransientPropertyException
parent - the HibernateClass this property belongs tonode - the XML node
com.hudson.hibernatesynchronizer.exceptions.TransientPropertyException
public HibernateClassProperty(HibernateClass parent,
org.w3c.dom.Node node,
boolean validate)
throws com.hudson.hibernatesynchronizer.exceptions.TransientPropertyException
parent - the HibernateClass this property belongs tonode - the XML nodevalidate -
com.hudson.hibernatesynchronizer.exceptions.TransientPropertyException
public HibernateClassProperty(HibernateClass parent,
org.w3c.dom.Node node,
int refType,
java.lang.String packageName)
throws com.hudson.hibernatesynchronizer.exceptions.TransientPropertyException
parent - the HibernateClass this property belongs tonode - the XML noderefType - the relational typepackageName - the package for the relational class
com.hudson.hibernatesynchronizer.exceptions.TransientPropertyException
public HibernateClassProperty(HibernateClass parent,
org.w3c.dom.Node node,
int refType,
java.lang.String packageName,
boolean validate,
boolean primaryKey)
throws com.hudson.hibernatesynchronizer.exceptions.TransientPropertyException
parent - the HibernateClass this property belongs tonode - the XML noderefType - the relational typepackageName - the package for the relational classvalidate - primaryKey -
com.hudson.hibernatesynchronizer.exceptions.TransientPropertyException| Method Detail |
public java.lang.String getColumn()
getColumn in interface IHibernateClassPropertypublic java.lang.String getName()
getName in interface IHibernateClassPropertypublic java.lang.String getLabel()
getLabel in interface IHibernateClassPropertypublic java.lang.String getPropName()
getPropName in interface IHibernateClassPropertypublic java.lang.String getGetterName()
getGetterName in interface IHibernateClassPropertypublic java.lang.String getSetterName()
getSetterName in interface IHibernateClassPropertypublic java.lang.String getVarName()
getVarName in interface IHibernateClassPropertypublic java.lang.String getType()
public java.lang.String getAbsoluteSignatureClassName()
getAbsoluteSignatureClassName in interface IHibernateClassPropertypublic java.lang.String getSignatureClassName()
getSignatureClassName in interface IHibernateClassPropertypublic java.lang.String getAbsoluteClassName()
getAbsoluteClassName in interface IHibernateClassPropertypublic java.lang.String getClassName()
getClassName in interface IHibernateClassPropertypublic java.lang.String getPackage()
getPackage in interface IHibernateClassPropertypublic HibernateClass getParent()
getParent in interface IHibernateClassPropertypublic boolean isUserType()
public boolean isRequired()
public boolean isAlternateKey()
public boolean isPrimaryKey()
public void setAlternateKey(boolean isAlternateKey)
isAlternateKey - public boolean isManyToOne()
public boolean isOneToOne()
public boolean isPrimitive()
isPrimitive in interface IHibernateClassPropertypublic java.lang.String getObjectClass()
getObjectClass in interface IHibernateClassPropertypublic java.lang.Integer getLength()
public void setLength(java.lang.Integer length)
length - The length to set.public java.lang.String getStaticName()
getStaticName in interface IHibernateClassPropertypublic HibernateClass getForeignParent()
public java.lang.String getScopeGet()
public java.lang.String getScopeSet()
public java.lang.String getScopeField()
public java.lang.String getFinderMethod()
protected java.lang.String[] getReservedProperties()
getReservedProperties in class BaseElementpublic int compareTo(java.lang.Object arg0)
compareTo in interface java.lang.Comparable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||