org.objectweb.jonas_ejb.deployment.api
Class FieldDesc

java.lang.Object
  |
  +--org.objectweb.jonas_ejb.deployment.api.FieldDesc
Direct Known Subclasses:
FieldJdbcDesc

public class FieldDesc
extends java.lang.Object

Class to hold meta-information related to a cmp-field

Author:
Christophe Ney [cney@batisseurs.com]

Field Summary
protected  java.lang.String fieldName
           
protected  java.lang.Class fieldType
           
protected  boolean pkField
           
 
Constructor Summary
FieldDesc()
           
 
Method Summary
 java.lang.String getFieldName()
          Field name getter
 java.lang.Class getFieldType()
          field type getter
 boolean isPrimaryKey()
          Assessor method for primary key field
 void setFieldName(java.lang.String fieldName)
          field name setter
 void setFieldType(java.lang.Class fieldType)
          field type setter
 void setPrimaryKey(boolean pkField)
          primary key flag setter
 java.lang.String toString()
          String representation of the object for test purpose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fieldName

protected java.lang.String fieldName

pkField

protected boolean pkField

fieldType

protected java.lang.Class fieldType
Constructor Detail

FieldDesc

public FieldDesc()
Method Detail

isPrimaryKey

public boolean isPrimaryKey()
Assessor method for primary key field
Returns:
true if field is a primary key

getFieldName

public java.lang.String getFieldName()
Field name getter
Returns:
field name

setFieldName

public void setFieldName(java.lang.String fieldName)
field name setter

setPrimaryKey

public void setPrimaryKey(boolean pkField)
primary key flag setter

getFieldType

public java.lang.Class getFieldType()
field type getter

setFieldType

public void setFieldType(java.lang.Class fieldType)
field type setter

toString

public java.lang.String toString()
String representation of the object for test purpose
Overrides:
toString in class java.lang.Object
Returns:
String representation of this object