|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jorm.metainfo.lib.BasicMetaObject
org.objectweb.jorm.metainfo.lib.BasicMappingStructure
org.objectweb.jorm.mapper.rdb.metainfo.RdbTable
Define the mapping of primitive elements onto the columns of a table. Note that the mapping definition of the fields of a class onto the columns of a table may be sparsed between several objects of this class. This can espacially happen with inheritance with the 'extended' or 'added' rules.
Field Summary |
Fields inherited from class org.objectweb.jorm.metainfo.lib.BasicMappingStructure |
linkedMO |
Fields inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject |
debug, logger, loggerFactory, parent |
Constructor Summary | |
RdbTable(MetaObject parent,
MetaObject linkedMO,
java.lang.String name)
|
Method Summary | |
RdbPrimitiveElementMapping |
createPrimitiveElementMapping(PrimitiveElement pe,
java.lang.String columnName)
Creates and registers a primitive element mapping, that is how a primitive element is mapped onto a column of the table. |
RdbPrimitiveElementMapping |
createPrimitiveElementMapping(PrimitiveElement pe,
java.lang.String columnName,
java.lang.String sqlType,
boolean notNull)
Creates and registers a primitive element mapping, that is how a primitive element is mapped onto a column of the table. |
java.util.Set |
getColumns()
Gets the set of column names of the table definition |
java.lang.String |
getName()
|
PrimitiveElementMapping |
getPrimitiveElementMappingByCol(java.lang.String columnName)
Gets the primitive element mapping by its column name |
PrimitiveElementMapping |
getPrimitiveElementMappingByField(java.lang.String fieldName)
Gets the primitive element mapping by its field name |
java.util.Collection |
getPrimitiveElementMappings()
|
boolean |
isColocated()
Gets the collocated attribute |
boolean |
isColocatedMaster()
|
boolean |
isReadOnly()
|
PrimitiveElementMapping |
removePrimitiveElementMapping(PrimitiveElementMapping pem)
Removes a primitive element mapping from the table mapping definition |
void |
setColocated(boolean c)
Sets the collocated attribute |
void |
setColocatedMaster(boolean cm)
|
void |
setName(java.lang.String name)
|
void |
setReadOnly(boolean readOnly)
|
Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicMappingStructure |
getLinkedMO, getMapperName, getProjectName, setLinkedMO |
Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject |
getChildren, getLogger, getLoggerFactory, getManager, getParent, setLogger, setLoggerFactory, setLoggingOnChild, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.jorm.metainfo.api.MetaObject |
getParent, setParent |
Constructor Detail |
public RdbTable(MetaObject parent, MetaObject linkedMO, java.lang.String name)
Method Detail |
public boolean isReadOnly()
public void setReadOnly(boolean readOnly)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.util.Collection getPrimitiveElementMappings()
public RdbPrimitiveElementMapping createPrimitiveElementMapping(PrimitiveElement pe, java.lang.String columnName, java.lang.String sqlType, boolean notNull) throws PException
pe
- the primitive elementcolumnName
- the name of the column onto the primitive element is mappedsqlType
- the SQL type of the columnnotNull
- if true the column cannot have null values
PException
- if a primitive element is already mapped to the columnpublic RdbPrimitiveElementMapping createPrimitiveElementMapping(PrimitiveElement pe, java.lang.String columnName) throws PException
pe
- the primitive elementcolumnName
- the name of the column onto the primitive element is mapped
PException
- if a primitive element is already mapped to the columnpublic PrimitiveElementMapping removePrimitiveElementMapping(PrimitiveElementMapping pem)
pem
- the primitive element mapping to remove
public PrimitiveElementMapping getPrimitiveElementMappingByCol(java.lang.String columnName)
columnName
- the name of the column
public PrimitiveElementMapping getPrimitiveElementMappingByField(java.lang.String fieldName)
fieldName
- the name of the field
public java.util.Set getColumns()
public boolean isColocated()
public void setColocated(boolean c)
c
- true if the table is collocatedpublic boolean isColocatedMaster()
public void setColocatedMaster(boolean cm)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |