|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.database.Row | +--planetj.database.fielddescriptors.FieldDescriptorRow | +--planetj.database.fielddescriptors.TableDescriptor
Describes a Table in the database
Nested Class Summary |
Nested classes inherited from class planetj.database.Row |
Row.SpacingRow |
Field Summary | |
static String |
NAME_PREFIX
|
Fields inherited from class planetj.database.Row |
className, COPY, DELETE, INSERT, MODE_COPY, MODE_DELETE, MODE_INSERT, MODE_READ, MODE_SEARCH, MODE_UNKNOWN, MODE_UPDATE, READ, UPDATE |
Fields inherited from interface planetj.dataengine.security.IGuarded |
TYPE_ID_UNKNOWN, TYPE_NAME_FIELD, TYPE_NAME_SQLOPERATION, TYPE_SECURED_BY_LEVEL, TYPE_SECURED_BY_OPERATION, TYPE_UNSECURED |
Constructor Summary | |
TableDescriptor()
|
Method Summary | |
static TableDescriptor |
createTableDescriptor(Table targetTable)
Creates a new TableDescriptor object for a Table |
Class |
getJavaFieldClass()
Gets the class to instantiate for this field. |
static String |
getTableDescriptorName(String tableName)
Gets the name of a TableDescriptor based on a table name |
static String |
getTableDescriptorName(Table t)
Gets the name of a TableDescriptor based on a table |
int |
insert(SQLContext context)
Inserts this Row into the specified database. |
boolean |
isPhysical()
Tests if this field descriptor describes a field that is physically present in the database |
void |
setName(Table t)
Sets the name of this TableDescriptor from a table |
int |
update(Connection conn,
ExecutingContext ec)
Updates the database with the values in this Row. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String NAME_PREFIX
Constructor Detail |
public TableDescriptor()
Method Detail |
public static TableDescriptor createTableDescriptor(Table targetTable) throws CMException
CMException
public static final String getTableDescriptorName(Table t)
public int insert(SQLContext context) throws CMException
insert
in class FieldDescriptorRow
CMException
public boolean isPhysical()
isPhysical
in class FieldDescriptorRow
public void setName(Table t) throws CMException
CMException
public Class getJavaFieldClass() throws CMException
getJavaFieldClass
in class FieldDescriptorRow
CMException
- If a class name was entered, but does not correspond to a Java classpublic static final String getTableDescriptorName(String tableName)
public int update(Connection conn, ExecutingContext ec) throws CMException
Row
update
in class FieldDescriptorRow
CMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |