org.ow2.jonas.deployment.ejb
Class FieldJdbcDesc

java.lang.Object
  extended by org.ow2.jonas.deployment.ejb.FieldDesc
      extended by org.ow2.jonas.deployment.ejb.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  String jdbcFieldName
           
protected  String sqlType
           
 
Fields inherited from class org.ow2.jonas.deployment.ejb.FieldDesc
fieldName, fieldType, pkField
 
Constructor Summary
FieldJdbcDesc()
           
 
Method Summary
 String getJdbcFieldName()
          Get database field name in the table where bean is stored
 String getSqlType()
          Get field sql-type
 boolean hasSqlType()
          Is the field sql-type is defined.
protected  void setJdbcFieldName(String jdbcFieldName)
          Jdbc field name setter.
protected  void setSqlType(String st)
          Field sql-type setter.
 String toString()
          String representation of the object for test purpose
 
Methods inherited from class org.ow2.jonas.deployment.ejb.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 String jdbcFieldName

sqlType

protected String sqlType
Constructor Detail

FieldJdbcDesc

public FieldJdbcDesc()
Method Detail

getJdbcFieldName

public 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(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 String getSqlType()
Get field sql-type

Returns:
sql-type of the field in the database

setSqlType

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


toString

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

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


Copyright © 2010 OW2 Consortium. All Rights Reserved.