org.jboss.ejb.plugins.jaws.metadata
Class CMPFieldMetaData
java.lang.Object
|
+--org.jboss.metadata.MetaData
|
+--org.jboss.ejb.plugins.jaws.metadata.CMPFieldMetaData
- All Implemented Interfaces:
- XmlLoadable
- public class CMPFieldMetaData
- extends MetaData
- implements XmlLoadable
This class holds all the information jaws needs to know about a CMP field
It loads its data from standardjaws.xml and jaws.xml
- Version:
- $Revision: 1.6.4.2 $
- Author:
- Sebastien Alborini, Dirk Zimmermann, Vincent Harcq
- See Also:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CMPFieldMetaData
public CMPFieldMetaData(java.lang.String name,
JawsEntityMetaData jawsEntity)
throws DeploymentException
getName
public java.lang.String getName()
getField
public java.lang.reflect.Field getField()
getJDBCType
public int getJDBCType()
getSQLType
public java.lang.String getSQLType()
getColumnName
public java.lang.String getColumnName()
isEJBReference
public boolean isEJBReference()
isAPrimaryKeyField
public boolean isAPrimaryKeyField()
getJawsEntity
public JawsEntityMetaData getJawsEntity()
getLastComponent
public static java.lang.String getLastComponent(java.lang.String name)
- Returns the last component of a composite fieldName. E.g., for "data.categoryPK" it
will return "categoryPK".
getFirstComponent
public static java.lang.String getFirstComponent(java.lang.String name)
- Returns the first component of a composite fieldName. E.g., for "data.categoryPK" it
will return "data".
getFieldType
public java.lang.Class getFieldType()
- We don't rely on the field alone for getting the type since we support nested field
like 'data.categoryPK'.
set
public void set(java.lang.Object instance,
java.lang.Object value)
- Is used mainly for nested fields. Sets the value of a nested field.
getValue
public java.lang.Object getValue(java.lang.Object instance)
- Returns the value of this field.
isNested
public boolean isNested()
importXml
public void importXml(org.w3c.dom.Element element)
throws DeploymentException
- Specified by:
importXml
in interface XmlLoadable
- Overrides:
importXml
in class MetaData
Copyright © 2000 The JBoss Organization. All Rights Reserved.