org.objectweb.jorm.mapper.rdb.metainfo
Class RdbPrimitiveElementMapping
java.lang.Object
|
+--org.objectweb.jorm.metainfo.lib.BasicMetaObject
|
+--org.objectweb.jorm.metainfo.lib.BasicMappingStructure
|
+--org.objectweb.jorm.mapper.rdb.metainfo.RdbPrimitiveElementMapping
- All Implemented Interfaces:
- java.lang.Comparable, Loggable, MappingStructure, MetaObject, PrimitiveElementMapping, java.io.Serializable
- public class RdbPrimitiveElementMapping
- extends BasicMappingStructure
- implements PrimitiveElementMapping, java.lang.Comparable
Description
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RdbPrimitiveElementMapping
public RdbPrimitiveElementMapping(java.lang.String name,
java.lang.String type,
boolean notNull,
MetaObject linkedMO,
MetaObject parent)
- Builds a new BasicRdbPrimitiveElementMapping.
- Parameters:
name
- the name of the columntype
- the sql type of the columnnotNull
- true, if the column can not be null, else false.parent
- the parent of the current object
RdbPrimitiveElementMapping
public RdbPrimitiveElementMapping(java.lang.String name,
java.lang.String type,
boolean notNull,
MetaObject linkedMO,
MetaObject parent,
RdbJoin join)
- Builds a new BasicRdbPrimitiveElementMapping.
- Parameters:
name
- the name of the columntype
- the sql type of the columnnotNull
- true, if the column can not be null, else false.parent
- the parent of the current object
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable
getName
public java.lang.String getName()
- Returns the name of the current column.
- Returns:
- the string representation of column name
getType
public java.lang.String getType()
- Returns the SQL type of the current object.
- Returns:
- the string representation of the sql type
isNotNull
public boolean isNotNull()
- Allows to know if the column is null or not.
- Returns:
- true, if the column is null, else false
setName
public void setName(java.lang.String columnName)
setType
public void setType(java.lang.String sqlType)
setIsNotNull
public void setIsNotNull(boolean isNotNull)
bindPrimitiveElement
public void bindPrimitiveElement(RdbJoin join,
PrimitiveElement pe)
lookupPrimitiveElement
public PrimitiveElement lookupPrimitiveElement(RdbJoin join)
getPrimitiveElementByRdbJoin
public java.util.Map getPrimitiveElementByRdbJoin()
getJoinByPrimitiveElement
public RdbJoin getJoinByPrimitiveElement(PrimitiveElement pe)