|
|||||||||||
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
Represents metadata describing a field that was read from a row in the database.
Nested Class Summary |
Nested classes inherited from class planetj.database.Row |
Row.SpacingRow |
Field Summary |
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 | |
FieldDescriptorRow()
|
Method Summary | |
protected java.lang.Class |
calculateFieldClass()
Gets the class to instantiate for this field. |
void |
clearJavaFieldClass()
Clears the Java Class that is used for instances of the described field. |
FieldDescriptorRow |
cloneFD()
Clones this FieldDescriptorRow. |
Row |
copy(boolean pFullCopy)
Copy this Row. |
Field |
createDefaultField()
Creates a default field for this field descriptor. |
Field |
createDefaultField(java.lang.String pFieldName)
Creates a default field for this field descriptor. |
Field |
createField()
Creates a new field of the appropriate type |
Field |
createField(java.lang.String pFieldName)
Creates a new field of the appropriate type |
Field |
createField(java.lang.String pFieldName,
java.lang.Class fieldClass)
Creates a new field of the specified type |
Row |
createRow(Row pDefaultRow)
Creates a new Row. |
protected SQLContext |
createSQLContextForUpdate(ExecutingContext ec)
Creates a new SQLContext which will be used for updating this row. |
boolean |
duplicateKey(int retriesLeft,
ExecutingContext ec)
Method called when a duplicate key is encountered attempting to insert this Row. |
java.lang.String |
getApplicationID()
|
int |
getAssociationFieldId()
Deprecated. old way of specifing associations |
int |
getAssociationId()
Deprecated. used by old way of getting associations |
Operation |
getAssociationOperation()
Gets the SQLOperation describing how the data for fields should be retrieved |
int |
getAssociationOperationId()
Gets the id of the SQLOperation which is used to retrieve the data described by this field descriptor |
java.lang.String |
getAutoUpdateStringValue(ExecutingContext pEc)
Deprecated. should also pass Field object to allow for ?? parameters |
java.lang.String |
getAutoUpdateStringValue(Field field,
ExecutingContext pEc)
Gets the auto update String parameter for the described fields. |
java.lang.String |
getAutoUpdateValue()
Gets the default value for the described fields. |
java.lang.String |
getCatalog()
Gets the Table's catalog (may be null). |
java.lang.String |
getColumnName()
Gets the Column name. |
int |
getColumnSize()
Gets the column's size. |
DBSystem |
getColumnSystem()
Gets the table that this field descriptor is in. |
Table |
getColumnTable()
Returns the table that this field descriptor is in. |
Table |
getColumnTable(boolean oldValue)
Returns the table that this field descriptor is in. |
java.lang.String |
getColumnTableName()
Gets the Table name. |
java.lang.String |
getCompanyID()
|
int |
getConcurrency()
Gets the concurrency for the described field,, which determines if it is okay for concurrent update/deletes to occur. |
java.lang.String |
getConnectionAlias()
Gets the system alias. |
SQLOperation |
getDataSQLOperation()
Deprecated. replaced with getAssociationOperation() |
int |
getDataSQLOperationId()
Deprecated. replaced with getAssociationID() |
short |
getDataType()
The returned value can be compated to values in java.sql.Types Creation date: (6/20/2002 1:28:30 PM) |
short |
getDecimalDigits()
Deprecated. replaced with getScale() which returns -1 if FD doesn't have a scale (decimal digits) versus this method which returns 0 |
java.lang.String |
getDefaultStringValue(ExecutingContext pEc)
Deprecated. actual Field getting value for should be passed as well |
java.lang.String |
getDefaultStringValue(Field field,
ExecutingContext pEc)
Get the string parameter specified as the default value. |
java.lang.String |
getDefaultValue()
Return the string parameter specified as the default value. |
java.lang.String |
getDeleteConfirmationMessage()
Get the delete confirmation message. |
int |
getDisplayComponent()
Gets the display component for this field. |
int |
getDisplayHeight()
Gets the Field's display height. |
int |
getDisplayLength()
Deprecated. replaced with getDisplayWidth() to keep consistent with what a user sees when they view the field (e.g. width and height of a field) |
int |
getDisplayOrder()
Gets the order in which this field should be displayed. |
int |
getDisplayRule()
Gets the display rule for this field. |
int |
getDisplayWidth()
Gets the Field's display width. |
java.lang.String |
getDivisionID()
|
java.lang.String |
getExternalName()
Sets the external name of the described fields. |
java.lang.String |
getFieldClass()
Deprecated. Use getFieldClassName() instead |
java.lang.String |
getFieldClassName()
Gets the name of the Java Class to use for instances of the described field. |
boolean |
getFieldClassParameterDigitRequired()
Gets the digitRequired parameter following the FieldClass such as Example: planetj.database.field.PasswordField,digitRequired=true **NOTE** Digit requird default to false |
int |
getFieldClassParameterMinLength()
Gets the minLength parameter following the FieldClass such as Example: planetj.database.field.PasswordField,minLength=7 |
java.lang.String[] |
getFieldClassParameters()
Gets the parameters following the Field Class Example java.text.SimpleDateFormat, MMddyyyy |
java.lang.String |
getFieldClassString()
Different from getFieldClassName in that we do not trim off the parameters. |
static java.lang.Class |
getFieldDescriptorClass(int fdType)
Gets the FieldDescriptor java class which should be used to represent an FD of the specified type |
java.lang.String |
getFieldDescriptorSource()
Convience method used to return a string containing the fields name, connection alias, library name, and table name. |
int |
getFieldDescriptorType()
Gets the type of this field descriptor |
int |
getFieldDisplayOrder(Field field)
Gets the order of which the given Field will appear in its FieldSet |
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.String |
getFieldSet()
Gets the field set for the described fields. |
java.lang.String |
getFormatterClass()
Gets the class name of the formatter for the described fields. |
java.lang.String[] |
getFormatterClassParameters()
Gets the parameters following the Formatter Class Example java.text.SimpleDateFormat, MMddyyyy |
java.lang.String |
getGetterMethod()
|
java.lang.String |
getHelpText()
Gets the help text for the described fields. |
int |
getId()
Gets the ID of this field descriptor |
protected java.lang.Integer |
getIdAsInteger()
Gets the ID of this field descriptor. |
java.lang.String |
getIsNullable()
Gets whether or not NULL is allowed. |
java.lang.Class |
getJavaFieldClass()
Gets the Java Class to use for instances of the described field. |
int |
getKeyPostion()
Gets the position of the described field in the primary key of that field's table. |
int |
getMaxBytes()
Gets the maximum number of bytes in the column for char types. |
java.lang.String |
getName()
Gets the name of the described fields. |
int |
getNullable()
Gets whether or not NULL is allowed. |
int |
getOrdinalPosition()
Gets the index of the column in the table (starting at 1). |
short |
getOrigin()
Indicates how this FD was created. |
int |
getOwnerId()
Returns the Owner Id |
Field |
getOwnerIdField()
Returns the Owner Id Field |
java.lang.String |
getPossibleValueClass()
Returns the fully qualified name for a class implementing the IPossibleValueGetter interface which will
handle the retrieving of possible values for Fields associated with this
descriptor. |
RowCollection |
getPossibleValues(Field field)
Returns a RowCollection containing the possible values for the Field. |
java.lang.String |
getPossibleValuesKey()
Gets the possible values key. |
Operation |
getPossibleValuesOperation()
Gets the SQLOperation describing how the possible values for fields should be retrieved |
int |
getPossibleValuesOperationId()
Gets the id of the Operation which is used to retrieve the possible values for this field descriptor |
SQLOperation |
getPossibleValuesSQLOperation()
Deprecated. possible values are not just restricted to sql use getPossibleValuesOperation() |
int |
getPossibleValuesSQLOperationId()
Deprecated. possible values are not tied to just sql - use getPossibleValuesOperationId |
int |
getRadix()
Gets the column's radix. |
java.lang.String |
getRemarks()
Gets the comment describing the column (may be null) |
RowCollection |
getSampleFieldData()
Returns a RowCollection of sample Data that relates to the field that this FD describes Creation date: (6/20/2002 11:12:15 AM) |
RowCollection |
getSampleTableData()
Returns a RowCollection of sample Data that relates to the library and table that this FD describes Creation date: (6/20/2002 11:12:15 AM) |
short |
getScale()
Gets the column's number of fractional digits. |
java.lang.String |
getSchema()
Gets the Table's schema (may be null). |
int |
getSecuredTypeId()
Gets the id of the secured type. |
java.lang.String |
getSecuredTypeName()
Gets the secured type name of the secured object. |
int |
getSecurityId()
Gets the id of the security entity pertaining to the Fields this FieldDescriptorRow describes. |
int |
getSecurityType()
Gets the security type of the Fields this FieldDescriptorRow describes. |
java.lang.String |
getSetterMethod()
|
int |
getSQLType()
Gets the SQL type of the described fields. |
java.lang.String |
getSQLTypeName()
getSQLTypeName method comment. |
int |
getStatusChange()
Returns whether or not we notify on a status change |
java.lang.String |
getStyleClass()
Gets the style class for this FieldDescriptor's Fields |
java.lang.String |
getSwitches()
Gets the switches, swithces is an extra field for holding special indicators which may be used for influencing how the DataEngine behaves. |
java.lang.String |
getSystemURL()
Gets the system url. |
int |
getUsageId()
Gets the usageId of the field. |
protected java.lang.String |
getUserFieldStringValue(Field field,
java.lang.String fdFieldName,
ExecutingContext ec)
Gets the default or auto update String parameter for the described fields. |
protected java.lang.String |
getUserFieldStringValue(java.lang.String fieldName,
ExecutingContext ec)
Deprecated. should passed Field object as parameter as well to allow for ?? parameter |
java.lang.String |
getUserMessageForOperation(int changeCount,
int mode)
Return a message to the user after an operation completes. |
java.lang.String |
getXMLTag()
|
java.lang.Class |
guessFieldClass()
Here is where we will take an educated guess at what the Field Class will be for this FD Row. |
boolean |
hasAssociationOperation()
This method simply tells whether or not there is a value in the DATA_LV_ID column. |
boolean |
hasAutoPopulateOperation()
This method simply tells whether or not there is a value in the PV_LV_ID column. |
boolean |
hasDefaultValue()
Tests if Fields associated with this descriptor have a default value. |
boolean |
hasFormatter()
Tests if a formatter class exists for the described field. |
boolean |
hasHelpText()
Tests if help text exists for the described field. |
boolean |
hasPossibleValuesKeyClassOrOp()
This method determines if the FD has possible values of any kind. |
boolean |
hasPossibleValuesOperation()
This method simply tells whether or not there is a value in the PV_LV_ID column. |
boolean |
hasPossibleValuesSQLOperation()
Deprecated. replaced with hasPossibleValueOperation - might not just be sql |
boolean |
hasScale()
Check if scale (decimal digits) exists and has been set on this FD. |
boolean |
hasUsageId()
Check if this FieldDescriptorRow has a usage id. |
int |
insert(SQLContext context)
Inserts this Row into its table. |
boolean |
isAssignable(java.lang.Class classType)
Returns true if this FDRow has a fieldClass which is equal or a subclass of classType |
boolean |
isAuthorizedForEdit(Field field,
Row row,
ExecutingContext ec)
Check to see if Field in Row can be edited. |
boolean |
isAuthorizedForRead(Field field,
Row row,
ExecutingContext ec)
Check to see if the given Field in the given Row can be read. |
boolean |
isAutoIncrement()
Checks if this Field's value is auto incremented. |
boolean |
isAutoIncrementDatabaseDriven()
Checks to see if this is set to a WOW driven auto increment field. |
boolean |
isAutoIncrementWOWDriven()
Checks to see if this is set to a WOW driven auto increment field. |
boolean |
isAutoPopulate()
|
boolean |
isAutoTrimOnRead()
|
boolean |
isAutoTrimOnWrite()
|
boolean |
isAutoUpdateValue()
Checks if this Field has a default value. |
boolean |
isCaseSensitive()
Returns if this column is case sensitive. |
boolean |
isColumnTableChanged()
Tests if this field descriptor is describing a different table than it was when it was read from the DB |
boolean |
isCurrency()
Returns if this column is currency. |
boolean |
isCurrent()
Check this FD to see if it is the most current. |
boolean |
isDefaultValue()
Deprecated. (7/14/2003 10:23:14 AM) replaced with hasDefaultValue to keep method name easier to understand and make sense |
boolean |
isDerived()
Tests if the field described by this field descriptor is derived |
boolean |
isDisplayable(ExecutingContext ec)
Indicates whether this column is definitely not writable. |
boolean |
isExistInFDFile()
Return true if this FieldDescriptor exists in the Field Data file |
boolean |
isFieldApplicable(Field fld,
ExecutingContext ec)
Tests if a field is applicable in the current scenario |
boolean |
isFileUpload()
|
boolean |
isGetterMethodSpecified()
Indicates whether the column has a getter method specified. |
boolean |
isGuessFieldClass()
Tests if the system shoulc attempt to guess the field class for the described field when this row is inserted into the DB |
boolean |
isInKey()
Tests if the described field is part of the primary key for its table. |
boolean |
isLogical()
Check to see if Field this FieldDescriptor describes is logical. |
boolean |
isNullCapable()
Indicates whether this column is null capable. |
boolean |
isNumericSQLType()
Returns true if the SQL Type is numeric according to Types |
boolean |
isPercentage()
Returns if this column is currency. |
boolean |
isPhysical()
Tests if this field descriptor describes a field that is physically present in the database |
boolean |
isPossibleValuesSearch()
Tests if this field descriptor describes a field that is physically present in the database |
boolean |
isReadFromDBMetadata()
Return true if this FieldDescriptor was read from DB metadata |
boolean |
isReadFromRSMetadata()
Return true if this FieldDescriptor was read from RS metadata |
boolean |
isReadOnly()
Indicates whether this column is definitely not writable. |
boolean |
isRequired()
Returns true if this field is required |
boolean |
isRequiredOnSearch()
Check if Field's value is required on search. |
boolean |
isSearchable()
Indicates whether the column can be used in a where clause. |
boolean |
isSetterMethodSpecified()
Indicates whether the column has a setter method specified. |
boolean |
isShared()
Tests if this FD is shared |
boolean |
isSigned()
Indicates whether values in the column are signed numbers. |
boolean |
isSortable()
Checks if this Field's value is auto incremented. |
boolean |
isStatusChange()
Check whether or not this FD is status change. |
boolean |
isUseRowForFieldSets()
Check to see if the row should be used to obtain field sets. |
protected void |
postDelete(int changed,
ExecutingContext ec)
This method provides a "hook" for altering the current Row after a delete is performed. |
void |
setApplicationID(java.lang.String pApplicationID)
|
void |
setAssociationFieldId(int id)
Sets the id of the association group field that this field belongs to. |
void |
setAssociationId(int id)
Sets the id of the association group that this field belongs to. |
void |
setAutoIncrement(boolean pIsAutoIncrement)
Deprecated. Auto increment is no longer a boolean field. WOW now has the functionality to handle database driven auto increment fields. Possible values for auto increment are now N=Not, Y=WOW, and D=Database. This method assumes true is WOW driven so the auto increment value will be set to Y. setAutoIncrement(String) should be used to set to types other then Y and N. |
void |
setAutoIncrment(java.lang.String type)
Set the type of auto increment to use. |
void |
setAutoTrimOnRead(boolean pAutoTrimOnRead)
|
void |
setAutoTrimOnWrite(boolean pAutoTrimOnWrite)
|
void |
setCaseSensitive(boolean pCaseSensitive)
Sets if this column is case sensitive. |
void |
setCatalog(java.lang.String pCatalog)
Sets the Table's catalog (may be null). |
void |
setColumnSize(int pColumnSize)
Sets the column's size. |
void |
setColumnTableName(java.lang.String pColumnTableName)
Sets the Table name. |
void |
setCompanyID(java.lang.String pCompanyID)
|
void |
setConcurrency(int pConcurrency)
Sets the concurrency for the described fields, which determines if it is okay for concurrent update/deletes to occur. |
void |
setConnectionAlias(java.lang.String alias)
Sets the system alias. |
void |
setCurrency(boolean pCurrency)
Sets if this column is currency. |
void |
setCurrent(boolean current)
Set whether or not this FD is the most current. |
void |
setDataSQLOperationId(int value)
Sets the id of the SQLOperation which is used to retrieve the data described by this field descriptor |
void |
setDecimalDigits(int pDecimalDigits)
Sets the column's number of fractional digits. |
void |
setDefaultValue(java.lang.String pDefaultValue)
Sets the default value for the described field. |
void |
setDisplayComponent(int component)
Sets the display component for this field. |
void |
setDisplayHeight(int value)
Sets the Field's display height. |
void |
setDisplayLength(int value)
Deprecated. replaced with setDisplayWidth(int) to keep consistent with what a user sees when they view the field (e.g. width and height of a field) (7/7/2003 2:26:31 PM) |
void |
setDisplayOrder(int value)
Sets the order in which this field should be displayed. |
void |
setDisplayRule(int rule)
Sets the display rule for this field. |
void |
setDisplayWidth(int value)
Sets the Field's display width. |
void |
setDivisionID(java.lang.String pDivisionID)
|
void |
setExternalName(java.lang.String pExternalName)
Sets the external name of the described field. |
void |
setFieldClass(java.lang.Class pFieldClass)
Sets the class name of the formatter for the field. |
void |
setFieldClass(java.lang.String pFieldClass)
Sets the class name of the formatter for the field. |
void |
setFieldDescriptorType(int value)
Sets the type of this field descriptor |
void |
setFieldSet(java.lang.String value)
Sets the field set for the described fields. |
void |
setFieldValue(java.lang.String fldNam,
java.lang.Object value)
Sets the value of the specified field. |
void |
setFormatterClass(java.lang.String pFormatter)
Sets the class name of the formatter for the field. |
void |
setGuessFieldClass(boolean newGuessFieldClass)
Sets if the system shoulc attempt to guess the field class for the described field when this row is inserted into the DB |
void |
setHelpText(java.lang.String pHelpText)
Sets the help text for the described field. |
void |
setIsNullable(java.lang.String pIsNullable)
Sets whether or not NULL is allowed. |
void |
setKeyPosition(int pKeyPosition)
Sets the position of the described field in the primary key of that field's table. |
void |
setMaxBytes(int pMaxBytes)
Sets the maximum number of bytes in the column for char types. |
void |
setName(java.lang.String pName)
Sets the name of the described fields. |
void |
setNullable(int pNullable)
Sets whether or not NULL is allowed. |
void |
setOrdinalPosition(int pOrdinalPosition)
Sets the index of the column in the table (starting at 1). |
void |
setOwnerId(int value)
Sets the owner id of this field descriptor |
void |
setOwnerId(java.lang.Integer id)
Sets the owner id of this field descriptor |
void |
setPossibleValueClass(java.lang.String pPVClass)
Sets the fully qualified name for a class implementing the IPossibleValueGetter interface which will
handle the retrieving of possible values for Fields associated with this
descriptor. |
void |
setPossibleValuesKey(java.lang.String value)
Sets the possible values key. |
void |
setPossibleValuesSQLOperationId(int value)
Sets the id of the SQLOperation which is used to retrieve the possible values for this field descriptor |
void |
setRadix(int pRadix)
Sets the column's radix. |
void |
setReadOnly(boolean pReadOnly)
Sets whether this column is definitely not writable. |
void |
setRemarks(java.lang.String pRemarks)
Sets the comment describing the column (may be null) |
void |
setRequired(boolean required)
Sets if this column allows null. |
void |
setSchema(java.lang.String pSchema)
Sets the Table's schema (may be null). |
void |
setSearchable(boolean pSearchable)
Sets whether the column can be used in a where clause. |
void |
setSigned(boolean pSigned)
Sets whether values in the column are signed numbers. |
void |
setSortable(boolean pSortable)
|
void |
setSQLType(int pSQLType)
Sets the SQL type of the described fields. |
void |
setSQLTypeName(java.lang.String pSQLTypeName)
setSQLTypeName method comment. |
void |
setStatusChange(int pStatusChange)
Sets whether or not to notify on status change |
void |
setSwitches(java.lang.String switches)
Sets the switches, swithces is an extra field for holding special indicators which may be used for influencing how the DataEngine behaves. |
void |
setSystemURL(java.lang.String pSystemURL)
Sets the system url. |
void |
setTable(Table pTable)
Sets the table to which this row belongs. |
void |
setUsageId(int usageid)
Gets the usageId of the field. |
void |
setXMLTag(java.lang.String pXMLTag)
|
Row |
statusChanged(Field field,
ExecutingContext ec)
Invoked when a status change takes place on of this Row's fields. |
java.lang.String |
toString()
|
Row |
transferDataTo(Row pDestinationRow)
Transfers all the data in this Row into a different Row. |
int |
update(java.sql.Connection conn,
ExecutingContext ec)
Updates the database with the values in this Row. |
void |
updateFieldValues(java.util.Map fields)
Updates the values of any Fields in this Row with the value in the given Map that has the same key as the Field's name. |
boolean |
validate(ExecutingContext pContext)
Validate this Row based on it's configuration and field values. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FieldDescriptorRow()
Method Detail |
protected java.lang.Class calculateFieldClass() throws CMException
CMException
public void clearJavaFieldClass() throws CMException
Clears the Java Class that is used for instances of the described field. If this class name has been specified, in the FD then it is used to create the Class instance. If the class name is not specified in the FD then it is determined from the SQL data type.
CMException
- If a class name was entered, but does not correspond
to a Java classpublic FieldDescriptorRow cloneFD() throws CMException
CMException
public Row copy(boolean pFullCopy) throws CMException
Row
copy
in class Row
pFullCopy
- whether or not to copy the complete Row
CMException
public Field createDefaultField() throws CMException
CMException
public Field createDefaultField(java.lang.String pFieldName) throws CMException
CMException
public Field createField() throws CMException
CMException
public java.lang.String getDeleteConfirmationMessage()
Row
getDeleteConfirmationMessage
in class Row
public Field createField(java.lang.String pFieldName) throws CMException
CMException
public Field createField(java.lang.String pFieldName, java.lang.Class fieldClass) throws CMException
CMException
public Row createRow(Row pDefaultRow) throws CMException
transferDataTo()
method is used to move the data from the default Row to the newly created
Row. Override this method if the type of Row to add needs to be
dynamically determined from the retrieved data.
createRow
in interface IRowCreator
createRow
in class Row
pDefaultRow
- A Row containing data read from the database (it will
always be equal to this)
CMException
protected SQLContext createSQLContextForUpdate(ExecutingContext ec) throws CMException
createSQLContextForUpdate
in class Row
CMException
public boolean duplicateKey(int retriesLeft, ExecutingContext ec) throws CMException
duplicateKey
in class Row
retriesLeft
- The number of retry attemps leftec
- context in which the Row is being processed.
CMException
public java.lang.String getApplicationID()
public int getAssociationFieldId()
public int getAssociationId()
public Operation getAssociationOperation() throws CMException
CMException
public int getAssociationOperationId()
public java.lang.String getAutoUpdateStringValue(ExecutingContext pEc)
public java.lang.String getAutoUpdateStringValue(Field field, ExecutingContext pEc)
public java.lang.String getAutoUpdateValue()
public java.lang.String getCatalog()
public java.lang.String getColumnName()
public int getColumnSize()
public DBSystem getColumnSystem()
public Table getColumnTable()
public Table getColumnTable(boolean oldValue)
oldValue
- If this is true, then the "old" table is returned
Creation date: (5/10/2002 11:56:07 AM)public java.lang.String getColumnTableName()
public java.lang.String getCompanyID()
public int getConcurrency()
FieldDescriptorRow
.
public java.lang.String getConnectionAlias()
public SQLOperation getDataSQLOperation() throws CMException
CMException
public int getDataSQLOperationId()
public short getDataType()
Types
public short getDecimalDigits()
public java.lang.String getDefaultStringValue(ExecutingContext pEc)
public java.lang.String getDefaultStringValue(Field field, ExecutingContext pEc)
public java.lang.String getDefaultValue()
public int getDisplayComponent()
public int getDisplayHeight()
public int getDisplayLength()
public int getDisplayOrder()
public int getDisplayRule()
public int getDisplayWidth()
public java.lang.String getDivisionID()
public java.lang.String getExternalName()
public java.lang.String getFieldClass() throws CMException
Gets the name of the Java Class to use for instances of the described
field. See getJavaFieldClass()
for more
information.
CMException
public java.lang.String getFieldClassName() throws CMException
Gets the name of the Java Class to use for instances of the described
field. See getJavaFieldClass()
for more
information.
CMException
public boolean getFieldClassParameterDigitRequired()
public java.lang.String[] getFieldClassParameters()
public java.lang.String getFieldClassString() throws CMException
CMException
public static java.lang.Class getFieldDescriptorClass(int fdType)
public java.lang.String getFieldDescriptorSource()
public int getFieldDescriptorType()
public int getFieldDisplayOrder(Field field)
Row
getFieldDisplayOrder
in class Row
public java.lang.String getFieldFieldSetName(Field field)
Row
getFieldFieldSetName
in class Row
public java.lang.String getFieldSet()
public java.lang.String getFormatterClass()
public java.lang.String[] getFormatterClassParameters()
public java.lang.String getGetterMethod()
public java.lang.String getHelpText()
public int getId()
protected java.lang.Integer getIdAsInteger()
public java.lang.String getIsNullable()
public java.lang.Class getJavaFieldClass() throws CMException
Gets the Java Class to use for instances of the described field. If this class name has been specified, in the FD then it is used to create the Class instance. If the class name is not specified in the FD then it is determined from the SQL data type.
This method is a replacement for the old getFieldClass() method which calculated the field class each time. Now it's calculated once and cached.
CMException
- If a class name was entered, but does not correspond
to a Java classpublic int getKeyPostion()
public int getMaxBytes()
public java.lang.String getName()
public int getNullable()
public int getOrdinalPosition()
public short getOrigin()
public int getOwnerId()
IOwner
public Field getOwnerIdField()
getOwnerIdField
in interface IOwner
IOwner
public java.lang.String getPossibleValueClass()
IPossibleValueGetter
interface which will
handle the retrieving of possible values for Fields associated with this
descriptor.
public RowCollection getPossibleValues(Field field) throws CMException
getPossibleValues
in class Row
field
- Field
CMException
public java.lang.String getPossibleValuesKey()
public Operation getPossibleValuesOperation() throws CMException
CMException
public SQLOperation getPossibleValuesSQLOperation() throws CMException
CMException
public int getPossibleValuesSQLOperationId()
public int getPossibleValuesOperationId()
public int getRadix()
public java.lang.String getRemarks()
public RowCollection getSampleFieldData()
public RowCollection getSampleTableData()
public short getScale()
public java.lang.String getSchema()
public int getSecuredTypeId()
getSecuredTypeId
in interface IGuarded
getSecuredTypeId
in class Row
public java.lang.String getSecuredTypeName()
getSecuredTypeName
in interface IGuarded
getSecuredTypeName
in class Row
public int getSecurityId()
public int getSecurityType()
getSecurityType
in interface IGuarded
getSecurityType
in class Row
public java.lang.String getSetterMethod()
public int getSQLType()
java.sql.Types
public java.lang.String getSQLTypeName()
public int getStatusChange()
public java.lang.String getStyleClass()
public java.lang.String getSwitches()
public java.lang.String getSystemURL()
public int getUsageId()
protected java.lang.String getUserFieldStringValue(java.lang.String fieldName, ExecutingContext ec)
fieldName
- name of Field containing value to get.ec
- context in which code is executing.protected java.lang.String getUserFieldStringValue(Field field, java.lang.String fdFieldName, ExecutingContext ec)
field
- Field to which the default value is being retrieved forfdFieldName
- name of field on this FD to get a value from.ec
- context in which code is executing.public java.lang.String getUserMessageForOperation(int changeCount, int mode)
Row
getUserMessageForOperation
in class Row
(see Row constants to find the modes.
public java.lang.String getXMLTag()
public java.lang.Class guessFieldClass()
public boolean hasAssociationOperation()
public boolean hasAutoPopulateOperation()
public boolean hasDefaultValue()
public boolean hasFormatter()
public boolean hasHelpText()
public boolean hasPossibleValuesKeyClassOrOp()
public boolean hasPossibleValuesSQLOperation()
public boolean hasScale()
public boolean hasPossibleValuesOperation()
public boolean hasUsageId()
public int insert(SQLContext context) throws CMException
insert
in class Row
CMException
public boolean isAssignable(java.lang.Class classType)
public boolean isAuthorizedForEdit(Field field, Row row, ExecutingContext ec) throws CMException
CMException
public boolean isAuthorizedForRead(Field field, Row row, ExecutingContext ec) throws CMException
CMException
public boolean isAutoIncrement()
public boolean isAutoIncrementWOWDriven()
public boolean isAutoIncrementDatabaseDriven()
public boolean isAutoPopulate()
public boolean isAutoTrimOnRead()
public boolean isAutoTrimOnWrite()
public boolean isAutoUpdateValue()
public boolean isCaseSensitive()
public boolean isColumnTableChanged()
public boolean isCurrency()
public boolean isCurrent()
isCurrent
in class Row
public boolean isDefaultValue()
public boolean isDerived()
public boolean isDisplayable(ExecutingContext ec)
public boolean isExistInFDFile()
public boolean isFieldApplicable(Field fld, ExecutingContext ec) throws CMException
Row
isFieldApplicable
in class Row
fld
- The field which may or may not be applicable
CMException
public boolean isFileUpload()
public boolean isGetterMethodSpecified()
public boolean isGuessFieldClass()
public boolean isInKey()
public boolean isLogical()
public boolean isNullCapable()
public boolean isPercentage()
public boolean isPhysical()
public boolean isPossibleValuesSearch()
public boolean isReadFromDBMetadata()
public boolean isReadFromRSMetadata()
public boolean isReadOnly()
public boolean isNumericSQLType()
public boolean isRequired()
public boolean isRequiredOnSearch()
public boolean isSearchable()
public boolean isSetterMethodSpecified()
public boolean isShared()
public boolean isSigned()
public boolean isSortable()
public boolean isStatusChange()
protected void postDelete(int changed, ExecutingContext ec) throws CMException
postDelete
in class Row
ec
- current context in which code is running
CMException
public void setApplicationID(java.lang.String pApplicationID) throws CMException
CMException
public void setAssociationFieldId(int id)
public void setAssociationId(int id)
public void setAutoIncrement(boolean pIsAutoIncrement) throws CMException
CMException
public void setAutoIncrment(java.lang.String type) throws CMException
type
-
CMException
public void setAutoTrimOnRead(boolean pAutoTrimOnRead) throws CMException
CMException
public void setAutoTrimOnWrite(boolean pAutoTrimOnWrite) throws CMException
CMException
public void setCaseSensitive(boolean pCaseSensitive) throws CMException
CMException
public void setCatalog(java.lang.String pCatalog) throws CMException
CMException
public void setColumnSize(int pColumnSize) throws CMException
CMException
public void setColumnTableName(java.lang.String pColumnTableName) throws CMException
CMException
public void setCompanyID(java.lang.String pCompanyID) throws CMException
CMException
public void setConcurrency(int pConcurrency) throws CMException
FieldDescriptorRow
.
CMException
public void setConnectionAlias(java.lang.String alias) throws CMException
CMException
public void setCurrency(boolean pCurrency) throws CMException
CMException
public void setCurrent(boolean current)
public void setDataSQLOperationId(int value) throws CMException
CMException
public void setDecimalDigits(int pDecimalDigits) throws CMException
CMException
public void setDefaultValue(java.lang.String pDefaultValue) throws CMException
CMException
public void setDisplayComponent(int component) throws CMException
CMException
public void setDisplayHeight(int value) throws CMException
value
- display height for the Field
CMException
public void setDisplayLength(int value) throws CMException
CMException
public void setDisplayOrder(int value) throws CMException
CMException
public void setDisplayRule(int rule) throws CMException
CMException
public void setDisplayWidth(int value) throws CMException
value
- display width for the Field
CMException
public void setDivisionID(java.lang.String pDivisionID) throws CMException
CMException
public void setExternalName(java.lang.String pExternalName) throws CMException
CMException
public void setFieldClass(java.lang.Class pFieldClass) throws CMException
CMException
public void setFieldClass(java.lang.String pFieldClass) throws CMException
CMException
public void setFieldDescriptorType(int value) throws CMException
CMException
public void setFieldSet(java.lang.String value) throws CMException
CMException
public void setFieldValue(java.lang.String fldNam, java.lang.Object value) throws CMException
setFieldValue
in class Row
fldNam
- The name of the field to set. If no such field exists in
this Row, a skeleton
field will be
created to hold the value, and added to this row.value
- The value to set the field to.
CMException
public void setFormatterClass(java.lang.String pFormatter) throws CMException
CMException
public void setGuessFieldClass(boolean newGuessFieldClass)
public void setHelpText(java.lang.String pHelpText) throws CMException
CMException
public void setIsNullable(java.lang.String pIsNullable) throws CMException
CMException
public void setKeyPosition(int pKeyPosition) throws CMException
CMException
public void setMaxBytes(int pMaxBytes) throws CMException
CMException
public void setName(java.lang.String pName) throws CMException
CMException
public void setNullable(int pNullable) throws CMException
CMException
public void setOrdinalPosition(int pOrdinalPosition) throws CMException
CMException
public void setOwnerId(int value) throws CMException
CMException
public void setOwnerId(java.lang.Integer id) throws CMException
CMException
public void setPossibleValueClass(java.lang.String pPVClass) throws CMException
IPossibleValueGetter
interface which will
handle the retrieving of possible values for Fields associated with this
descriptor.
CMException
public void setPossibleValuesKey(java.lang.String value) throws CMException
CMException
public void setPossibleValuesSQLOperationId(int value) throws CMException
CMException
public void setRadix(int pRadix) throws CMException
CMException
public void setReadOnly(boolean pReadOnly) throws CMException
CMException
public void setRemarks(java.lang.String pRemarks) throws CMException
CMException
public void setRequired(boolean required) throws CMException
CMException
public void setSchema(java.lang.String pSchema) throws CMException
CMException
public void setSearchable(boolean pSearchable) throws CMException
CMException
public void setSigned(boolean pSigned) throws CMException
CMException
public void setSortable(boolean pSortable) throws CMException
CMException
public void setSQLType(int pSQLType) throws CMException
java.sql.Types
CMException
public void setSQLTypeName(java.lang.String pSQLTypeName) throws CMException
CMException
public void setStatusChange(int pStatusChange) throws CMException
CMException
public void setSwitches(java.lang.String switches) throws CMException
CMException
public void setSystemURL(java.lang.String pSystemURL) throws CMException
CMException
public void setTable(Table pTable)
public void setUsageId(int usageid) throws CMException
CMException
public void setXMLTag(java.lang.String pXMLTag) throws CMException
CMException
public java.lang.String toString()
public Row transferDataTo(Row pDestinationRow) throws DataEngineException
transferDataTo
in class Row
pDestinationRow
- The Row to copy the data to.
DataEngineException
public int update(java.sql.Connection conn, ExecutingContext ec) throws CMException
Row
update
in class Row
CMException
public void updateFieldValues(java.util.Map fields) throws CMException
Row
updateFieldValues
in class Row
CMException
public boolean validate(ExecutingContext pContext) throws CMException
Row
validate
in class Row
pContext
- current context in which application is executing
CMException
public int getFieldClassParameterMinLength()
public boolean isUseRowForFieldSets() throws CMException
Row
isUseRowForFieldSets
in class Row
CMException
public Row statusChanged(Field field, ExecutingContext ec) throws CMException
Row
statusChanged
in class Row
field
- The field whose status has changedec
- The current executing context
CMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |