org.objectweb.jonas_ejb.deployment.api
Class FieldJdbcDesc

java.lang.Object
  extended by org.objectweb.jonas_ejb.deployment.api.FieldDesc
      extended by org.objectweb.jonas_ejb.deployment.api.FieldJdbcDesc

public class FieldJdbcDesc
extends FieldDesc

Class to hold meta-information related to a cmp-field of a bean with jdbc based store

Author:
Christophe Ney [cney@batisseurs.com] : Initial developer, Helene Joanin on May 2003: code cleanup, Helene Joanin on May 2003: add sqlType.

Field Summary
protected  java.lang.String jdbcFieldName
           
protected  java.lang.String sqlType
           
 
Fields inherited from class org.objectweb.jonas_ejb.deployment.api.FieldDesc
fieldName, fieldType, pkField
 
Constructor Summary
FieldJdbcDesc()
           
 
Method Summary
 java.lang.String getJdbcFieldName()
          Get database field name in the table where bean is stored
 java.lang.String getSqlType()
          Get field sql-type
 boolean hasSqlType()
          Is the field sql-type is defined.
protected  void setJdbcFieldName(java.lang.String jdbcFieldName)
          Jdbc field name setter.
protected  void setSqlType(java.lang.String st)
          Field sql-type setter.
 java.lang.String toString()
          String representation of the object for test purpose
 
Methods inherited from class org.objectweb.jonas_ejb.deployment.api.FieldDesc
getFieldType, getGetterName, getName, getSetterName, isPrimaryKey, setFieldType, setName, setPrimaryKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

jdbcFieldName

protected java.lang.String jdbcFieldName

sqlType

protected java.lang.String sqlType
Constructor Detail

FieldJdbcDesc

public FieldJdbcDesc()
Method Detail

getJdbcFieldName

public java.lang.String getJdbcFieldName()
Get database field name in the table where bean is stored

Returns:
Name of the field in the database

setJdbcFieldName

protected void setJdbcFieldName(java.lang.String jdbcFieldName)
Jdbc field name setter.


hasSqlType

public boolean hasSqlType()
Is the field sql-type is defined.

Returns:
true if the sql-type of the field is defined.

getSqlType

public java.lang.String getSqlType()
Get field sql-type

Returns:
sql-type of the field in the database

setSqlType

protected void setSqlType(java.lang.String st)
Field sql-type setter.


toString

public java.lang.String toString()
String representation of the object for test purpose

Overrides:
toString in class FieldDesc
Returns:
String representation of this object