|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.metadata.MetaData
org.jboss.ejb.plugins.jaws.metadata.CMPFieldMetaData
This class holds all the information jaws needs to know about a CMP field. It loads its data from standardjaws.xml and jaws.xml
Field Summary | |
protected static org.jboss.logging.Logger |
log
|
Fields inherited from class org.jboss.metadata.MetaData |
TX_MANDATORY, TX_NEVER, TX_NOT_SUPPORTED, TX_REQUIRED, TX_REQUIRES_NEW, TX_SUPPORTS, TX_UNKNOWN |
Constructor Summary | |
CMPFieldMetaData(String name,
JawsEntityMetaData jawsEntity)
|
Method Summary | |
String |
getColumnName()
|
Field |
getField()
|
Class |
getFieldType()
We don't rely on the field alone for getting the type since we support nested field like 'data.categoryPK'. |
static String |
getFirstComponent(String name)
Returns the first component of a composite fieldName. |
JawsEntityMetaData |
getJawsEntity()
|
int |
getJDBCType()
|
static String |
getLastComponent(String name)
Returns the last component of a composite fieldName. |
String |
getName()
|
String |
getNullable()
|
String |
getSQLType()
|
Object |
getValue(Object instance)
Returns the value of this field. |
void |
importXml(Element element)
Imports either the jboss or ejb-jar from the given element. |
boolean |
isAPrimaryKeyField()
|
boolean |
isEJBReference()
|
boolean |
isNested()
|
void |
set(Object instance,
Object value)
Is used mainly for nested fields. |
Methods inherited from class org.jboss.metadata.MetaData |
clone, getChildrenByTagName, getElementAttribute, getElementContent, getElementContent, getFirstElementContent, getOptionalChild, getOptionalChild, getOptionalChildBooleanContent, getOptionalChildContent, getUniqueChild, getUniqueChildContent, importEjbJarXml, importJbossXml, jdk13Enabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.jboss.logging.Logger log
Constructor Detail |
public CMPFieldMetaData(String name, JawsEntityMetaData jawsEntity) throws org.jboss.deployment.DeploymentException
Method Detail |
public String getName()
public Field getField()
public int getJDBCType()
public String getSQLType()
public String getNullable()
public String getColumnName()
public boolean isEJBReference()
public boolean isAPrimaryKeyField()
public JawsEntityMetaData getJawsEntity()
public static String getLastComponent(String name)
public static String getFirstComponent(String name)
public Class getFieldType()
public void set(Object instance, Object value)
public Object getValue(Object instance)
public boolean isNested()
public void importXml(Element element) throws org.jboss.deployment.DeploymentException
MetaData
importXml
in interface XmlLoadable
importXml
in class MetaData
element
- The element to import.
org.jboss.deployment.DeploymentException
- Unrecognized root tag.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |