net.sf.hibernate.tool.hbm2java
Class FieldProperty

java.lang.Object
  extended by net.sf.hibernate.tool.hbm2java.MappingElement
      extended by net.sf.hibernate.tool.hbm2java.FieldProperty

public class FieldProperty
extends MappingElement


Constructor Summary
FieldProperty(org.jdom.Element element, MappingElement parent, String name, ClassName type, boolean nullable, boolean id, boolean generated, org.apache.commons.collections.MultiMap metaattribs)
           
FieldProperty(org.jdom.Element element, MappingElement parent, String name, ClassName type, boolean nullable, org.apache.commons.collections.MultiMap metaattribs)
           
FieldProperty(org.jdom.Element element, MappingElement parent, String name, ClassName type, ClassName implementationClassName, boolean nullable, ClassName foreignClass, Set foreignKeys, org.apache.commons.collections.MultiMap metaattribs)
           
 
Method Summary
 String getAccessorName()
           
 ClassName getClassType()
          Returns the classType.
 String getFieldName()
           
 String getFieldScope()
           
 ClassName getForeignClass()
          Returns the foreignClass.
 Set getForeignKeys()
          Returns the foreignKeys.
 String getFullyQualifiedTypeName()
           
 String getGetterSignature()
          Method getGetterSignature.
 ClassName getImplementationClassName()
           
 ClassMapping getParentClass()
           
 String getPropertyGetScope()
           
 String getPropertySetScope()
           
 String getScope(String localScopeName, String defaultScope)
           
protected  void initWith(String name, ClassName type, ClassName implementationClassName, boolean nullable, boolean id, boolean generated, ClassName foreignClass, Set foreignKeys, org.apache.commons.collections.MultiMap metaattribs)
           
 boolean isGenerated()
           
 boolean isGeneratedAsProperty()
           
 boolean isIdentifier()
           
 boolean isNullable()
           
 void setForeignClass(ClassName foreignClass)
          Sets the foreignClass.
 String toString()
           
 
Methods inherited from class net.sf.hibernate.tool.hbm2java.MappingElement
getMeta, getMetaAsBool, getMetaAsBool, getMetaAsString, getMetaAsString, getMetaAttribs, getParentElement, getXMLElement, hasMeta, setElement, setMetaAttribs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldProperty

public FieldProperty(org.jdom.Element element,
                     MappingElement parent,
                     String name,
                     ClassName type,
                     boolean nullable,
                     org.apache.commons.collections.MultiMap metaattribs)

FieldProperty

public FieldProperty(org.jdom.Element element,
                     MappingElement parent,
                     String name,
                     ClassName type,
                     boolean nullable,
                     boolean id,
                     boolean generated,
                     org.apache.commons.collections.MultiMap metaattribs)

FieldProperty

public FieldProperty(org.jdom.Element element,
                     MappingElement parent,
                     String name,
                     ClassName type,
                     ClassName implementationClassName,
                     boolean nullable,
                     ClassName foreignClass,
                     Set foreignKeys,
                     org.apache.commons.collections.MultiMap metaattribs)
Method Detail

initWith

protected void initWith(String name,
                        ClassName type,
                        ClassName implementationClassName,
                        boolean nullable,
                        boolean id,
                        boolean generated,
                        ClassName foreignClass,
                        Set foreignKeys,
                        org.apache.commons.collections.MultiMap metaattribs)

getFieldName

public String getFieldName()

getAccessorName

public String getAccessorName()

getFullyQualifiedTypeName

public String getFullyQualifiedTypeName()

isIdentifier

public boolean isIdentifier()

isNullable

public boolean isNullable()

isGenerated

public boolean isGenerated()

toString

public String toString()
Overrides:
toString in class Object

getClassType

public ClassName getClassType()
Returns the classType.

Returns:
ClassName

getForeignClass

public ClassName getForeignClass()
Returns the foreignClass.

Returns:
ClassName

setForeignClass

public void setForeignClass(ClassName foreignClass)
Sets the foreignClass.

Parameters:
foreignClass - The foreignClass to set

getForeignKeys

public Set getForeignKeys()
Returns the foreignKeys.

Returns:
Set

getGetterSignature

public String getGetterSignature()
Method getGetterSignature.

Returns:
String

isGeneratedAsProperty

public boolean isGeneratedAsProperty()

getImplementationClassName

public ClassName getImplementationClassName()
Returns:
Return the implementation specific type for this property. e.g. java.util.ArrayList when the type is java.util.List;

getParentClass

public ClassMapping getParentClass()
Returns:

getScope

public String getScope(String localScopeName,
                       String defaultScope)

getFieldScope

public String getFieldScope()

getPropertyGetScope

public String getPropertyGetScope()

getPropertySetScope

public String getPropertySetScope()