|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.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 java.lang.String |
AUTHORIZE_ALTER_OPERATION
Name of the alter authorization operation field |
static java.lang.String |
AUTHORIZE_DELETE_OPERATION
Name of the delete authorization operation field |
static java.lang.String |
AUTHORIZE_INSERT_OPERATION
Name of the insert authorization operation field |
static java.lang.String |
AUTHORIZE_UPDATE_OPERATION
Name of the update authorization operation field |
static java.lang.String |
NAME_PREFIX
|
static java.lang.String |
TABLE_CLASS
|
Fields inherited from class planetj.database.Row |
className, DISPLAY_ORDER_COMPARATOR, MODE_ALTER, MODE_COPY, MODE_DELETE, MODE_INSERT, MODE_READ, MODE_SEARCH, MODE_UNKNOWN, MODE_UPDATE, mRowEventListeners |
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 |
int |
getFieldDisplayOrder(Field field)
Gets the order of which the given Field will appear in its FieldSet |
java.lang.String |
getFieldExternalName(Field field)
Gets the external name of a field |
java.lang.String |
getFieldFieldSetName(Field field)
Gets the name of the given Field's FieldSet NOTE: This method will not get called unless you override the isUseRowForFieldSets method to return true. |
java.lang.Class |
getJavaFieldClass()
Gets the class to instantiate for this field. |
java.lang.String |
getPossibleValueClass(Field field)
Returns the fully qualified name for a class implementing the IPossibleValueGetter interface which will handle the
retrieving of possible values for the specified field
Default behavior is to ask the FD |
static java.lang.String |
getTableDescriptorName(java.lang.String tableName)
Gets the name of a TableDescriptor based on a table name |
static java.lang.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 |
isFieldApplicable(Field fld,
ExecutingContext ec)
Tests if a field is applicable in the current scenario |
boolean |
isFieldRequired(Field field,
ExecutingContext pContext)
Tests if a field is required or not. |
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(java.sql.Connection conn,
ExecutingContext ec)
Updates the database with the values in this Row. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String NAME_PREFIX
public static final java.lang.String AUTHORIZE_INSERT_OPERATION
public static final java.lang.String AUTHORIZE_DELETE_OPERATION
public static final java.lang.String AUTHORIZE_UPDATE_OPERATION
public static final java.lang.String AUTHORIZE_ALTER_OPERATION
public static final java.lang.String TABLE_CLASS
Constructor Detail |
public TableDescriptor()
Method Detail |
public static TableDescriptor createTableDescriptor(Table targetTable) throws CMException
CMException
public static final java.lang.String getTableDescriptorName(Table t)
public int insert(SQLContext context) throws CMException
insert
in class FieldDescriptorRow
CMException
public boolean isFieldApplicable(Field fld, ExecutingContext ec) throws CMException
Row
isFieldApplicable
in class FieldDescriptorRow
CMException
public boolean isFieldRequired(Field field, ExecutingContext pContext)
Row
isFieldRequired
in class Row
field
- The whose required status is being testedpContext
- The current executing context which may be nullpublic boolean isPhysical()
isPhysical
in class FieldDescriptorRow
public void setName(Table t) throws CMException
CMException
public java.lang.String getPossibleValueClass(Field field)
Row
IPossibleValueGetter
interface which will handle the
retrieving of possible values for the specified field
Default behavior is to ask the FD
getPossibleValueClass
in class Row
public int getFieldDisplayOrder(Field field)
Row
getFieldDisplayOrder
in class FieldDescriptorRow
public java.lang.String getFieldExternalName(Field field) throws CMException
Row
getFieldExternalName
in class Row
CMException
public java.lang.String getFieldFieldSetName(Field field)
Row
getFieldFieldSetName
in class FieldDescriptorRow
public java.lang.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 java.lang.String getTableDescriptorName(java.lang.String tableName)
public int update(java.sql.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 |