|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
RDBClassMapping defines methods to describe how the a class is mapped into a relational database system.
| Method Summary | |
void |
addPrimaryKey(java.lang.String pk)
Adds a primary key to the list of existing primary key for the current table. |
java.lang.String |
getTableName()
Allows to know the name of the table. |
boolean |
isNotNull()
Allows to know if the table can be null or not. |
java.util.Iterator |
iteratePrimaryKey()
Returns an iterator on all the primary keys from the current table. |
void |
setNotNull(boolean notnull)
Defines if the current table can be null or not. |
void |
setTableName(java.lang.String tableName)
Sets the name of the relational table |
| Methods inherited from interface org.objectweb.jorm.metainfo.api.ClassMapping |
getMapperName, getMappingName |
| Methods inherited from interface org.objectweb.jorm.metainfo.api.MetaObject |
getParent, setParent |
| Method Detail |
public java.lang.String getTableName()
public void setTableName(java.lang.String tableName)
tableName - the name of the tablepublic void setNotNull(boolean notnull)
notnull - true, the table can not be null, else false, the table
can be null.public boolean isNotNull()
public void addPrimaryKey(java.lang.String pk)
pk - the name of the new primary keypublic java.util.Iterator iteratePrimaryKey()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||