|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.database.Row
Represents a logical row of a database. A Row object may be a subset (containing only some of the columns) of a row in the database. It may also contain
columns from multiple tables of the database. A Row's fields can be obtained via the getFields()
method. Changes can be made to a Row
object, and then committed to the database with the update()
method.
Nested Class Summary | |
static class |
Row.SpacingRow
|
Field Summary | |
static java.lang.String |
className
|
static java.util.Comparator |
DISPLAY_ORDER_COMPARATOR
|
static int |
MODE_ALTER
|
static int |
MODE_COPY
|
static int |
MODE_DELETE
|
static int |
MODE_INSERT
|
static int |
MODE_READ
|
static int |
MODE_SEARCH
|
static int |
MODE_UNKNOWN
|
static int |
MODE_UPDATE
|
protected java.util.List |
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 | |
Row()
|
Method Summary | |
void |
add(Field pField)
Adds the given Field to this Row's FieldCollection. |
void |
add(RowCollection pRowCollection)
Adds the given RowCollection to the List of RowCollection's this Row belongs to. |
void |
addObject()
Add an object to the system. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a listener which is informed when any field of this Row which has its value changed. |
void |
addPropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener listener)
Adds a listener which is informed when a specific property of this Row which has its value changed. |
void |
addRowEventListener(IRowEventListener pNewListener)
Adds a new Listener to this Row. |
void |
addRowEventListeners(java.util.List listeners)
|
void |
addTable(Table pTable)
Sets the table to which this row belongs. |
int |
addToRowCollection(RowCollection rc)
Adds this row to a RowCollection. |
java.lang.StringBuffer |
appendDisplayType(java.lang.StringBuffer sb)
Deprecated. row shouldn't know how to display html stuff - moved logic back into htmltable, eventually we could check the row to see if its property group has a css to use and use that if needed |
void |
batchProcess()
Process this Object. |
void |
clearFields()
Removes all the Fiels from this Row. |
void |
clearTables()
Removes all the Fiels from this Row. |
void |
clearValidationException()
Clears any validation exceptions that have previously been set on each of this Row's Fields. |
java.lang.Object |
clone()
Clone this Row object. |
Row |
cloneRow()
Clones this Row object. |
void |
commitFieldValues()
Commits the values of the Fields in this Row. |
void |
commitFieldValues(java.util.Collection pFields)
Commits the values of the Fields in the given Collection. |
void |
commitFieldValues(java.util.Map pFields)
Commits the values of the Fields in the given Map. |
java.lang.String |
concatenateFieldFullLengthValues(java.lang.String[] pFieldNames,
java.lang.String pSeperator)
Concat the field full length string values inserting the supplied seperator between values. |
java.lang.String |
concatenateFieldValues(java.lang.String[] pFieldNames,
java.lang.String pSeperator,
boolean pTrimValues)
Concat the field values inserting the supplied seperator between values and optionally trim the values before concating. |
boolean |
containsField(java.lang.String fieldName)
Check to see if this Row contains the Field with the given name. |
Row |
copy(boolean pFullCopy)
Copy this Row. |
void |
copyIntoRowFieldsWithCommonFieldNames(Row rowToCopy)
Deprecated. replaced with setFieldValuesWithCommonFieldNames(Row) |
void |
copyIntoRowFieldsWithCommonFieldNames(Row rowToCopy,
boolean ignoreCase)
Deprecated. replaced with setFieldValuesWithCommonFieldNames(Row, boolean) |
void |
copyIntoRowFieldsWithCommonUsageIds(Row rowToCopy)
Copy the fields from the supplied Row with the same usageid into this Row. |
void |
copyIntoRowFieldsWithGivenFieldNames(java.util.List fieldNames,
Row rowToCopy)
Deprecated. replaced with setFieldValuesWithCommonFieldNames(List, Row, boolean) |
void |
copyIntoRowFieldsWithGivenFieldNames(java.util.List fieldNames,
Row rowToCopy,
boolean ignoreCase)
Deprecated. replaced with setFieldValuesWithCommonFieldNames(List, Row, boolean) |
static Row |
create(java.lang.Class rowSubClass)
Create and return a new Row of the given Class type using the given ExecutingContext to allow for security and/or personalization. |
static Row |
create(java.util.List tables,
java.lang.Class rowSubClass,
java.util.List fieldNames,
boolean initializeRow,
ExecutingContext pExecutingContext)
Create and return a new Row of the given Class type and also set its Table. |
static Row |
create(RowCollection pRowCollection)
Create and return a new Row and also set its Table. |
static Row |
create(RowCollection pRowCollection,
boolean initialRow)
Create and return a new Row and also set its Table. |
static Row |
create(RowCollection pRowCollection,
java.lang.Class rowSubClass)
Create and return a new Row and also set its Table. |
static Row |
create(RowCollection pRowCollection,
java.lang.Class rowSubClass,
boolean initialRow)
Create and return a new Row and also set its Table. |
static Row |
create(SQLContext context,
java.util.List fieldNames,
boolean initializeRow)
Create and return a new Row from the given SQLContext. |
static Row |
create(Table table)
Create and return a new Row of class Row.class and initializes the row with all of the tables fields. |
static Row |
create(Table table,
boolean initializeRow)
Create and return a new Row of class Row.class and initializes the row with all of the tables fields if specified. |
static Row |
create(Table table,
boolean initializeRow,
ExecutingContext ec)
Create and return a new Row and also set its Table. |
static Row |
create(Table table,
java.lang.Class rowSubClass)
Create and return a new Row of the given Class type and also set its Table. |
static Row |
create(Table table,
java.lang.Class rowSubClass,
boolean initializeRow)
Create and return a new Row of the given Class type and also set its Table. |
static Row |
create(Table table,
java.lang.Class rowSubClass,
boolean initializeRow,
ExecutingContext pExecutingContext)
Create and return a new Row of the given Class type and also set its Table. |
static Row |
create(Table table,
java.lang.Class rowSubClass,
ExecutingContext executingContext)
Create and return a new Row of the given Class type and also set its Table. |
static Row |
create(Table table,
java.lang.Class rowSubClass,
java.util.List fieldNames,
boolean initializeRow)
Create and return a new Row of the given Class type and also set its Table. |
static Row |
create(Table table,
java.lang.Class rowSubClass,
java.util.List fieldNames,
boolean initializeRow,
ExecutingContext pExecutingContext)
Create and return a new Row of the given Class type and also set its Table. |
static Row |
create(Table table,
java.util.List fieldNames,
boolean initialize)
Create and return a new Row for the given table and field names. |
static Row |
create(Table table,
java.util.List fieldNames,
boolean initializeRow,
ExecutingContext pExecutingContext)
Create and return a new Row of the given Class type and also set its Table. |
static Row |
create(Table table,
java.util.List names,
ExecutingContext ec)
Create and return a new Row and also set its Table. |
AbstractAction |
createAction(java.lang.String name,
ExecutingContext ec)
Create an action for the given action name. |
AbstractActionRequest |
createNamedActionRequest(java.lang.String name,
ExecutingContext ec)
|
Row |
createRow(Row pDefaultRow)
Creates a new Row. |
protected SQLContext |
createSQLContextForDelete(ExecutingContext ec)
Creates a new SQLContext which will be used for deleting this row. |
protected SQLContext |
createSQLContextForInsert(ExecutingContext ec)
Creates a new SQLContext which will be used for inserting this row. |
protected SQLContext |
createSQLContextForUpdate(ExecutingContext ec)
Creates a new SQLContext which will be used for updating this row. |
protected void |
dataTransferred(Row oldRow)
This method is invoked after this row has data transferred to it from another row. |
void |
defaultMerge(RowCollection rc)
Works similar to the merge method, except all the fields that are merged into this row have the default values for that field type instead of actual values. |
int |
delete()
Deletes the row from the database file to which it belongs. |
int |
delete(java.sql.Connection conn)
Deletes the row from the database file to which it belongs. |
int |
delete(java.sql.Connection conn,
ExecutingContext ec)
Deletes the row from the database file to which it belongs. |
int |
delete(ExecutingContext ec)
Deletes the row from the database file to which it belongs. |
void |
deleteObject()
Delete an object from the system. |
double |
divide(java.lang.String fieldName,
java.lang.String fieldName2)
Get the division of the first field with the second fields. |
void |
duplicateKey(ExecutingContext ec)
Method called when a duplicate key is encountered attempting to insert this Row. |
boolean |
duplicateKey(int retriesLeft,
ExecutingContext ec)
Method called when a duplicate key is encountered attempting to insert this Row. |
protected void |
enforceExclusiveOr(java.util.List fieldNames)
Examines a set of fields in this Row. |
boolean |
equals(java.lang.Object otherRow)
Tests if this Row is equal to another Row. |
boolean |
equals(Row row,
java.util.List fieldNames)
Tests if a group of fields in this row have the same values as a group of fields in another row |
boolean |
equalsInstance(java.lang.Object otherRow)
Tests if this Row is equal to another Row. |
boolean |
fieldHasPossibleValuesSQLOperation(Field pField,
ExecutingContext pContext)
Deprecated. replaced with hasPossibleValuesOperation(Field, ExecutingContext) to keep consistancy with similar methods |
protected void |
firePropertyChange(java.lang.String name,
java.lang.Object oldValue,
java.lang.Object newValue)
Informs listeners of a property change. |
protected void |
fireRowEvent(RowEvent pEvent)
Method to support listener events. |
java.lang.String |
getActionDefaultLocation()
Get the location where this action is to be generated |
ActionDescriptor |
getActionDescriptor(AbstractAction action)
Get an action descriptor for the given action type and name. |
IActionRequest |
getActionRequest(AbstractAction action,
HttpServletRequest request,
HttpServletResponse response)
Get the magic request used to handle a given action. |
IActionRequest |
getActionRequest(AbstractAction action,
java.lang.Object o,
HttpServletRequest request,
HttpServletResponse response)
Get the magic request used to handle a given action. |
java.util.List |
getActions(ExecutingContext ec)
Get a List of the actions this object supports. |
java.util.List |
getActionsForFields(ExecutingContext ec)
Get a List of names of actions handled by this Row. |
java.util.List |
getActionsForOperation(ExecutingContext ec)
Gets the Operation actions which may apply to this Row. |
java.lang.Object |
getAssociation(java.lang.String fieldName)
Gets the association for the given Field name. |
java.lang.Object |
getAssociation(java.lang.String fieldName,
ExecutingContext ec)
Gets the association for the given Field name. |
java.lang.Object |
getAssociationByOperationUsageId(int usageId,
ExecutingContext ec)
Gets the association for the given operation usage id. |
Operation |
getAssociationOperation(java.lang.String fieldName)
Deprecated. use getFieldAssociationOperation(Field) |
java.lang.Object |
getAttribute(java.lang.Object key)
Map that allows general attributes about a Row to be set and retreived. |
Field |
getAutoIncrementDatabaseDrivenField(ExecutingContext ec)
Check to see if there is a Field in this Row that is an auto increment field handled by the database. |
java.awt.Color |
getBackgroundColor(Field field,
ExecutingContext ec)
Gets the background color to use when rendering the specified field in a non-HTML way |
java.util.List |
getChangedFields()
Gets the fields whose values have been changed |
RowCollection |
getChildren()
Gets a RowCollection of children this Row has. |
int |
getColumnSpan(Field field,
boolean isDetails)
Get the number of columns the given field should take up. |
Row |
getCompleteRow()
Gets a complete Row for this Row containing all of its Fields in the database. |
Row |
getCompleteRow(java.sql.Connection pConnection)
Gets a complete Row for this Row containing all of its Fields in using the specified connection if needed. |
protected FieldCollection |
getConcurrentFields()
Returns a FieldCollection object containing the fields in this row that do not allow for concurrent alterations |
java.lang.Object |
getConfigProperty(java.lang.String key,
ExecutingContext executingContext)
Get a config property for the given row. |
java.util.Map |
getCopiedFieldValues()
Returns a Map of field values, keyed by field name. |
SQLContext |
getCreationContext()
Gets the SQL context that was used when creating this Row |
java.util.List |
getCSVRow()
Returns a List of Fields that implement ICSVField or a list of Objects that provide a toString method which returns the desired text to be written to the CSV file. |
java.util.List |
getCSVRow(java.util.List fieldNames)
Returns a List of Fields that implement ICSVField or a list of Objects that provide a toString method which returns the desired text to be written to the CSV file. |
Row |
getDatabaseRow(boolean originalRow,
java.sql.Connection conn)
Rereads and returns this row as it exists in the database, or null if it doesn't exist in the database. |
Row |
getDatabaseRow(boolean originalRow,
java.sql.Connection conn,
boolean includeDerivedFields)
Rereads and returns this row as it exists in the database, or null if it doesn't exist in the database. |
Row |
getDatabaseRow(java.sql.Connection conn)
Rereads and returns this row as it exists in the database, or null if it doesn't exist in the database. |
Row |
getDatabaseRow(java.sql.Connection conn,
boolean includeDerivedFields)
Rereads and returns this row as it exists in the database, or null if it doesn't exist in the database. |
DBSystem |
getDBSystem()
Get the system object this Row. |
java.lang.String |
getDeleteConfirmation()
Deprecated. |
java.lang.String |
getDeleteConfirmationMessage()
Get the delete confirmation message. |
java.lang.Class |
getDisjointRowClass(Table table,
int mode,
ExecutingContext ec)
Gets the row class which will be used for containing the unjoined data in this row. |
java.lang.String |
getDisplayValue(java.lang.String fieldName)
Deprecated. |
java.lang.Object |
getDisplayValueByUsageId(int usageId)
Get a display value from this Row for the given usage id. |
java.lang.Object |
getDisplayValueForKey(java.lang.Object valueKey)
Get a display value from this row. |
java.lang.String |
getErrorMessageForOperation(int mode,
java.lang.Throwable t)
Return a message to the user after an operation completes. |
java.lang.String |
getExternalName(java.lang.String fieldName)
Gets the external name of a field |
java.util.List |
getExternalNames()
Gets the external names of this RowCollection's fields |
java.lang.StringBuffer |
getFDFData(java.lang.StringBuffer pFDFData)
This returns a StringBuffer containing all necessary FDF data for this object. |
Table |
getFDTable()
Get's a table to use when searching for FDs. |
Field |
getField(int pIndex)
Returns the Field at the specified index in this Row. |
Field |
getField(java.lang.String fieldName)
Returns the Field for the given name, or null if no such Field exists. |
Field |
getField(java.lang.String name,
boolean create)
Get the Field in this Row with the given name. |
Operation |
getFieldAssociationOperation(Field field)
Gets the association's operation for the given Field |
protected FieldCollection |
getFieldCollection()
Returns a FieldCollection object containing a List of Field names along with a Map of Fields keyed by Field name. |
java.lang.Object |
getFieldDefaultValue(Field field,
ExecutingContext ec)
Get the field's default value as a String. |
FieldDescriptorRow |
getFieldDescriptor(Field pField,
FieldDescriptorRow pFieldDescriptor)
Row subclasses can override this method to return the a clone of the default FD added by TJH Jun 22, 2004 11 : 49 : 27 PM to allow Rows to return different FDs for this field. |
FieldDescriptorRow |
getFieldDescriptor(java.lang.String pFieldName)
Return the IFieldDescriptor for the Field with the specified name. |
FieldDescriptorRow |
getFieldDescriptor(java.lang.String pFieldName,
Table pTable)
Return the IFieldDescriptor for the Field with the specified name. |
java.util.List |
getFieldDescriptorsWithUsage()
Deprecated. ask for fields with usage ids rather than fielddescriptors |
java.util.List |
getFieldDescriptorsWithUsageId(int usageId)
Deprecated. ask for fields with usage ids rather than fielddescriptors |
FieldDescriptorRow |
getFieldDescriptorWithUsageId(int usageId)
Deprecated. ask for field with usage ids rather than fielddescriptors |
int |
getFieldDisplayComponent(java.lang.String fieldName)
Gets the display component which should be used to display the specified field. |
int |
getFieldDisplayOrder(Field field)
Gets the order of which the given Field will appear in its FieldSet |
java.lang.Object |
getFieldDisplayValue(Field field)
Returns the display value for the Field with the specified name. |
java.lang.Object |
getFieldDisplayValue(java.lang.String fldNam)
Returns the display value for the Field with the specified name. |
java.lang.String |
getFieldExternalName(Field field)
Gets the external name of a field |
java.lang.String[] |
getFieldFieldClassParameters(Field field)
Gets the parameters for the given 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. |
IFieldIncrementor |
getFieldIncrementor(Field f)
Gets the incrementor for the field By default, Fields will use the same incrementor for their values. |
int |
getFieldMaxLength(java.lang.String fieldName)
Get the max length of the Field with the given name. |
java.util.List |
getFieldNames()
Return a List of all the Field names in this Row. |
java.util.List |
getFieldNames(Table table)
Gets the names of all fields in this row which are from the specified table. |
RowCollection |
getFieldPossibleValues(Field fld)
Returns a RowCollection containing the possible values for the Field. |
java.util.List |
getFields(java.lang.Class pFieldClassType)
Returns a List of Fields for requested Class type. |
java.util.Map |
getFields(java.util.List pFieldNames)
Returns a Map of Fields in this Row from the names given in the List. |
java.lang.Object |
getFieldSearchDefaultValue(Field field,
ExecutingContext ec)
Gets the default value for the field when it is being used in a search |
java.util.List |
getFieldSets()
Gets a List of the FieldSet objects, containing the fields in this Row |
protected java.util.Map |
getFieldsForInsert(ExecutingContext ec)
Gets the fields which should be inserted when this row is inserted. |
java.lang.Object |
getFieldSQLObject(java.lang.String fieldName)
Gets this field's value as an Object in SQL format. |
int |
getFieldStatusChange(Field field)
Returns whether or not we notify on a status change for the specified field |
java.util.List |
getFieldsToDisplay()
Return a List of all the Field names that will be displayed by default. |
java.util.List |
getFieldsToDisplayStrict(ExecutingContext pEc)
Return a List of all the Field names that will be displayed by default. |
java.util.List |
getFieldsToDisplayStrict(java.util.List fieldNames,
ExecutingContext ec)
Removes fields from the list that should not be displayed. |
java.lang.String |
getFieldStyleClass(Field field,
java.lang.String value,
java.lang.String displayValue,
ExecutingContext ec)
Get a Field's style. |
java.util.List |
getFieldsWithUsageId(int usageId)
Get the Fields in this Row that have the specified usage id. |
int[] |
getFieldUsageIds(Field field)
Gets the usage ids of this field. |
java.lang.Object |
getFieldValue(java.lang.String pFieldName)
Gets a field in this Row by name. |
java.lang.Object |
getFieldValueWithUsageId(int usageId)
Gets a field in this Row for the given usage id and returns its value. |
Field |
getFieldWithUsageId(int usageId)
Get the Field with the given usage id from this row. |
java.lang.String |
getHeaderText(ExecutingContext ec)
Returns information for the user that will be displayed in the header of the Row |
short |
getHorizontalAlignment(Field field,
ExecutingContext ec)
Gets the alignment for the specified field, when it is rendered in a non-HTML way |
java.lang.String |
getJSPFor(int mode)
Get the JSP to open for the given mode when going to the Row's detail page. |
java.util.List |
getKeyFieldNames()
|
java.util.List |
getKeyFields()
Returns the key fields for this Row. |
java.util.List |
getKeyFields(boolean returnPartial)
Returns the key fields for this Row. |
java.lang.String |
getLibraryName()
Returns the Library's name to which the Table belongs to. |
int |
getMaxFieldLengths()
Returns the max lengths of each field in this row added together. |
int |
getMaxFieldLengths(FileDescriptor fled)
Returns the max lengths of each field in this row added together. |
int |
getMaxInsertRetries()
Number of times to attempt to re-insert a Row when a duplicate key exception was encountered. |
java.lang.String |
getMetaDataSystemAlias()
Returns the meta data alias of the system to which this Row belongs |
INamed |
getNamed(int i)
|
INamed |
getNamed(java.lang.String name)
|
java.util.List |
getNamesOfUpdatedFields()
Return the names of all of the Fields in this Row that have been updated. |
java.lang.String |
getNavigationKey()
Get the key used to store/retrieve this Row to/from navigation. |
java.lang.String |
getNavigationListKey()
Get the key used to store and retrieve a List of Rows that have been put into navigation. |
java.lang.Number |
getNextOperationToRun(Operation currentOp,
ExecutingContext context)
Get the next operation number (ID) that is to be run, by default this will return the operations "completed or next operation" as specified in the WOW operation spec. |
Operation |
getOperation()
Gets the Operation which read this row from the DB. |
Operation |
getOperation(boolean checkCreationOp)
Gets the Operation which read this row from the DB or created this row. |
protected Operation |
getOperationFromDB(int pId)
Gets a SQLOperation. |
protected Operation |
getOperationFromDBByUsage(int usageId)
Get an Operation from the database for teh given usage id. |
double |
getPercentage(java.lang.String[] fieldNames)
Gets the percentage of the first field compared with all the fields given. |
java.util.List |
getPhysicalFieldNames()
Gets a List of the names of all Fields in this Row, excluding logical Fields |
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 |
java.lang.String |
getPossibleValueClass(java.lang.String fieldName)
Deprecated. - no longer used, pass in the Field object instead |
RowCollection |
getPossibleValues(Field fld)
Returns a RowCollection containing the possible values for the Field. |
java.lang.String |
getPossibleValuesKey(Field field)
Gets the possible values SQLOperation for the specified field |
Operation |
getPossibleValuesOperation(Field field)
Gets the possible values Operation for the specified field |
protected DataEnginePropertyChangeSupport |
getPropertyChangeSupport()
Gets the property change support object for this row. |
PropertyGroup |
getPropertyGroup(java.lang.String groupName)
Gets the first PropertyGroup with the given property group name. |
PropertyGroupList |
getPropertyGroups()
Get all the property groups stored in this RowCollection's attributes. |
java.util.List |
getPropertyGroups(java.lang.String groupName)
Get this RowCollection's property groups with the given group name. |
java.util.List |
getReplacementFieldsToDisplay(java.util.List originalFields)
Get a list of field names to override the original fields to display for this Row. |
java.util.List |
getReplacementFieldsToDisplay(java.util.List originalFields,
ExecutingContext ec)
Get a list of field names to override the original fields to display for this Row. |
java.util.Iterator |
getRequiredFields()
Iterates through the fields in this Row which are required |
protected Row |
getRow(java.util.List columns)
Gets a Row from this Row's SQL that contains the proper given column names. |
RowCollection |
getRowCollection()
Gets the first RowCollection this Row is contained in. |
java.lang.String |
getRowDisplayAttributes()
Return a String that provides HTML or other display characteristics of this Row. |
java.lang.StringBuffer |
getRowDisplayAttributes(java.lang.StringBuffer html)
Deprecated. |
java.util.List |
getRowHandledActionNames()
Get a list of action names handled by this Row |
RowKey |
getRowKey()
Gets the RowKey object for this row. |
int |
getSecuredTypeId()
Gets the id of the secured type. |
java.lang.String |
getSecuredTypeName()
Gets the secured type name of the secured object. |
int |
getSecurityType()
Gets the type of security being used. |
java.lang.String |
getSQL()
Gets the SQL statement used to create this Row. |
SQLContext |
getSQLContext()
Returns SQLContext to which the RowCollection this Row belongs has. |
java.lang.Object |
getStaticAttribute(java.lang.Object key)
|
protected java.util.Map |
getStaticAttributes()
|
double |
getSum(java.lang.String[] pFieldNames)
Returns the sum of all the fields represented in pFieldNames if that field is a number |
java.lang.String |
getSystemAlias()
Returns the alias of one of the systems to which this Row belongs. |
TabbedOperation |
getTabbedOperation()
Gets the TabbedOperation which corresponds to this row. |
Table |
getTable()
Get's this field's table. |
Table |
getTable(int pTableIndex)
|
java.lang.String |
getTableName()
Returns the name of the Table of this Row. |
TableCollection |
getTables()
Get's this field's table. |
long |
getTimestamp()
Gets the time when this Row was read from the database, or Long.MIN_VALUE if the time cannot be determined |
java.util.Map |
getUpdatedFields()
Return the names of all the fields. |
java.lang.String |
getUserMessageForOperation(int mode)
Return a message to the user after an operation completes. |
java.lang.String |
getUserMessageForOperation(int rowsChanged,
int mode)
Return a message to the user after an operation completes. |
short |
getUseWOWLibrary()
|
ValidationExceptionCollection |
getValidationExceptions()
Be careful when you call this method because it is derived and spins through all the fields. |
boolean |
getValueAsBoolean(java.lang.String pFieldName)
Returns a primitive that represents the value in the specified field. |
byte |
getValueAsByte(java.lang.String pFieldName)
Returns a primitive that represents the value in the specified field. |
java.util.Date |
getValueAsDate(java.lang.String pFieldName)
Returns a Date |
java.util.Date |
getValueAsDate(java.lang.String pYearFldName,
java.lang.String pMonthFldName,
java.lang.String pDayFldName)
Returns a Date that represents the Date value of 3 seperate fields. |
double |
getValueAsDouble(int fieldIndex)
Gets a primitive that represents the value in the specified field. |
double |
getValueAsDouble(java.lang.String pFieldName)
Returns a primitive that represents the value in the specified field. |
float |
getValueAsFloat(java.lang.String pFieldName)
Returns a primitive that represents the value in the specified field. |
java.lang.String |
getValueAsFullLengthString(java.lang.String pFieldName)
Returns a String that represents the value in the specified field. |
int |
getValueAsInt(int index)
Returns a primitive that represents the value in the specified field. |
int |
getValueAsInt(java.lang.String pFieldName)
Returns a primitive that represents the value in the specified field. |
long |
getValueAsLong(java.lang.String pFieldName)
Returns a primitive that represents the value in the specified field. |
java.lang.Number |
getValueAsNumber(int fieldIndex)
Gets a primitive that represents the value in the specified field. |
java.lang.Number |
getValueAsNumber(java.lang.String pFieldName)
Returns a Number that represents the value in the specified field. |
short |
getValueAsShort(java.lang.String pFieldName)
Returns a primitive that represents the value in the specified field. |
java.lang.String |
getValueAsString(int fieldIndex)
Gets a String that represents the value in the specified field. |
java.lang.String |
getValueAsString(java.lang.String pFieldName)
Returns a String that represents the value in the specified field. |
java.lang.String |
getValueAsStringByUsageId(int usageId)
Get a String value from this Row for the given usage id. |
java.lang.Object |
getValueByUsageId(int usageId)
Get a value from this Row for the given usage id. |
java.lang.Object |
getValueForKey(java.lang.Object valueKey)
Get a value from this row. |
java.util.Iterator |
getValues()
Returns an iterator which iterates over the values in this Row |
java.lang.StringBuffer |
getXMLData(java.lang.StringBuffer pXMLData)
This returns a StringBuffer containing all necessary XML data for this object. |
java.lang.StringBuffer |
getXMLData(XMLFileDescriptor pDescriptor,
java.lang.StringBuffer pXMLData)
This returns a StringBuffer containing all necessary XML data for this object. |
java.lang.StringBuffer |
getXMLHeaderData(java.lang.StringBuffer pXMLData)
This returns a StringBuffer containing all XMLHeader data for this Row. |
void |
goToNextOperation(int rowsChanged,
int mode,
ExecutingContext context)
Goto the next operation if specified and execute it. |
java.lang.Object |
handleAction(java.lang.String action,
ExecutingContext ec)
Check to see if this Row has child rows. |
boolean |
hasAssociationOperation(Field field,
ExecutingContext ec)
Tests if a field has an association operation. |
boolean |
hasChildRows()
Check to see if this Row has child rows. |
boolean |
hasMultipleStyleClasses(Field field,
ExecutingContext ec)
Check if the given Field possibly has more than one style class. |
boolean |
hasPossibleValuesKeyClassOrOp(Field field)
Tests if the specified field has any type of Possible Values |
boolean |
hasPossibleValuesOperation(Field field,
ExecutingContext ec)
Tests if a field is possible values op. |
boolean |
hasPropertyChangeListeners(java.lang.String pProperty)
Tests if any object are listening to this Row for changes in one of its properties. |
void |
incrementFieldValue(Field field,
ExecutingContext ec)
Increment this Field's value. |
protected void |
initializeRow()
Creates Field's for this Row based upon the Row's Table's FieldDescriptors. |
protected void |
initializeRow(boolean allFields)
Creates Field's for this Row based upon the Row's Table's FieldDescriptors. |
protected void |
initializeRow(boolean allFields,
ExecutingContext pExecutingContext)
Creates Field's for this Row based upon the Row's Table's FieldDescriptors. |
protected void |
initializeRow(ExecutingContext pExecutingContext)
Creates Field's for this Row based upon the Row's Table's FieldDescriptors. |
protected void |
initializeRow(java.util.List fieldNames)
Creates Fields for this Row for the given List of field names based upon the Row's Table's FieldDescriptors. |
protected void |
initializeRow(java.util.List fieldNames,
ExecutingContext ec)
Creates Fields for this Row for the given List of field names based upon the Row's Table's FieldDescriptors. |
int |
insert()
Inserts this Row into its table. |
int |
insert(java.sql.Connection conn)
Inserts this Row into its table. |
int |
insert(ExecutingContext ec)
Inserts this Row into the specified database. |
int |
insert(SQLContext context)
Inserts this Row into the specified database. |
boolean |
is(java.lang.String pFieldName)
Gets the specified field and returns the boolean value. |
boolean |
isActionApplicable(java.lang.String actionName,
ExecutingContext ec)
Check to see if the action is applicable in the Row's current state |
boolean |
isActionRepeatable(java.lang.String action,
ExecutingContext ec)
|
boolean |
isARow()
Return a boolean indicating if this object is a Row |
boolean |
isARowCollection()
Return a boolean indicating if this object is a RowCollection |
boolean |
isChanged()
Returns whether or not this Row's Fields have changed. |
boolean |
isChanged(boolean ignoreLogical)
Returns whether or not this Row's Fields have changed. |
boolean |
isChangedRealTime(boolean realTimeCheck)
Deprecated. |
boolean |
isChangedSinceLastCheck()
This method has been created as a temporary fix. |
boolean |
isCloneNeeded()
Test to see if tiis navigation object should be clone upon storing and retrieving. |
boolean |
isContainsAllFields()
Returns whether or not this Row contains all the Fields of its Table. |
boolean |
isCopyable(ExecutingContext ec)
Check to see if this Row may be copyable. |
boolean |
isCurrent()
Tests if any of this row's tables have been updated via the DataEngine since this row was read from the DB |
boolean |
isDeletable(ExecutingContext ec)
Check to see if this Row may be deletable. |
boolean |
isDistinctRow()
Test to see if this Row was created with distinct values. |
boolean |
isEditable(ExecutingContext ec)
Check to see if this Row may be edited. |
boolean |
isEmpty()
Returns whether or not this Row has any Fields. |
boolean |
isFieldApplicable(Field fld,
ExecutingContext ec)
Tests if a field is applicable in the current scenario |
boolean |
isFieldAuthorizedForEdit(Field pField,
ExecutingContext pContext)
Tests if a field is authorized for edit. |
boolean |
isFieldAuthorizedForRead(Field pField,
ExecutingContext pContext)
Tests if a field is authorized for read. |
boolean |
isFieldAutoIncrement(Field field,
ExecutingContext ec)
Is the specified field an auto-increment field? |
boolean |
isFieldAutoIncrementDatabaseDriven(Field field,
ExecutingContext ec)
Is the given Field a database driven auto increment field. |
boolean |
isFieldAutoIncrementWOWDriven(Field field,
ExecutingContext ec)
Is the given Field a WOW driven auto increment field. |
boolean |
isFieldDisplayable(Field field,
ExecutingContext ec)
Check to see if this Field is displayable. |
boolean |
isFieldPresent(java.lang.String fieldName)
Tests if a field with the specified name is present in this Row or not |
boolean |
isFieldReadOnly(Field pField,
ExecutingContext pContext)
Tests if a field is read only. |
boolean |
isFieldReadOnlyOnSearch(Field field,
ExecutingContext ec)
Test if the field is read only on search. |
boolean |
isFieldRequired(Field pField,
ExecutingContext pContext)
Tests if a field is required or not. |
boolean |
isFieldRequiredOnSearch(Field pField,
ExecutingContext pContext)
Tests if a field is required or not. |
boolean |
isFieldsChanged(java.util.List names)
Check to see if any of this Row's Fields have changed for the given list of Field names. |
boolean |
isFieldUpdateable(Field f)
Tests if the field is updateable. |
boolean |
isFieldValueNotBlank(java.lang.String fieldName)
Returns whether or not this Field is not blank |
boolean |
isFieldValuePossibleValue(Field field,
ExecutingContext ec)
Tests if the field's value is a possible value. |
boolean |
isFieldValuesDatabaseDefaults(java.lang.String[] pFieldNames)
Deprecated. We should use the default value from the field descriptor instead. |
boolean |
isGenerateChildRows()
Check to see if this Row has child rows and if they should be generated when this Row generates. |
boolean |
isGroupByRow()
Return whether or not this Row was created with a group by in the SQL clause. |
boolean |
isGuarded()
Check whether this Row is protected (secured) |
boolean |
isHasColumnNames(java.util.List columns)
Checks to see if this RowCollection has all the columns in the given List. |
boolean |
isInARowCollection()
Returns whether or not this Row belongs to a RowCollection. |
boolean |
isIncrementorResetAfterMaxInsertRetries(Field field)
Check if the FieldIncrementor for the given Field should be reset after the max number of insert retries is attempted. |
boolean |
isInitializeDerivedFieldEnabled(java.lang.String fieldName)
Tells whether or not to initialize a Derived FD upon row creation. |
boolean |
isInitializeDerivedFieldsEnabled()
Deprecated. This method isn't so good because it doesn't let you specify which fields get initialized & which don't. But there might be subclassses that implemented it, so I guess we're stuck with it for now. isInitializeDerivedFieldEnabled(String) is the replacement which subclasses should override |
boolean |
isJoinedRow()
Check if Row was created from a join. |
boolean |
isKeyFieldsPresent()
Returns whether or not this Row contains all the key Fields of its Table. |
boolean |
isLogicalRow()
Tests if this Row is a logical Row. |
boolean |
isMultipleDeleteEnabled()
Returns whether or not multiple record deletes are allowed. |
boolean |
isParameterRow()
Tests if this row is used to generate parameters |
boolean |
isPersistent()
Tests if this row has been persisted to the database. |
boolean |
isPhysicalRow()
Tests if this Row is a physical Row. |
boolean |
isPrepareFieldValue(Field f,
ExecutingContext ec)
Tests if the field's display value needs to be prepared before being displayed. |
boolean |
isPropertyChangeEventsEnabled()
Tests whether the changing of the value in one of this Row's fields will cause this Row to fire a PropertyChangeEvent or not. |
boolean |
isReturningFromPossibleValuesSearch()
Creation date: (2/9/2003 2:02:05 PM) |
boolean |
isRowDisplayable(ExecutingContext ec)
Tests if the row can be displayed |
boolean |
isRowKeyed()
Tests if this row has a key |
boolean |
isSelectable()
Tests if the user may select a Row of this type. |
boolean |
isStatusChange(Field field)
Check to see if this field is status change. |
boolean |
isToBeSelected()
Tests if the Row should be pre-marked as selected before presented in a RowCollection. |
boolean |
isUnionRow()
Check if Row was created with a union. |
boolean |
isUpdateable()
Tests if this row can be updated. |
boolean |
isUseRowForFieldSets()
Check to see if the row should be used to obtain field sets. |
boolean |
isValidateDerivedFields()
Tests if this Row must validate its derived fields Defaults to false, Subclasses can override this method or set this value via setValidateDerivedFields(true) |
boolean |
isValidateRequired()
Tests if this Row must be validated before it is inserted/updated |
boolean |
isValidationRequiredForAutoPopulate(Field pField,
ExecutingContext pEC)
Tells whether or not the Field's validate method will be called before the Auto Populate action is executed. |
boolean |
isViewable(ExecutingContext ec)
Check to see if this Row may be viewed. |
java.util.Iterator |
iterator()
Creates and returns an iterator which iterates over the fields in this Row |
protected int |
joinedDatabaseAccessFailure(java.sql.Connection conn,
Row disjointRow,
TableCollection affectedTables,
int mode,
java.lang.Throwable t,
ExecutingContext ec)
Invoked whenever a update, insert, or delete fails on a disjoint row during a joined DB access. |
protected int |
joinedDelete(java.sql.Connection connection,
boolean useTransactions,
ExecutingContext ec)
Deletes this row from the database. |
protected int |
joinedDelete(java.sql.Connection connection,
ExecutingContext ec)
Deletes this row from the database. |
protected int |
joinedInsert(java.sql.Connection connection,
boolean useTransactions,
ExecutingContext ec)
Inserts the values in this row into the database with the values in this Row. |
protected int |
joinedInsert(java.sql.Connection connection,
ExecutingContext ec)
Inserts the values in this row into the database with the values in this Row. |
protected int |
joinedUpdate(java.sql.Connection connection,
boolean useTransactions,
ExecutingContext ec)
Updates the database with the values in this Row. |
protected int |
joinedUpdate(java.sql.Connection connection,
ExecutingContext ec)
Updates the database with the values in this Row. |
void |
merge(Row row)
Merges the fields of another row into this one. |
Field |
newField(FieldDescriptorRow pFD)
Creates and adds a Field to this Row, then returns the Field. |
Field |
newField(java.lang.String pFieldName,
FieldDescriptorRow pFD)
Creates and adds a Field to this Row, then returns the Field. |
Field |
newField(java.lang.String pFieldName,
int pSQLType)
Creates and adds a Field to this Row, then returns the Field. |
Field |
newField(java.lang.String pFieldName,
java.lang.String pFieldClassName)
Creates and adds a Field to this Row, then returns the Field. |
void |
openFor(int mode,
ExecutingContext ec)
|
boolean |
persist()
Inserts this row into the DB, or updates it in the DB if it is already there |
void |
populate(java.sql.ResultSet pResults)
Populates this Row with the data from the result set. |
protected void |
populate(java.sql.ResultSet pResults,
java.util.List pPhysicalNames,
java.sql.ResultSetMetaData pMetaData,
SQLContext pContext)
Populates this Row with the data from the result set. |
protected void |
populate(java.sql.ResultSet pResults,
java.sql.ResultSetMetaData pMetaData,
SQLContext pContext)
Populates this Row with the data from the result set. |
protected void |
populateFD(java.sql.ResultSet pResults,
java.util.List pColumnNames)
This method is called by a RowCollection when creating its Rows. |
void |
postCreate()
Handles actions taken immidately after creation of this object Creation date: (7/11/2002 7:06:46 PM) |
protected void |
postDelete(int changed,
ExecutingContext ec)
This method provides a "hook" for altering the current Row after a delete is performed. |
void |
postExtract(java.lang.String[] fieldNames,
ExecutingContext ec)
Invoked after a row has had values extracted from the screen and set into it |
protected void |
postInsert(ExecutingContext exContext)
Deprecated. replaced with postInsert(int, ExecutingContext) |
protected void |
postInsert(int changed,
ExecutingContext exContext)
This method provides a "hook" for altering the current row after an insert is performed. |
protected void |
postUpdate(ExecutingContext exContext)
Deprecated. replaced with postUpdate(int, ExecutingContext) |
protected void |
postUpdate(int changed,
ExecutingContext exContext)
This method provides a "hook" for altering the current row after an update is performed. |
protected void |
preDelete(ExecutingContext ec)
This method provides a "hook" for altering the current Row before a delete is performed. |
protected void |
preInsert(ExecutingContext exContext)
This method provides a "hook" for altering the current row before an insert is performed. |
Row |
prepareForDetails(ExecutingContext ec)
Gets the a proper Row for viewing this Rows details. |
void |
prepareForParameters(AbstractContext context,
ExecutingContext pEc)
This method is invoked on a parameter row just before it is displayed to the user. |
Row |
prepareForResultsDisplay(ExecutingContext ec)
Allows the current row to handle any necessary actions before being displayed in a results table. |
Row |
prepareFromFieldNames(java.util.List pNames)
Gets the a proper Row for viewing this Rows details. |
protected void |
preUpdate(ExecutingContext exContext)
This method provides a "hook" for altering the current row before an update is performed. |
Field |
removeField(Field field)
Removes the specified field from this row. |
Field |
removeField(java.lang.String fieldName)
Removes the field with the specified name from this row. |
void |
removeNavigationKey()
Clears out any navigation key that may have been set on this Row. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a property change listener that was added via the addPropertyChangeListener() method. |
void |
removePropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener listener)
Removes a property change listener that was added via the addPropertyChangeListener()
method. |
void |
removeRowEventListener(IRowEventListener pNewListener)
Removes a Listener from this Row |
void |
removeRowEventListeners(java.util.List listeners)
Removes a Listener from this Row |
void |
replaceField(Field newField)
Replace a Field with the given Field. |
protected void |
replaceFields()
This method is invoked after a Row is read from the DB. |
java.util.List |
replaceFieldValues(java.util.Map nameValueMap)
Replaces the values in one or more fields. |
protected static java.util.List |
replaceNumbersWithNames(java.util.List names,
java.util.List rowFieldNames)
Gets the field name for the given Strings in the List. |
Row |
reread()
Rereads this row, returning a new Row with fresh values from the DB. |
Row |
rereadIfNeeded()
Rereads this row, returning a new Row with fresh values from the DB, but only if this Row's table has been updated from the DataEngine since it was read; otherwise this same row is returned. |
void |
resetDisplayValues()
Resets the display values in this row to null so they can be recomputed when needed. |
Row |
rollbackChanges()
Undoes any changes that have been made to this Row since it was read from or written to the database. |
protected RowCollection |
runSQLQuery(java.lang.String sqlStatement)
Convenience method for running an SQL query statement against tables on the same machine. |
protected RowCollection |
runSQLQuery(java.lang.String sqlStatement,
java.lang.Class rowClass)
Convenience method for running an SQL query statement against tables on the same machine. |
protected void |
runSQLStatement(java.lang.String sql)
Convenience method for running an SQL statement against tables on the same machine. |
protected void |
runSQLStatement(java.lang.String sql,
ExecutingContext ec)
Convenience method for running an SQL statement against tables on the same machine. |
void |
setAttribute(java.lang.Object key,
java.lang.Object value)
Map that allows general attributes about a Row to be set and retreived. |
protected void |
setAutoUpdateFieldValues(ExecutingContext ec)
Set auto update Field values. |
void |
setCreationContext(SQLContext context)
Sets the SQL context that was used when creating this Row |
void |
setCreationOperation(Operation op)
Sets the operation responsible for creating this row |
void |
setFieldInitialValue(java.lang.String fldNam,
java.lang.Object value)
Sets the value of the specified field. |
void |
setFieldValue(java.lang.String fldNam,
boolean bool)
Sets the value of the specified boolean field |
void |
setFieldValue(java.lang.String fldNam,
double pDouble)
Sets the current value of the Field to the specified value, and also sets the old value to the previous value. |
void |
setFieldValue(java.lang.String fldNam,
long pLong)
Sets the current value of the Field to the specified value, and also sets the old value to the previous value. |
void |
setFieldValue(java.lang.String fldNam,
java.lang.Object value)
Sets the value of the specified field. |
void |
setFieldValueAsString(java.lang.String fldNam,
java.lang.String value)
Sets the value of the specified field. |
void |
setFieldValueAsString(java.lang.String fldNam,
java.lang.String value,
int startPos)
Sets the value of the specified field from the starting position (zero indexed) without affecting other positions in this field. |
void |
setFieldValuesAsDate(java.lang.String[] fieldNames,
java.util.Date date)
This method is for cases when the date is stored in 3 fields (year{2002}, month{5}, day{10}) in the database. |
void |
setFieldValuesToDefault(java.util.List fieldNames,
boolean ignoreCase,
ExecutingContext ec)
Sets values from the source Row into this Row (the target) for all Fields that BOTH the source and the target have. |
void |
setFieldValuesWithCommonFieldNames(java.util.List targetNames,
Row source,
boolean ignoreCase)
Sets values from the source Row into this Row (the target) for all Fields that BOTH the source and the target have. |
void |
setFieldValuesWithCommonFieldNames(Row source)
Sets values from the source Row into this Row (the target) for all Fields that BOTH the source and the target have. |
void |
setFieldValuesWithCommonFieldNames(Row source,
boolean ignoreCase)
Sets values from the source Row into this Row (the target) for all Fields that BOTH the source and the target have. |
void |
setFieldValuesWithCommonUsageIds(Row rowToCopy)
Copy the field values from the supplied Row with the same usageid into this Row. |
void |
setFieldValueToDefault(java.lang.String pName,
ExecutingContext ec)
Sets the fields value back to the default value Creation date: Jun 24, 2004 - 3:14:48 PM |
void |
setMultipleDeleteEnabled(boolean pMultipleDeleteEnabled)
Sets whether or not multiple record deletes are allowed. |
void |
setNavigationKey(java.lang.String key)
Set the key used to store/retrieve this Row to/from navigation. |
void |
setParameterRow(boolean isParameterRow)
Sets if this row is being used to generate parameter inputs |
void |
setPersistent(boolean persistent)
Sets if this row has been persisted to the database. |
void |
setPropertyChangeEventsEnabled(boolean newPropertyChangeEventsEnabled)
Sets whether the changing of the value in one of this Row's fields will cause this Row to fire a PropertyChangeEvent or not. |
void |
setPropertyGroups(PropertyGroupList propertyGroups)
Set the property groups stored in this RowCollection's attributes. |
void |
setReturningFromPossibleValuesSearch(boolean value)
Insert the method's description here. |
void |
setRowDisplayAttributes(java.lang.String displayAttributes)
Sets a String that provides HTML or other display characteristics of this Row. |
void |
setSavepoint()
Sets savepoints for the Fields in the this Row. |
void |
setSavepoint(java.util.Collection pFields)
Sets savepoints for the Fields in the given Collection. |
void |
setSavepoint(java.util.Map pFields)
Sets savepoints for the Fields in the given Map. |
void |
setStaticAttribute(java.lang.Object key,
java.lang.Object value)
|
void |
setTables(java.util.List pTables)
Deprecated. Pass in a table collection instead |
void |
setTables(TableCollection pTables)
Sets the table to which this row belongs. |
void |
setUseWOWLibrary(short newWOWSystemLibrary)
Sets which WOW library should be used to execute this Row's context. |
void |
setValidateDerivedFields(boolean newValidateDerivedFields)
Sets if this Row must validate its derived fields Defaults to false, Subclasses can override this method or set this value via setValidateDerivedFields(true) |
void |
setValidateRequired(boolean newValidateRequired)
Sets if this Row must be validated before it is inserted/updated |
void |
setValues(java.util.List pData)
Sets the values of this Row |
int |
size()
Returns the number of fields in this Row. |
void |
splitAndSetFieldValues(java.lang.String[] fieldNames,
int[] splitIndices,
java.lang.String valueToSplit)
This method takes the specified value and splits it into mulitple values and then sets those values on the fields with the given field names. |
Row |
statusChanged(Field pField,
ExecutingContext ec)
Invoked when a status change takes place on of this Row's fields. |
void |
swapFieldValues(java.lang.String fieldNameA,
java.lang.String fieldNameB)
Swaps the values of the two fields |
java.lang.StringBuffer |
toCSV(boolean pIncludeColumnHeadings,
CSVFileDescriptor pCSVFileDescriptor)
Returns a StringBuffer in CSV format containing all data in this Row Creation date: (2/6/2002 5:14:39 PM) |
java.lang.StringBuffer |
toDOC(boolean pIncludeColumnHeadings,
CSVFileDescriptor pFileDescriptor)
Deprecated. Use the single argument method instead |
java.lang.StringBuffer |
toDOC(CSVFileDescriptor pFileDescriptor)
Returns a StringBuffer in Microsoft Word .doc format containing all data in this RowCollection. |
java.lang.StringBuffer |
toFDF(FDFFileDescriptor pFileDescriptor)
Returns a StringBuffer in FDF format containing all data in this Row. |
void |
toPDF(boolean pIncludeColumnHeadings,
PDFFileDescriptor pFileDescriptor)
Deprecated. Use the single argument method instead |
void |
toPDF(PDFFileDescriptor pFileDescriptor)
Generates a PDF file from this Row. |
java.lang.String |
toString(boolean includeTable)
Returns a String representation of this Row. |
void |
toUpperCase()
This method will UPPERCASE all the fields values in this Row if it is stored in the databse as a Char or it is a StringField. |
java.lang.StringBuffer |
toXML(XMLFileDescriptor pFileDescriptor)
Returns a StringBuffer in XML format containing all data in this Row. |
Row |
transferDataTo(java.lang.Class pNewRowClass)
Transfers all the data in this Row into a different Row. |
Row |
transferDataTo(Row pDestinationRow)
Transfers all the data in this Row into a different Row. |
int |
update()
Updates the database with the values in this Row. |
int |
update(java.sql.Connection conn)
Updates the database with the values in this Row. |
int |
update(java.sql.Connection connection,
ExecutingContext ec)
Updates the database with the values in this Row. |
int |
update(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. |
void |
updateGlobalValues(ExecutingContext ec)
Updates any global values this Row might have. |
void |
updateObject()
Deprecated. by WK on (8/10/2003 7:58:28 AM) because there were no references to this method in VAJ any where and all it does is call update() |
boolean |
validate(ExecutingContext ec)
Validate this Row based on it's configuration and field values. |
boolean |
validate(ExecutingContext pContext,
java.security.Principal pUser)
Deprecated. by WK on (8/9/2003 9:24:24 AM) because the executing context contains the user. Replaced with validate(ExecutingContext). This method will no longer be supported as of WOW 7.0. |
boolean |
validate(int pOperation,
java.security.Principal pUser)
Deprecated. Use the validate() method which takes in an ExecutingContext |
boolean |
validateField(Field field,
ExecutingContext ec)
Validates the given Field and returns whether or not the Field is valid. |
void |
validateRowOperation(int pOperation,
java.security.Principal pUser)
Validate if the operation can be performed on this Row. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String className
public static final int MODE_COPY
public static final int MODE_DELETE
public static final int MODE_INSERT
public static final int MODE_READ
public static final int MODE_SEARCH
public static final int MODE_UNKNOWN
public static final int MODE_UPDATE
public static final int MODE_ALTER
protected transient java.util.List mRowEventListeners
public static final java.util.Comparator DISPLAY_ORDER_COMPARATOR
Constructor Detail |
public Row()
Method Detail |
public static Row create(java.lang.Class rowSubClass) throws DataEngineException
rowSubClass
- subclass of Row to create
DataEngineException
public static Row create(RowCollection pRowCollection) throws DataEngineException
DataEngineException
public static Row create(RowCollection pRowCollection, java.lang.Class rowSubClass) throws DataEngineException
rowSubClass
- Class
DataEngineException
public static Row create(RowCollection pRowCollection, boolean initialRow) throws DataEngineException
DataEngineException
public static Row create(RowCollection pRowCollection, java.lang.Class rowSubClass, boolean initialRow) throws DataEngineException
rowSubClass
- Class
DataEngineException
public static Row create(java.util.List tables, java.lang.Class rowSubClass, java.util.List fieldNames, boolean initializeRow, ExecutingContext pExecutingContext) throws DataEngineException
rowSubClass
- ClasspExecutingContext
- ExecutingContext
DataEngineException
public static Row create(SQLContext context, java.util.List fieldNames, boolean initializeRow) throws DataEngineException
DataEngineException
public static Row create(Table table) throws DataEngineException
DataEngineException
public static Row create(Table table, boolean initializeRow) throws DataEngineException
DataEngineException
public static Row create(Table table, boolean initializeRow, ExecutingContext ec) throws DataEngineException
DataEngineException
public static Row create(Table table, java.lang.Class rowSubClass) throws DataEngineException
table
- TablerowSubClass
- Class
DataEngineException
public static Row create(Table table, java.lang.Class rowSubClass, boolean initializeRow) throws DataEngineException
table
- TablerowSubClass
- Class
DataEngineException
public static Row create(Table table, java.lang.Class rowSubClass, boolean initializeRow, ExecutingContext pExecutingContext) throws DataEngineException
table
- TablerowSubClass
- ClasspExecutingContext
- ExecutingContext
DataEngineException
public static Row create(Table table, java.lang.Class rowSubClass, ExecutingContext executingContext) throws DataEngineException
table
- TablerowSubClass
- Class
DataEngineException
public static Row create(Table table, java.lang.Class rowSubClass, java.util.List fieldNames, boolean initializeRow) throws DataEngineException
table
- TablerowSubClass
- Class
DataEngineException
public static Row create(Table table, java.lang.Class rowSubClass, java.util.List fieldNames, boolean initializeRow, ExecutingContext pExecutingContext) throws DataEngineException
table
- TablerowSubClass
- ClasspExecutingContext
- ExecutingContext
DataEngineException
public static Row create(Table table, java.util.List fieldNames, boolean initialize) throws DataEngineException
table
- Table to create Row fromfieldNames
- names of Fields to initialize Row with if specifiedinitialize
- whethor or not to initialize the Row
DataEngineException
public static Row create(Table table, java.util.List fieldNames, boolean initializeRow, ExecutingContext pExecutingContext) throws DataEngineException
table
- TablepExecutingContext
- ExecutingContext
DataEngineException
public static Row create(Table table, java.util.List names, ExecutingContext ec) throws DataEngineException
DataEngineException
protected static java.util.List replaceNumbersWithNames(java.util.List names, java.util.List rowFieldNames)
public void add(Field pField) throws DataEngineException
pField
- Field
DataEngineException
public void add(RowCollection pRowCollection)
pRowCollection
- RowCollectionpublic void addObject() throws java.lang.Exception
addObject
in interface IBusinessObject
java.lang.Exception
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void addPropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener listener)
property
- The name of the property (or field) to which the listener will listenlistener
- The object which to listen to the propertypublic void addRowEventListener(IRowEventListener pNewListener)
public void addRowEventListeners(java.util.List listeners)
public void addTable(Table pTable)
public int addToRowCollection(RowCollection rc) throws CMException
rc
- The rowcollection to which this row should be added
CMException
public java.lang.StringBuffer appendDisplayType(java.lang.StringBuffer sb)
public void batchProcess() throws CMException
batchProcess
in interface IBatchProcessObject
CMException
public void clearFields()
public void clearTables()
public void clearValidationException()
public java.lang.Object clone()
clone
in interface INavigationObject
public Row cloneRow() throws CMException
CMException
public void commitFieldValues()
public void commitFieldValues(java.util.Collection pFields)
public void commitFieldValues(java.util.Map pFields)
public java.lang.String concatenateFieldFullLengthValues(java.lang.String[] pFieldNames, java.lang.String pSeperator) throws CMException
pFieldNames
- String[] fieldNames to concatpSeperator
- String value to insert between fields
CMException
public java.lang.String concatenateFieldValues(java.lang.String[] pFieldNames, java.lang.String pSeperator, boolean pTrimValues) throws CMException
pFieldNames
- String[] fieldNames to concatpSeperator
- String value to insert between fieldspTrimValues
- boolean trim the values before concating
CMException
public boolean containsField(java.lang.String fieldName)
fieldName
- name of Field to see if Row contains.
public Row copy(boolean pFullCopy) throws CMException
pFullCopy
- whether or not to copy the complete Row
CMException
public void copyIntoRowFieldsWithCommonFieldNames(Row rowToCopy) throws CMException
rowToCopy
- the row that the values will be copied from
CMException
public void copyIntoRowFieldsWithCommonFieldNames(Row rowToCopy, boolean ignoreCase) throws CMException
rowToCopy
- the row that the values will be copied fromignoreCase
- whether or not to ignore the case of the field names
CMException
public void copyIntoRowFieldsWithCommonUsageIds(Row rowToCopy) throws CMException
CMException
public void copyIntoRowFieldsWithGivenFieldNames(java.util.List fieldNames, Row rowToCopy) throws CMException
fieldNames
- the names of the fields that will be eligible for the copyrowToCopy
- the row that the values will be copied from
CMException
public void copyIntoRowFieldsWithGivenFieldNames(java.util.List fieldNames, Row rowToCopy, boolean ignoreCase) throws CMException
fieldNames
- the names of the fields that will be eligible for the copyrowToCopy
- the row that the values will be copied fromignoreCase
- whether or not to ignore the case of the field names
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
pDefaultRow
- A Row containing data read from the database (it will always be equal to this)
CMException
protected SQLContext createSQLContextForDelete(ExecutingContext ec) throws CMException
CMException
protected SQLContext createSQLContextForInsert(ExecutingContext ec) throws CMException
CMException
protected SQLContext createSQLContextForUpdate(ExecutingContext ec) throws CMException
CMException
protected void dataTransferred(Row oldRow)
public void defaultMerge(RowCollection rc) throws CMException
CMException
public final int delete() throws CMException
CMException
public final int delete(java.sql.Connection conn) throws CMException
conn
- The connection to use for the deletion.
CMException
public int delete(java.sql.Connection conn, ExecutingContext ec) throws CMException
conn
- The connection to use for the deletion.
CMException
public final int delete(ExecutingContext ec) throws CMException
CMException
public void deleteObject() throws java.lang.Exception
deleteObject
in interface IBusinessObject
java.lang.Exception
public double divide(java.lang.String fieldName, java.lang.String fieldName2) throws CMException
fieldName
- field name of numerator.fieldName2
- field name of denominator.
CMException
public void duplicateKey(ExecutingContext ec) throws CMException
ec
- context in which the Row is being processed.
CMException
public boolean duplicateKey(int retriesLeft, ExecutingContext ec) throws CMException
retriesLeft
- The number of retry attemps leftec
- context in which the Row is being processed.
CMException
protected void enforceExclusiveOr(java.util.List fieldNames) throws CMException
CMException
public boolean equals(java.lang.Object otherRow)
public boolean equals(Row row, java.util.List fieldNames)
public boolean equalsInstance(java.lang.Object otherRow)
public final boolean fieldHasPossibleValuesSQLOperation(Field pField, ExecutingContext pContext)
pField
- The whose read only status is being testedpContext
- The current executing context which may be nullpublic boolean hasPossibleValuesOperation(Field field, ExecutingContext ec)
protected void firePropertyChange(java.lang.String name, java.lang.Object oldValue, java.lang.Object newValue)
isPropertyChangeEventsEnabled()
returns false.
protected void fireRowEvent(RowEvent pEvent)
public java.lang.String getActionDefaultLocation()
IActionObject
getActionDefaultLocation
in interface IActionObject
public ActionDescriptor getActionDescriptor(AbstractAction action)
IActionObject
getActionDescriptor
in interface IActionObject
public AbstractAction createAction(java.lang.String name, ExecutingContext ec)
IActionObject
createAction
in interface IActionObject
public AbstractActionRequest createNamedActionRequest(java.lang.String name, ExecutingContext ec) throws CMException
CMException
public java.util.List getActions(ExecutingContext ec)
IActionObject
getActions
in interface IActionObject
public final java.util.List getActionsForFields(ExecutingContext ec)
public java.util.List getActionsForOperation(ExecutingContext ec)
public java.util.List getRowHandledActionNames()
public java.lang.Object getAssociation(java.lang.String fieldName) throws CMException
fieldName
- name of Field containing association
CMException
public java.lang.Object getAssociation(java.lang.String fieldName, ExecutingContext ec) throws CMException
fieldName
- name of Field containing associationec
- current context in which user is executing
CMException
public java.lang.Object getAssociationByOperationUsageId(int usageId, ExecutingContext ec) throws CMException
usageId
- usage id of the operationec
- current context in which user is executing
CMException
public Operation getAssociationOperation(java.lang.String fieldName) throws CMException
fieldName
- name of Field to get association operation from.
CMException
public java.lang.Object getAttribute(java.lang.Object key)
public java.awt.Color getBackgroundColor(Field field, ExecutingContext ec) throws CMException
CMException
public java.util.List getChangedFields()
public RowCollection getChildren() throws CMException
CMException
public int getColumnSpan(Field field, boolean isDetails)
field
- to get column span forisDetails
- whether or not its details or results table being generatedpublic Row getCompleteRow() throws CMException
CMException
public Row getCompleteRow(java.sql.Connection pConnection) throws CMException
CMException
protected FieldCollection getConcurrentFields() throws CMException
CMException
public final java.lang.Object getConfigProperty(java.lang.String key, ExecutingContext executingContext)
public java.util.Map getCopiedFieldValues() throws CMException
CMException
public SQLContext getCreationContext()
public java.util.List getCSVRow()
Tyler,Holm Justin,Epstein Paul,Holm Wes,King Nate,Levis
Creation date: (12/5/2001 1:52:02 AM)
getCSVRow
in interface ICSVRow
public java.util.List getCSVRow(java.util.List fieldNames)
Tyler,Holm Justin,Epstein Paul,Holm Wes,King Nate,Levis
getCSVRow
in interface ICSVRow
fieldNames
- Only the fields specified by the names in this argument should be returned in the List Creation date: (12/5/2001 1:52:02 AM)
public Field getAutoIncrementDatabaseDrivenField(ExecutingContext ec) throws CMException
ec
-
CMException
public Row getDatabaseRow(java.sql.Connection conn) throws CMException
conn
- the connection to the database
CMException
public Row getDatabaseRow(boolean originalRow, java.sql.Connection conn) throws CMException
originalRow
- If the row should be looked for in the DB using its original values, as opposed to its current valuesconn
- the connection to the database
CMException
public Row getDatabaseRow(java.sql.Connection conn, boolean includeDerivedFields) throws CMException
conn
- the connection to the database
CMException
public Row getDatabaseRow(boolean originalRow, java.sql.Connection conn, boolean includeDerivedFields) throws CMException
originalRow
- If the row should be looked for in the DB using its original values, as opposed to its current valuesconn
- the connection to the database
CMException
public java.lang.String getDeleteConfirmation()
public java.lang.String getDeleteConfirmationMessage()
public java.lang.Class getDisjointRowClass(Table table, int mode, ExecutingContext ec) throws CMException
table
- The table whose data is being alteredmode
- A constant defined in Row which specifies if the row will be used for inserting, deleting, or updatingec
- The current executing context
CMException
public java.lang.String getDisplayValue(java.lang.String fieldName) throws CMException
CMException
public java.lang.Object getDisplayValueByUsageId(int usageId) throws CMException
CMException
public java.lang.Object getDisplayValueForKey(java.lang.Object valueKey)
public java.lang.String getExternalName(java.lang.String fieldName) throws CMException
CMException
public java.util.List getExternalNames() throws CMException
CMException
public java.lang.StringBuffer getFDFData(java.lang.StringBuffer pFDFData)
getFDFData
in interface IFDFObject
public Table getFDTable()
public Field getField(int pIndex)
pIndex
- int
public Field getField(java.lang.String fieldName)
public Field getField(java.lang.String name, boolean create)
name
- name of Fieldcreate
- flag indicating if Field should be created.
public Operation getFieldAssociationOperation(Field field) throws CMException
CMException
protected FieldCollection getFieldCollection()
public java.lang.Object getFieldDefaultValue(Field field, ExecutingContext ec) throws CMException
CMException
public FieldDescriptorRow getFieldDescriptor(Field pField, FieldDescriptorRow pFieldDescriptor) throws CMException
pField
- FieldpFieldDescriptor
- FieldDescriptorRow
CMException
public FieldDescriptorRow getFieldDescriptor(java.lang.String pFieldName) throws CMException
pFieldName
- String
CMException
public FieldDescriptorRow getFieldDescriptor(java.lang.String pFieldName, Table pTable) throws CMException
pFieldName
- String
CMException
public java.util.List getFieldDescriptorsWithUsage() throws CMException
CMException
public java.util.List getFieldDescriptorsWithUsageId(int usageId) throws CMException
CMException
public FieldDescriptorRow getFieldDescriptorWithUsageId(int usageId) throws CMException
CMException
public int getFieldDisplayComponent(java.lang.String fieldName) throws CMException
CMException
public int getFieldDisplayOrder(Field field)
public java.lang.Object getFieldDisplayValue(java.lang.String fldNam)
public java.lang.Object getFieldDisplayValue(Field field) throws CMException
CMException
public java.lang.String getFieldExternalName(Field field) throws CMException
CMException
public java.lang.String[] getFieldFieldClassParameters(Field field)
public java.lang.String getFieldFieldSetName(Field field)
public IFieldIncrementor getFieldIncrementor(Field f)
public int getFieldMaxLength(java.lang.String fieldName) throws CMException
fieldName
-
CMException
public java.util.List getFieldNames()
public java.util.List getFieldNames(Table table) throws CMException
CMException
public RowCollection getFieldPossibleValues(Field fld) throws CMException
fld
- Field
CMException
public java.util.List getFields(java.lang.Class pFieldClassType)
public java.util.Map getFields(java.util.List pFieldNames) throws CMException
pFieldNames
- List of Field names
CMException
public java.lang.Object getFieldSearchDefaultValue(Field field, ExecutingContext ec)
public java.util.List getFieldSets() throws CMException
CMException
protected java.util.Map getFieldsForInsert(ExecutingContext ec) throws CMException
CMException
public java.lang.Object getFieldSQLObject(java.lang.String fieldName) throws CMException
CMException
public java.util.List getFieldsToDisplay()
public java.util.List getFieldsToDisplayStrict(ExecutingContext pEc)
public java.util.List getFieldsToDisplayStrict(java.util.List fieldNames, ExecutingContext ec)
public int getFieldStatusChange(Field field) throws CMException
CMException
public java.lang.String getFieldStyleClass(Field field, java.lang.String value, java.lang.String displayValue, ExecutingContext ec)
field
- The Field in which to get the style of
public java.util.List getFieldsWithUsageId(int usageId)
public int[] getFieldUsageIds(Field field)
public java.lang.Object getFieldValue(java.lang.String pFieldName)
public java.lang.Object getFieldValueWithUsageId(int usageId)
public Field getFieldWithUsageId(int usageId)
public java.lang.String getHeaderText(ExecutingContext ec)
public short getHorizontalAlignment(Field field, ExecutingContext ec) throws CMException
CMException
public java.lang.String getJSPFor(int mode)
public java.util.List getKeyFields() throws CMException
CMException
public java.util.List getKeyFieldNames() throws CMException
CMException
public java.util.List getKeyFields(boolean returnPartial) throws CMException
returnPartial
- If this is false, and this Row does not contain all keys fields from its tables, then null is returned. If it is true, then a partial listing
of the all of the key fields contained in this row is returned.
CMException
public java.lang.String getLibraryName()
public int getMaxFieldLengths() throws CMException
CMException
public int getMaxFieldLengths(FileDescriptor fled) throws CMException
CMException
public int getMaxInsertRetries()
public java.lang.String getMetaDataSystemAlias()
public INamed getNamed(int i)
getNamed
in interface INamedCollection
public INamed getNamed(java.lang.String name)
getNamed
in interface INamedCollection
public java.util.List getNamesOfUpdatedFields() throws CMException
CMException
public java.lang.String getNavigationKey()
getNavigationKey
in interface INavigationObject
public java.lang.String getNavigationListKey()
getNavigationListKey
in interface INavigationObject
public java.lang.Number getNextOperationToRun(Operation currentOp, ExecutingContext context) throws CMException
CMException
public void goToNextOperation(int rowsChanged, int mode, ExecutingContext context) throws CMException
CMException
public Operation getOperation()
public Operation getOperation(boolean checkCreationOp) throws CMException
checkCreationOp
- If this row does not have an operation which read it from the DB and this parameter is true, then the operation which created the row is
returned (if such an operation exists). If this parameter is false and there is no operation which read this row from the DB, the create op is
not examined, and null is returned.
CMException
protected Operation getOperationFromDB(int pId) throws CMException
CMException
protected Operation getOperationFromDBByUsage(int usageId) throws CMException
CMException
public double getPercentage(java.lang.String[] fieldNames) throws CMException
Example: {"A", "B"} would result in A / (A+B), and {"C", "A", "B"} would result in C / (C + A + B)
fieldNames
- String[] of fields names to get percentage for.
CMException
public java.util.List getPhysicalFieldNames() throws CMException
CMException
public java.lang.String getPossibleValueClass(Field field)
IPossibleValueGetter
interface which will handle the
retrieving of possible values for the specified field
Default behavior is to ask the FD
public final java.lang.String getPossibleValueClass(java.lang.String fieldName)
IPossibleValueGetter
interface which will handle the
retrieving of possible values for the specified field
Default behavior is to ask the FD
public RowCollection getPossibleValues(Field fld) throws CMException
fld
- Field
CMException
public java.lang.String getPossibleValuesKey(Field field) throws CMException
CMException
public Operation getPossibleValuesOperation(Field field) throws CMException
CMException
protected DataEnginePropertyChangeSupport getPropertyChangeSupport()
public PropertyGroup getPropertyGroup(java.lang.String groupName)
public PropertyGroupList getPropertyGroups()
public java.util.List getPropertyGroups(java.lang.String groupName)
public java.util.List getReplacementFieldsToDisplay(java.util.List originalFields)
originalFields
- The fields that will normally be displayed
public java.util.List getReplacementFieldsToDisplay(java.util.List originalFields, ExecutingContext ec)
originalFields
- The fields that will normally be displayedec
- The executing context
public java.util.Iterator getRequiredFields()
protected Row getRow(java.util.List columns) throws CMException
CMException
public RowCollection getRowCollection()
public java.lang.String getRowDisplayAttributes() throws CMException
CMException
public java.lang.StringBuffer getRowDisplayAttributes(java.lang.StringBuffer html) throws CMException
CMException
public RowKey getRowKey() throws CMException
CMException
public int getSecuredTypeId()
getSecuredTypeId
in interface IGuarded
public java.lang.String getSecuredTypeName()
getSecuredTypeName
in interface IGuarded
public int getSecurityType()
0 - Unsecured 1 - Secured 2 - Admins Only 3 - PJ Admins Only
getSecurityType
in interface IGuarded
public java.lang.String getSQL()
public SQLContext getSQLContext()
public java.lang.Object getStaticAttribute(java.lang.Object key)
protected java.util.Map getStaticAttributes()
public double getSum(java.lang.String[] pFieldNames) throws CMException
Example: double totalCash = bankRow.getSum(new String[]{"TotalChecking", "TotalSavings", "TotalBonds");
pFieldNames
- String[] fieldNames to add together
CMException
public java.lang.String getSystemAlias()
public DBSystem getDBSystem()
public TabbedOperation getTabbedOperation()
public Table getTable()
public Table getTable(int pTableIndex)
public java.lang.String getTableName()
public TableCollection getTables()
public long getTimestamp()
public java.util.Map getUpdatedFields() throws CMException
CMException
public java.lang.String getUserMessageForOperation(int mode)
(see Row constants to find the modes.
public java.lang.String getUserMessageForOperation(int rowsChanged, int mode)
(see Row constants to find the modes.
public java.lang.String getErrorMessageForOperation(int mode, java.lang.Throwable t)
(see Row constants to find the modes.
public short getUseWOWLibrary()
public ValidationExceptionCollection getValidationExceptions()
public boolean getValueAsBoolean(java.lang.String pFieldName)
pFieldName
- java.lang.String The name of the field
public byte getValueAsByte(java.lang.String pFieldName)
pFieldName
- java.lang.String The name of the field
public java.util.Date getValueAsDate(java.lang.String pFieldName)
pFieldName
- String that must be the field name of a DateField
public java.util.Date getValueAsDate(java.lang.String pYearFldName, java.lang.String pMonthFldName, java.lang.String pDayFldName)
public double getValueAsDouble(int fieldIndex)
fieldIndex
- Index of the Field in this Row
public double getValueAsDouble(java.lang.String pFieldName)
pFieldName
- java.lang.String The name of the field
public float getValueAsFloat(java.lang.String pFieldName)
pFieldName
- java.lang.String The name of the field
public java.lang.String getValueAsFullLengthString(java.lang.String pFieldName) throws CMException
pFieldName
- java.lang.String The name of the field
CMException
public int getValueAsInt(int index)
public int getValueAsInt(java.lang.String pFieldName)
pFieldName
- java.lang.String The name of the field
public long getValueAsLong(java.lang.String pFieldName)
pFieldName
- java.lang.String The name of the field
public java.lang.Number getValueAsNumber(int fieldIndex)
fieldIndex
- Index of the Field in this Row
public java.lang.Number getValueAsNumber(java.lang.String pFieldName)
pFieldName
- java.lang.String The name of the field
public short getValueAsShort(java.lang.String pFieldName)
pFieldName
- java.lang.String The name of the field
public java.lang.String getValueAsString(int fieldIndex)
fieldIndex
- Index of the Field in this Row
public java.lang.String getValueAsString(java.lang.String pFieldName)
pFieldName
- java.lang.String The name of the field
public java.lang.String getValueAsStringByUsageId(int usageId)
public java.lang.Object getValueByUsageId(int usageId) throws CMException
CMException
public java.lang.Object getValueForKey(java.lang.Object valueKey)
public java.util.Iterator getValues()
public java.lang.StringBuffer getXMLData(java.lang.StringBuffer pXMLData)
getXMLData
in interface IXMLObject
public java.lang.StringBuffer getXMLData(XMLFileDescriptor pDescriptor, java.lang.StringBuffer pXMLData)
pDescriptor
- Describes what XML data to outputpXMLData
- StringBuffer to write to
public java.lang.StringBuffer getXMLHeaderData(java.lang.StringBuffer pXMLData)
Creation date: (2/12/2002 5:42:05 PM)
public java.lang.Object handleAction(java.lang.String action, ExecutingContext ec) throws CMException
IActionObject
handleAction
in interface IActionObject
CMException
public boolean isActionRepeatable(java.lang.String action, ExecutingContext ec)
public boolean hasAssociationOperation(Field field, ExecutingContext ec)
field
- ec
- public boolean hasChildRows()
public boolean hasMultipleStyleClasses(Field field, ExecutingContext ec)
field
- Field to see if more than one style class existsec
- current context in which code is executing
public boolean hasPossibleValuesKeyClassOrOp(Field field)
public boolean hasPropertyChangeListeners(java.lang.String pProperty)
pProperty
- The property whose listeners are of interestpublic void incrementFieldValue(Field field, ExecutingContext ec) throws CMException
field
- ec
-
CMException
protected final void initializeRow() throws CMException
CMException
protected final void initializeRow(boolean allFields) throws CMException
CMException
protected final void initializeRow(boolean allFields, ExecutingContext pExecutingContext) throws CMException
CMException
protected final void initializeRow(ExecutingContext pExecutingContext) throws CMException
CMException
protected final void initializeRow(java.util.List fieldNames) throws CMException
CMException
protected void initializeRow(java.util.List fieldNames, ExecutingContext ec) throws CMException
CMException
public final int insert() throws CMException
CMException
public final int insert(java.sql.Connection conn) throws CMException
CMException
public int insert(ExecutingContext ec) throws CMException
CMException
public int insert(SQLContext context) throws CMException
CMException
public boolean is(java.lang.String pFieldName) throws DataEngineException
pFieldName
- java.lang.String
java.lang.Exception
DataEngineException
public boolean isActionApplicable(java.lang.String actionName, ExecutingContext ec) throws CMException
isActionApplicable
in interface IActionObject
CMException
public final boolean isARow()
public final boolean isARowCollection()
public boolean isChanged()
public boolean isChanged(boolean ignoreLogical)
ignoreLogical
- When true the logical fields are not examined
public boolean isChangedRealTime(boolean realTimeCheck)
public boolean isChangedSinceLastCheck()
public boolean isCloneNeeded()
INavigationObject
isCloneNeeded
in interface INavigationObject
public boolean isContainsAllFields() throws CMException
CMException
public boolean isCopyable(ExecutingContext ec)
ec
- context in which application is executing.
public boolean isCurrent()
public boolean isDeletable(ExecutingContext ec)
ec
- context in which application is executing.
public boolean isDistinctRow()
public boolean isEditable(ExecutingContext ec)
ec
- context in which application is executing.
public boolean isEmpty()
public boolean isFieldApplicable(Field fld, ExecutingContext ec) throws CMException
fld
- The field which may or may not be applicable
CMException
public boolean isFieldAuthorizedForEdit(Field pField, ExecutingContext pContext)
pField
- The whose read only status is being testedpContext
- The current executing context which may be nullpublic boolean isFieldAuthorizedForRead(Field pField, ExecutingContext pContext)
pField
- The whose read only status is being testedpContext
- The current executing context which may be nullpublic boolean isFieldAutoIncrement(Field field, ExecutingContext ec) throws CMException
field
- ec
-
CMException
public boolean isFieldAutoIncrementWOWDriven(Field field, ExecutingContext ec) throws CMException
field
- ec
-
CMException
public boolean isFieldAutoIncrementDatabaseDriven(Field field, ExecutingContext ec) throws CMException
field
- ec
-
CMException
public boolean isFieldPresent(java.lang.String fieldName)
public boolean isFieldDisplayable(Field field, ExecutingContext ec) throws CMException
ec
- context in which code is running.
CMException
public boolean isFieldReadOnly(Field pField, ExecutingContext pContext)
pField
- The whose read only status is being testedpContext
- The current executing context which may be nullpublic boolean isFieldReadOnlyOnSearch(Field field, ExecutingContext ec)
field
- The whose read only status is being testedec
- The current executing context which may be nullpublic boolean isFieldRequired(Field pField, ExecutingContext pContext)
pField
- The whose required status is being testedpContext
- The current executing context which may be nullpublic boolean isFieldRequiredOnSearch(Field pField, ExecutingContext pContext)
pField
- The whose required status is being testedpContext
- The current executing context which may be nullpublic boolean isFieldsChanged(java.util.List names)
names
- names of Fields to check if changed. If null, all Fields are checked.
public boolean isFieldUpdateable(Field f)
public boolean isFieldValueNotBlank(java.lang.String fieldName)
public boolean isFieldValuePossibleValue(Field field, ExecutingContext ec) throws CMException
CMException
public boolean isFieldValuesDatabaseDefaults(java.lang.String[] pFieldNames) throws CMException
pFieldNames
- String[] fieldNames to compare to default values
CMException
public boolean isGenerateChildRows()
public boolean isGroupByRow()
public boolean isGuarded()
isGuarded
in interface IGuarded
public boolean isHasColumnNames(java.util.List columns) throws CMException
CMException
public boolean isInARowCollection()
public boolean isIncrementorResetAfterMaxInsertRetries(Field field)
public boolean isInitializeDerivedFieldEnabled(java.lang.String fieldName)
public final boolean isInitializeDerivedFieldsEnabled()
public boolean isJoinedRow()
public boolean isKeyFieldsPresent() throws CMException
CMException
public boolean isLogicalRow()
public boolean isMultipleDeleteEnabled()
public boolean isParameterRow()
public boolean isPersistent()
public final boolean isPhysicalRow()
public boolean isPrepareFieldValue(Field f, ExecutingContext ec)
public boolean isPropertyChangeEventsEnabled()
public boolean isReturningFromPossibleValuesSearch()
public boolean isRowDisplayable(ExecutingContext ec)
public boolean isRowKeyed() throws CMException
CMException
public boolean isSelectable()
public boolean isStatusChange(Field field)
public boolean isToBeSelected()
public boolean isUnionRow()
public boolean isUpdateable()
public boolean isUseRowForFieldSets() throws CMException
CMException
public boolean isValidateDerivedFields()
public boolean isValidateRequired()
public boolean isValidationRequiredForAutoPopulate(Field pField, ExecutingContext pEC) throws CMException
pField
- planetj.database.FieldpEC
- planetj.dataengine.ExecutingContext
CMException
public boolean isViewable(ExecutingContext ec)
ec
- context in which application is executing.
public java.util.Iterator iterator()
protected int joinedDelete(java.sql.Connection connection, ExecutingContext ec) throws CMException
Deletes this row from the database. This method is only used when the row contains data from multiple tables. If concurrent alterations to the database prevent this row from being deleted, a ConcurrentAlterationException is thrown.
In general, this method should not be directly invoked, instead one of the delete() methods should be invoked when a joined row needs to be deleted
connection
- The connection to use for the deleteec
- The current executing context
CMException
protected int joinedInsert(java.sql.Connection connection, boolean useTransactions, ExecutingContext ec) throws CMException
connection
- The connection to use for the updateuseTransactions
- Should all of the disjoint inserts be sent to the DB in a single transaction?ec
- The current executing context
CMException
protected int joinedInsert(java.sql.Connection connection, ExecutingContext ec) throws CMException
connection
- The connection to use for the updateec
- The current executing context
CMException
protected int joinedUpdate(java.sql.Connection connection, boolean useTransactions, ExecutingContext ec) throws CMException
connection
- The connection to use for the updateuseTransactions
- Should all of the disjoint updates be sent to the DB in a single transaction?ec
- The current executing context
CMException
protected int joinedUpdate(java.sql.Connection connection, ExecutingContext ec) throws CMException
connection
- The connection to use for the updateec
- The current executing context
CMException
protected int joinedDatabaseAccessFailure(java.sql.Connection conn, Row disjointRow, TableCollection affectedTables, int mode, java.lang.Throwable t, ExecutingContext ec) throws CMException
Invoked whenever a update, insert, or delete fails on a disjoint row during a joined DB access. (A joined DB access is split up into multiple disjoint DB accesses, each of which affects only a single table.) There are two ways a disjoint DB access can fail: either due to an exception, or because it affected 0 rows in the database.
If this method returns normally, then it is assumed that the failure was corrected and the system proceeds with the joined DB access as if this disjoint DB access had been successful. If an exception is thrown then that exception is propagated back up the stack to the invoker, and the joined DB access is aborted. When this method throws an exception, it should also attempt to restore the database to the state it was in before the joined DB access began.
The default behavior is to always throw an exception. If transactions are being used, then the current transaction is rolled back.
This method is always invoked on the joined row, never the disjoint row.
conn
- The connection which was used for the database accessdisjointRow
- The disjoint row which was being used to access the database when the failure occurred. You can invoke the getTable() method on it to get the
table being accessed. To get the fields in this row which correspond to that table, you can use the getFieldNames(Table) method.affectedTables
- Contains the tables whose data had already been affected by other disjoint DB accesses before the failure occurredmode
- A constant defined in Row which indicates if an insert, update, or delete caused the failure. (This may be different than the current mode
contained in the ExecutingContext.)t
- This is the exception describing the failure. It will be null in the case where the DB access was processed okay, but affected 0 rowsec
- The current executing context
CMException
protected int joinedDelete(java.sql.Connection connection, boolean useTransactions, ExecutingContext ec) throws CMException
Deletes this row from the database. This method is only used when the row contains data from multiple tables. If concurrent alterations to the database prevent this row from being deleted, a ConcurrentAlterationException is thrown.
In general, this method should not be directly invoked, instead one of the delete() methods should be invoked when a joined row needs to be deleted
connection
- The connection to use for the deleteuseTransactions
- Should all of the disjoint deletes be sent to the DB in a single transaction?ec
- The current executing context
CMException
public void merge(Row row) throws CMException
CMException
public Field newField(FieldDescriptorRow pFD) throws CMException
CMException
public Field newField(java.lang.String pFieldName, FieldDescriptorRow pFD) throws CMException
pFieldName
- StringpFD
- planetj.fielddescriptors.FieldDescriptorRow
CMException
public Field newField(java.lang.String pFieldName, int pSQLType) throws CMException
pFieldName
- StringpSQLType
- int
CMException
public Field newField(java.lang.String pFieldName, java.lang.String pFieldClassName) throws CMException
pFieldName
- StringpFieldClassName
- String
CMException
public final void openFor(int mode, ExecutingContext ec) throws CMException
CMException
public boolean persist() throws CMException
CMException
public void populate(java.sql.ResultSet pResults) throws CMException
pResults
- The result set containing data which will be used to populate this Row. The cursor must be pointing to the row in the result set which will be
used to populate this Row object.
CMException
protected void populate(java.sql.ResultSet pResults, java.util.List pPhysicalNames, java.sql.ResultSetMetaData pMetaData, SQLContext pContext) throws CMException
pResults
- The result set containing data which will be used to populate this Row. The cursor must be pointing to the row in the result set which will be
used to populate this Row object.pMetaData
- The result set's metadata.
CMException
protected void populate(java.sql.ResultSet pResults, java.sql.ResultSetMetaData pMetaData, SQLContext pContext) throws CMException
pResults
- The result set containing data which will be used to populate this Row. The cursor must be pointing to the row in the result set which will be
used to populate this Row object.pMetaData
- The result set's metadata.
CMException
protected void populateFD(java.sql.ResultSet pResults, java.util.List pColumnNames) throws CMException
CMException
public void postCreate()
protected void postDelete(int changed, ExecutingContext ec) throws CMException
ec
- current context in which code is running
CMException
public void postExtract(java.lang.String[] fieldNames, ExecutingContext ec) throws CMException
fieldNames
- The names of field which have had their values set from the screen. This does not necessarily mean these fields have had their values changedec
- The current ExecutingContext
CMException
protected final void postInsert(ExecutingContext exContext) throws CMException
CMException
protected void postInsert(int changed, ExecutingContext exContext) throws CMException
CMException
protected final void postUpdate(ExecutingContext exContext) throws CMException
CMException
protected void postUpdate(int changed, ExecutingContext exContext) throws CMException
CMException
protected void preDelete(ExecutingContext ec) throws CMException
ec
- current context in which code is running
CMException
protected void preInsert(ExecutingContext exContext) throws CMException
CMException
public Row prepareForDetails(ExecutingContext ec) throws CMException
CMException
public void prepareForParameters(AbstractContext context, ExecutingContext pEc) throws CMException
CMException
public Row prepareForResultsDisplay(ExecutingContext ec) throws CMException
CMException
public Row prepareFromFieldNames(java.util.List pNames) throws CMException
CMException
protected void preUpdate(ExecutingContext exContext) throws CMException
CMException
public Field removeField(Field field)
public Field removeField(java.lang.String fieldName)
public void removeNavigationKey()
removeNavigationKey
in interface INavigationObject
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener()
method.
public void removePropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener listener)
addPropertyChangeListener()
method.
public void removeRowEventListener(IRowEventListener pNewListener)
public void removeRowEventListeners(java.util.List listeners)
public void replaceField(Field newField)
public java.util.List replaceFieldValues(java.util.Map nameValueMap) throws CMException
nameValueMap
- A mapping of field names (String objects) to values. Every field in this Row whose name is in the key set of the Map has its value replaced by
the corresponding value in the Map.
CMException
protected void replaceFields() throws CMException
CMException
public Row reread() throws CMException
CMException
public Row rereadIfNeeded() throws CMException
CMException
public void resetDisplayValues()
public Row rollbackChanges() throws CMException
CMException
protected RowCollection runSQLQuery(java.lang.String sqlStatement) throws CMException
CMException
protected RowCollection runSQLQuery(java.lang.String sqlStatement, java.lang.Class rowClass) throws CMException
CMException
protected void runSQLStatement(java.lang.String sql) throws CMException
sql
- SQL String to run
CMException
protected void runSQLStatement(java.lang.String sql, ExecutingContext ec) throws CMException
sql
- SQL String to runec
- context in which the current request is being run
CMException
public void setAttribute(java.lang.Object key, java.lang.Object value)
protected void setAutoUpdateFieldValues(ExecutingContext ec) throws CMException
ec
- context in which application is running.
CMException
public void setFieldInitialValue(java.lang.String fldNam, java.lang.Object value) throws CMException
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 setFieldValue(java.lang.String fldNam, boolean bool) throws CMException
CMException
public void setFieldValue(java.lang.String fldNam, double pDouble) throws CMException
CMException
public void setFieldValue(java.lang.String fldNam, long pLong) throws CMException
CMException
public void setFieldValue(java.lang.String fldNam, java.lang.Object value) throws CMException
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 setFieldValueAsString(java.lang.String fldNam, java.lang.String value) throws CMException
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 setFieldValueAsString(java.lang.String fldNam, java.lang.String value, int startPos) throws CMException
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 setFieldValuesAsDate(java.lang.String[] fieldNames, java.util.Date date) throws CMException
CMException
public void setFieldValuesToDefault(java.util.List fieldNames, boolean ignoreCase, ExecutingContext ec) throws CMException
CMException
public void setFieldValuesWithCommonFieldNames(Row source) throws CMException
CMException
public void setFieldValuesWithCommonFieldNames(Row source, boolean ignoreCase) throws CMException
CMException
public void setFieldValuesWithCommonFieldNames(java.util.List targetNames, Row source, boolean ignoreCase) throws CMException
CMException
public void setFieldValuesWithCommonUsageIds(Row rowToCopy) throws CMException
CMException
public void setFieldValueToDefault(java.lang.String pName, ExecutingContext ec) throws CMException
CMException
public void updateGlobalValues(ExecutingContext ec) throws CMException
CMException
public void setMultipleDeleteEnabled(boolean pMultipleDeleteEnabled)
public void setNavigationKey(java.lang.String key)
setNavigationKey
in interface INavigationObject
public void setParameterRow(boolean isParameterRow)
public void setPersistent(boolean persistent)
public void setPropertyChangeEventsEnabled(boolean newPropertyChangeEventsEnabled)
public void setPropertyGroups(PropertyGroupList propertyGroups)
public void setReturningFromPossibleValuesSearch(boolean value)
value
- booleanpublic void setRowDisplayAttributes(java.lang.String displayAttributes) throws CMException
CMException
public void setSavepoint()
public void setSavepoint(java.util.Collection pFields)
public void setSavepoint(java.util.Map pFields)
public void setCreationContext(SQLContext context)
context
- public void setCreationOperation(Operation op)
public void setStaticAttribute(java.lang.Object key, java.lang.Object value)
public void setTables(java.util.List pTables)
public void setTables(TableCollection pTables)
public void setUseWOWLibrary(short newWOWSystemLibrary)
public void setValidateDerivedFields(boolean newValidateDerivedFields)
public void setValidateRequired(boolean newValidateRequired)
public void setValues(java.util.List pData) throws CMException
pData
- A List of values. The first field in this Row will be set to the first value in the List, the second field to the second value, etc.
CMException
public int size()
size
in interface INamedCollection
public void splitAndSetFieldValues(java.lang.String[] fieldNames, int[] splitIndices, java.lang.String valueToSplit) throws CMException
e.g. (scenario) 3 field names ["Month", Day", "Year"] Value to split = "04072002" Split indices = [2, 4] (result) Field "Month" = "04" "Day" = "07" "Year" = "2002" 01 23 4567 8 } Indices ------------ 04|07|2002
fieldNames
- String[] of Field names to set values forsplitIndices
- int[] of indices of where to split the given valuevalueToSplit
- String value to split into mulitple values
CMException
public Row statusChanged(Field pField, ExecutingContext ec) throws CMException
pField
- The field whose status has changedec
- The current executing context
CMException
public void swapFieldValues(java.lang.String fieldNameA, java.lang.String fieldNameB) throws CMException
CMException
public java.lang.StringBuffer toCSV(boolean pIncludeColumnHeadings, CSVFileDescriptor pCSVFileDescriptor) throws CMException
CMException
public java.lang.StringBuffer toDOC(boolean pIncludeColumnHeadings, CSVFileDescriptor pFileDescriptor) throws CMException
CMException
public java.lang.StringBuffer toDOC(CSVFileDescriptor pFileDescriptor) throws CMException
CMException
public java.lang.StringBuffer toFDF(FDFFileDescriptor pFileDescriptor) throws CMException
CMException
public void toPDF(boolean pIncludeColumnHeadings, PDFFileDescriptor pFileDescriptor) throws CMException
Creation date: (2/7/2002 12:39:11 PM)
CMException
public void toPDF(PDFFileDescriptor pFileDescriptor) throws CMException
Creation date: (2/7/2002 12:39:11 PM)
CMException
public java.lang.String toString(boolean includeTable)
public void toUpperCase() throws CMException
CMException
public java.lang.StringBuffer toXML(XMLFileDescriptor pFileDescriptor) throws CMException
CMException
public Row transferDataTo(java.lang.Class pNewRowClass) throws CMException
pNewRowClass
- The new type of Row to copy the data to.
CMException
public Row transferDataTo(Row pDestinationRow) throws DataEngineException
pDestinationRow
- The Row to copy the data to.
DataEngineException
public final int update() throws CMException
CMException
public final int update(java.sql.Connection conn) throws CMException
conn
- The connection to use for the update
CMException
public int update(java.sql.Connection connection, ExecutingContext ec) throws CMException
CMException
public final int update(ExecutingContext ec) throws CMException
ec
- context in which to update this Row
CMException
public void updateFieldValues(java.util.Map fields) throws CMException
CMException
public void updateObject() throws java.lang.Exception
updateObject
in interface IBusinessObject
java.lang.Exception
public boolean validate(ExecutingContext ec) throws CMException
ec
- current context in which application is executing
CMException
public boolean validateField(Field field, ExecutingContext ec) throws CMException
field
-
CMException
public final boolean validate(ExecutingContext pContext, java.security.Principal pUser) throws CMException
CMException
public boolean validate(int pOperation, java.security.Principal pUser) throws CMException
CMException
public void validateRowOperation(int pOperation, java.security.Principal pUser) throws DataEngineException
DataEngineException
public final IActionRequest getActionRequest(AbstractAction action, HttpServletRequest request, HttpServletResponse response)
IActionObject
getActionRequest
in interface IActionObject
public IActionRequest getActionRequest(AbstractAction action, java.lang.Object o, HttpServletRequest request, HttpServletResponse response)
IActionObject
getActionRequest
in interface IActionObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |