org.objectweb.jorm.metainfo.rdb
Class BasicRDBColumnSpec

java.lang.Object
  |
  +--org.objectweb.jorm.metainfo.rdb.BasicRDBColumnSpec
All Implemented Interfaces:
RDBColumnSpec, java.io.Serializable

public class BasicRDBColumnSpec
extends java.lang.Object
implements RDBColumnSpec, java.io.Serializable

BasicRDBColumnSpec defines one column in the table where the class is projected.

Author:
X. Spengler
See Also:
Serialized Form

Constructor Summary
BasicRDBColumnSpec(java.lang.String name, java.lang.String type, boolean notNull, MetaObject parent)
          Builds a new BasicRDBColumnSpec.
 
Method Summary
 java.lang.String getName()
          Returns the name of the current column.
 java.lang.String getType()
          Returns the SQL type of the current object.
 boolean isNotNull()
          Allows to know if the column could be notnull or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicRDBColumnSpec

public BasicRDBColumnSpec(java.lang.String name,
                          java.lang.String type,
                          boolean notNull,
                          MetaObject parent)
Builds a new BasicRDBColumnSpec.
Parameters:
name - the name of the column
type - the type of the column
notNull - true, if the column can not be null, else false, if the column can be null
parent - the parent of the current object
Method Detail

getName

public java.lang.String getName()
Returns the name of the current column.
Specified by:
getName in interface RDBColumnSpec
Returns:
the string representation of column name

getType

public java.lang.String getType()
Returns the SQL type of the current object.
Specified by:
getType in interface RDBColumnSpec
Returns:
the string representation of the sql type

isNotNull

public boolean isNotNull()
Allows to know if the column could be notnull or not.
Specified by:
isNotNull in interface RDBColumnSpec
Returns:
true, if the column could be notnull, else false