|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.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 String |
className
|
static int |
COPY
Deprecated. use MODE_COPY instead |
static int |
DELETE
Deprecated. use MODE_DELETE instead |
static int |
INSERT
Deprecated. use MODE_INSERT instead |
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
|
static int |
READ
Deprecated. use MODE_READ instead |
static int |
UPDATE
Deprecated. use MODE_UPDATE instead |
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(PropertyChangeListener listener)
Adds a listener which is informed when any field of this Row which has its value changed. |
void |
addPropertyChangeListener(String property,
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(List listeners)
|
void |
addTable(Table pTable)
Sets the table to which this row belongs. |
StringBuffer |
appendDisplayType(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. |
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(Collection pFields)
Commits the values of the Fields in the given Collection. |
void |
commitFieldValues(Map pFields)
Commits the values of the Fields in the given Map. |
String |
concatenateFieldFullLengthValues(String[] pFieldNames,
String pSeperator)
Concat the field full length string values inserting the supplied seperator between values. |
String |
concatenateFieldValues(String[] pFieldNames,
String pSeperator,
boolean pTrimValues)
Concat the field values inserting the supplied seperator between values and optionally trim the values before concating. |
boolean |
containsField(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)
Copy the fields from the supplied Row with the same field name into this Row. |
void |
copyIntoRowFieldsWithCommonFieldNames(Row rowToCopy,
boolean ignoreCase)
Copy the fields from the supplied Row with the same field name into this Row. |
void |
copyIntoRowFieldsWithCommonUsageIds(Row rowToCopy)
Copy the fields from the supplied Row with the same usageid into this Row. |
void |
copyIntoRowFieldsWithGivenFieldNames(List fieldNames,
Row rowToCopy)
Copy the fields from the supplied Row that has a name in the given list. |
void |
copyIntoRowFieldsWithGivenFieldNames(List fieldNames,
Row rowToCopy,
boolean ignoreCase)
Copy the fields from the supplied Row that has a name in the given list. |
static Row |
create(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(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(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,
Class rowSubClass)
Create and return a new Row of the given Class type and also set its Table. |
static Row |
create(Table table,
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,
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,
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,
Class rowSubClass,
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,
Class rowSubClass,
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,
List fieldNames,
boolean initialize)
Create and return a new Row for the given table and field names. |
static Row |
create(Table table,
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,
List names,
ExecutingContext ec)
Create and return a new Row and also set its Table. |
Row |
createRow(Row pDefaultRow)
Creates a new 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(Connection conn)
Deletes the row from the database file to which it belongs. |
int |
delete(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(String fieldName,
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 |
equals(Object otherRow)
Tests if this Row is equal to another Row. |
boolean |
equals(Row row,
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(Object otherRow)
Tests if this Row is equal to another Row. |
void |
executeDistributedAction()
Insert the method's description here. |
boolean |
fieldHasPossibleValuesSQLOperation(Field pField,
ExecutingContext pContext)
Tests if a field is possible values op. |
Object |
getAssociation(String fieldName)
Gets the association for the given Field name. |
Object |
getAssociation(String fieldName,
ExecutingContext ec)
Gets the association for the given Field name. |
Object |
getAssociationByOperationUsageId(int usageId,
ExecutingContext ec)
Gets the association for the given operation usage id. |
Operation |
getAssociationOperation(String fieldName)
Gets the association's operation for the Field having the given name. |
Object |
getAttribute(Object key)
Map that allows general attributes about a Row to be set and retreived. |
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(Connection pConnection)
Gets a complete Row for this Row containing all of its Fields in using the specified connection if needed. |
Object |
getConfigProperty(String key,
ExecutingContext executingContext)
Get a config property for the given row. |
Map |
getCopiedFieldValues()
Returns a Map of field values, keyed by field name. |
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. |
List |
getCSVRow(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(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(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. |
String |
getDeleteConfirmation()
Deprecated. |
String |
getDeleteConfirmationMessage()
Get the delete confirmation message. |
String |
getDisplayValue(String fieldName)
Gets the display value for the field with the given name. |
URL |
getDistributedRequestorURL()
Insert the method's description here. |
String |
getExternalName(String fieldName)
Gets the external name of a field |
List |
getExternalNames()
Gets the external names of this RowCollection's fields |
StringBuffer |
getFDFData(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(String fieldName)
Returns the Field for the given name, or null if no such Field exists. |
Field |
getField(String name,
boolean create)
Get the Field in this Row with the given name. |
Object |
getFieldDefaultValue(Field pField,
ExecutingContext executingContext)
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(String pFieldName)
Return the IFieldDescriptor for the Field with the specified name. |
FieldDescriptorRow |
getFieldDescriptor(String pFieldName,
Table pTable)
Return the IFieldDescriptor for the Field with the specified name. |
List |
getFieldDescriptorsWithUsage()
Get a Collection of FieldDescriptorRows for this Row that have a UsageId defined for them. |
List |
getFieldDescriptorsWithUsageId(int usageId)
Get a Collection of FieldDescriptorRows for this Row that have the given UsageId defined for them. |
FieldDescriptorRow |
getFieldDescriptorWithUsageId(int usageId)
Get a FieldDescriptorRow for this Row that have the given usage id defined for them. |
Object |
getFieldDisplayValue(String fldNam)
Returns the display value for the Field with the specified name. |
List |
getFieldNames()
Return a List of all the Field names in this Row. |
List |
getFields(Class pFieldClassType)
Returns a List of Fields for requested Class type. |
Map |
getFields(List pFieldNames)
Returns a Map of Fields in this Row from the names given in the List. |
List |
getFieldSets()
Gets a List of the FieldSet objects, containing the fields in this Row |
Object |
getFieldSQLObject(String fieldName)
Gets this field's value as an Object in SQL format. |
List |
getFieldsToDisplay()
Return a List of all the Field names that will be displayed by default. |
List |
getFieldsToDisplayStrict(ExecutingContext pEc)
Return a List of all the Field names that will be displayed by default. |
List |
getFieldsToDisplayStrict(List fieldNames,
ExecutingContext pEc)
Removes fields from the list that should not be displayed. |
String |
getFieldStyleClass(Field field,
String value,
String displayValue,
ExecutingContext ec)
Get a Field's style. |
Object |
getFieldValue(String pFieldName)
Gets a field in this Row by name. |
Field |
getFieldWithUsageId(int usageId)
Get the Field with the given usage id from this row. |
String |
getHeaderText(ExecutingContext ec)
Returns information for the user that will be displayed in the header of the Row |
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. |
String |
getMetaDataSystemAlias()
Returns the meta data alias of the system to which this Row belongs |
INamed |
getNamed(int i)
|
List |
getNamesOfUpdatedFields()
Return the names of all of the Fields in this Row that have been updated. |
String |
getNavigationKey()
Get the key used to store/retrieve this Row to/from navigation. |
String |
getNavigationListKey()
Get the key used to store and retrieve a List of Rows that have been put into navigation. |
double |
getPercentage(String[] fieldNames)
Gets the percentage of the first field compared with all the fields given. |
List |
getPhysicalFieldNames()
Gets a List of the names of all Fields in this Row, excluding logical Fields |
PropertyGroup |
getPropertyGroup(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. |
List |
getPropertyGroups(String groupName)
Get this RowCollection's property groups with the given group name. |
RowCollection |
getRowCollection()
Gets the first RowCollection this Row is contained in. |
String |
getRowDisplayAttributes()
Return a String that provides HTML or other display characteristics of this Row. |
StringBuffer |
getRowDisplayAttributes(StringBuffer html)
Return a String that provides HTML or other display characteristics of this Row. |
RowKey |
getRowKey()
Gets the RowKey object for this row. |
int |
getSecuredTypeId()
Gets the id of the secured type. |
String |
getSecuredTypeName()
Gets the secured type name of the secured object. |
int |
getSecurityType()
Gets the type of security being used. |
String |
getSQL()
Gets the SQL statement used to create this Row. |
SQLContext |
getSQLContext()
Returns SQLContext to which the RowCollection this Row belongs has. |
Object |
getStaticAttribute(Object key)
|
double |
getSum(String[] pFieldNames)
Returns the sum of all the fields represented in pFieldNames if that field is a number |
String |
getSystemAlias()
Returns the alias of one of the systems to which this Row belongs. |
Table |
getTable()
Get's this field's table. |
Table |
getTable(int pTableIndex)
|
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 |
Map |
getUpdatedFields()
Return the names of all the fields. |
String |
getUserMessageForOperation(int pMode)
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(String pFieldName)
Returns a primitive that represents the value in the specified field. |
byte |
getValueAsByte(String pFieldName)
Returns a primitive that represents the value in the specified field. |
Date |
getValueAsDate(String pFieldName)
Returns a Date |
Date |
getValueAsDate(String pYearFldName,
String pMonthFldName,
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(String pFieldName)
Returns a primitive that represents the value in the specified field. |
float |
getValueAsFloat(String pFieldName)
Returns a primitive that represents the value in the specified field. |
String |
getValueAsFullLengthString(String pFieldName)
Returns a String that represents the value in the specified field. |
int |
getValueAsInt(String pFieldName)
Returns a primitive that represents the value in the specified field. |
long |
getValueAsLong(String pFieldName)
Returns a primitive that represents the value in the specified field. |
Number |
getValueAsNumber(int fieldIndex)
Gets a primitive that represents the value in the specified field. |
Number |
getValueAsNumber(String pFieldName)
Returns a Number that represents the value in the specified field. |
short |
getValueAsShort(String pFieldName)
Returns a primitive that represents the value in the specified field. |
String |
getValueAsString(int fieldIndex)
Gets a String that represents the value in the specified field. |
String |
getValueAsString(String pFieldName)
Returns a String that represents the value in the specified field. |
Object |
getValueByUsageId(int usageId)
Return the names of all the fields. |
Iterator |
getValues()
Returns an iterator which iterates over the values in this Row |
StringBuffer |
getXMLData(StringBuffer pXMLData)
This returns a StringBuffer containing all necessary XML data for this object. |
StringBuffer |
getXMLData(XMLFileDescriptor pDescriptor,
StringBuffer pXMLData)
This returns a StringBuffer containing all necessary XML data for this object. |
StringBuffer |
getXMLHeaderData(StringBuffer pXMLData)
This returns a StringBuffer containing all XMLHeader data for this Row. |
void |
handleDistributed(String pActionName)
Set the method that will be called after Row is deserialized on the target. |
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 |
hasPropertyChangeListeners(String pProperty)
Tests if any object are listening to this Row for changes in one of its properties. |
int |
insert()
Inserts this Row into its table. |
int |
insert(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(String pFieldName)
Gets the specified field and returns the boolean value. |
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 |
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 |
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 |
isDistributed()
Should return true if serialized and distributed for web services. |
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 |
isFieldDisplayable(Field field,
ExecutingContext ec)
Check to see if this Field is displayable. |
boolean |
isFieldReadOnly(Field pField,
ExecutingContext pContext)
Tests if a field is read only. |
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(List names)
Check to see if any of this Row's Fields have changed for the given list of Field names. |
boolean |
isFieldValueNotBlank(String fieldName)
Returns whether or not this Field is not blank |
boolean |
isFieldValuesDatabaseDefaults(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(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 |
isInitializeDerivedFieldsEnabled()
Tells whether or not to initialize Derived FDs upon row creation. |
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 |
isPhysicalRow()
Tests if this Row is a physical Row. |
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 |
isRowKeyed()
Tests if this row has a key |
boolean |
isSelectable()
Tests if the user may select a Row of this type. |
boolean |
isUnionRow()
Check if Row was created with a union. |
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. |
Iterator |
iterator()
Creates and returns an iterator which iterates over the fields 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(String pFieldName,
FieldDescriptorRow pFD)
Creates and adds a Field to this Row, then returns the Field. |
Field |
newField(String pFieldName,
int pSQLType)
Creates and adds a Field to this Row, then returns the Field. |
Field |
newField(String pFieldName,
String pFieldClassName)
Creates and adds a Field to this Row, then returns the Field. |
void |
populate(ResultSet pResults)
Populates this Row with the data from the result set. |
void |
postCreate()
Handles actions taken immidately after creation of this object Creation date: (7/11/2002 7:06:46 PM) |
Row |
prepareForDetails(ExecutingContext pEc)
Gets the a proper Row for viewing this Rows details. |
Row |
prepareFromFieldNames(List pNames)
Gets the a proper Row for viewing this Rows details. |
void |
removeNavigationKey()
Clears out any navigation key that may have been set on this Row. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener that was added via the addPropertyChangeListener() method. |
void |
removePropertyChangeListener(String property,
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(List listeners)
Removes a Listener from this Row |
void |
replaceField(Field pField)
Replace a Field with the given Field. |
List |
replaceFieldValues(Map nameValueMap)
Replaces the values in one or more fields. |
Row |
rollbackChanges()
Undoes any changes that have been made to this Row since it was read from or written to the database. |
void |
setAttribute(Object key,
Object value)
Map that allows general attributes about a Row to be set and retreived. |
void |
setDistributed(boolean pDistributed)
Should be set to true if serialized and distributed for web services. |
void |
setDistributedRequestorURL(URL pRequestor)
Insert the method's description here. |
void |
setDistributedTargetURL(URL pTarget)
Insert the method's description here. |
void |
setFieldInitialValue(String fldNam,
Object value)
Sets the value of the specified field. |
void |
setFieldValue(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(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(String fldNam,
Object value)
Sets the value of the specified field. |
void |
setFieldValueAsString(String fldNam,
String value)
Sets the value of the specified field. |
void |
setFieldValueAsString(String fldNam,
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(String[] fieldNames,
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(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(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(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(String key)
Set the key used to store/retrieve this Row to/from navigation. |
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 |
setSavepoint()
Sets savepoints for the Fields in the this Row. |
void |
setSavepoint(Collection pFields)
Sets savepoints for the Fields in the given Collection. |
void |
setSavepoint(Map pFields)
Sets savepoints for the Fields in the given Map. |
void |
setStaticAttribute(Object key,
Object value)
|
void |
setTables(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 |
setValidateRequired(boolean newValidateRequired)
Sets if this Row must be validated before it is inserted/updated |
void |
setValues(List pData)
Sets the values of this Row |
int |
size()
Returns the number of fields in this Row. |
void |
splitAndSetFieldValues(String[] fieldNames,
int[] splitIndices,
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. |
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) |
StringBuffer |
toDOC(boolean pIncludeColumnHeadings,
CSVFileDescriptor pFileDescriptor)
Deprecated. Use the single argument method instead |
StringBuffer |
toDOC(CSVFileDescriptor pFileDescriptor)
Returns a StringBuffer in Microsoft Word .doc format containing all data in this RowCollection. |
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. |
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. |
StringBuffer |
toXML(XMLFileDescriptor pFileDescriptor)
Returns a StringBuffer in XML format containing all data in this Row. |
Row |
transferDataTo(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(Connection conn)
Updates the database with the values in this Row. |
int |
update(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 |
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 context)
Validate this Row based on it's configuration and field values. |
boolean |
validate(ExecutingContext pContext,
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,
Principal pUser)
Deprecated. Use the validate() method which takes in an ExecutingContext |
void |
validateRowOperation(int pOperation,
Principal pUser)
Validate if the operation can be performed on this Row. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String className
public static final int COPY
public static final int DELETE
public static final int INSERT
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 READ
public static final int UPDATE
Constructor Detail |
public Row()
Method Detail |
public static Row create(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, boolean initialRow) 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, Class rowSubClass) throws DataEngineException
table
- TablerowSubClass
- Class
DataEngineException
public static Row create(Table table, Class rowSubClass, boolean initializeRow) throws DataEngineException
table
- TablerowSubClass
- Class
DataEngineException
public static Row create(Table table, Class rowSubClass, boolean initializeRow, ExecutingContext pExecutingContext) throws DataEngineException
table
- TablerowSubClass
- ClasspExecutingContext
- ExecutingContext
DataEngineException
public static Row create(Table table, Class rowSubClass, ExecutingContext executingContext) throws DataEngineException
table
- TablerowSubClass
- Class
DataEngineException
public static Row create(Table table, Class rowSubClass, List fieldNames, boolean initializeRow) throws DataEngineException
table
- TablerowSubClass
- Class
DataEngineException
public static Row create(Table table, Class rowSubClass, List fieldNames, boolean initializeRow, ExecutingContext pExecutingContext) throws DataEngineException
table
- TablerowSubClass
- ClasspExecutingContext
- ExecutingContext
DataEngineException
public static Row create(Table table, 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, List fieldNames, boolean initializeRow, ExecutingContext pExecutingContext) throws DataEngineException
table
- TablepExecutingContext
- ExecutingContext
DataEngineException
public static Row create(Table table, List names, ExecutingContext ec) throws DataEngineException
DataEngineException
public void add(Field pField) throws DataEngineException
pField
- Field
DataEngineException
public void add(RowCollection pRowCollection)
pRowCollection
- RowCollectionpublic void addObject() throws Exception
addObject
in interface IBusinessObject
Exception
public void addPropertyChangeListener(PropertyChangeListener listener)
public void addPropertyChangeListener(String property, 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(List listeners)
public void addTable(Table pTable)
public StringBuffer appendDisplayType(StringBuffer sb)
public void batchProcess() throws CMException
batchProcess
in interface IBatchProcessObject
CMException
public void clearFields()
public void clearTables()
public void clearValidationException()
public Object clone()
clone
in interface INavigationObject
clone
in class Object
public Row cloneRow() throws CMException
CMException
public void commitFieldValues()
public void commitFieldValues(Collection pFields)
public void commitFieldValues(Map pFields)
public String concatenateFieldFullLengthValues(String[] pFieldNames, String pSeperator) throws CMException
pFieldNames
- String[] fieldNames to concatpSeperator
- String value to insert between fields
CMException
public String concatenateFieldValues(String[] pFieldNames, 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(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(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(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
public void defaultMerge(RowCollection rc) throws CMException
CMException
public final int delete() throws CMException
CMException
public final int delete(Connection conn) throws CMException, DistributedException
conn
- The connection to use for the deletion.
CMException
DistributedException
public int delete(Connection conn, ExecutingContext ec) throws CMException, DistributedException
conn
- The connection to use for the deletion.
CMException
DistributedException
public final int delete(ExecutingContext ec) throws CMException
CMException
public void deleteObject() throws Exception
deleteObject
in interface IBusinessObject
Exception
public double divide(String fieldName, 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 equals(Object otherRow)
equals
in class Object
public boolean equals(Row row, List fieldNames)
public boolean equalsInstance(Object otherRow)
public void executeDistributedAction() throws DistributedException
executeDistributedAction
in interface IDistributedExecutableObject
DistributedException
public boolean fieldHasPossibleValuesSQLOperation(Field pField, ExecutingContext pContext)
pField
- The whose read only status is being testedpContext
- The current executing context which may be nullpublic Object getAssociation(String fieldName) throws CMException
fieldName
- name of Field containing association
CMException
public Object getAssociation(String fieldName, ExecutingContext ec) throws CMException
fieldName
- name of Field containing associationec
- current context in which user is executing
CMException
public 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(String fieldName) throws CMException
fieldName
- name of Field to get association operation from.
CMException
public Object getAttribute(Object key)
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(Connection pConnection) throws CMException
CMException
public final Object getConfigProperty(String key, ExecutingContext executingContext)
public Map getCopiedFieldValues() throws CMException
CMException
public 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 List getCSVRow(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 Row getDatabaseRow(Connection conn) throws CMException
conn
- the connection to the database
CMException
public Row getDatabaseRow(Connection conn, boolean includeDerivedFields) throws CMException
conn
- the connection to the database
CMException
public String getDeleteConfirmationMessage()
public String getDeleteConfirmation()
public String getDisplayValue(String fieldName) throws CMException
CMException
public URL getDistributedRequestorURL()
public String getExternalName(String fieldName) throws CMException
CMException
public List getExternalNames() throws CMException
CMException
public StringBuffer getFDFData(StringBuffer pFDFData)
getFDFData
in interface IFDFObject
public Table getFDTable()
public Field getField(int pIndex)
pIndex
- int
public Field getField(String fieldName)
public Field getField(String name, boolean create)
name
- name of Fieldcreate
- flag indicating if Field should be created.
public Object getFieldDefaultValue(Field pField, ExecutingContext executingContext) throws CMException
pField
- The field whose default value will be used
CMException
public FieldDescriptorRow getFieldDescriptor(String pFieldName) throws CMException
pFieldName
- String
CMException
public FieldDescriptorRow getFieldDescriptor(String pFieldName, Table pTable) throws CMException
pFieldName
- String
CMException
public FieldDescriptorRow getFieldDescriptor(Field pField, FieldDescriptorRow pFieldDescriptor) throws CMException
pField
- FieldpFieldDescriptor
- FieldDescriptorRow
CMException
public boolean hasChildRows()
public List getFieldDescriptorsWithUsage() throws CMException
CMException
public List getFieldDescriptorsWithUsageId(int usageId) throws CMException
CMException
public FieldDescriptorRow getFieldDescriptorWithUsageId(int usageId) throws CMException
CMException
public Object getFieldDisplayValue(String fldNam) throws CMException
CMException
public List getFieldNames()
public List getFields(Class pFieldClassType)
public Map getFields(List pFieldNames) throws CMException
pFieldNames
- List of Field names
CMException
public List getFieldSets() throws CMException
CMException
public Object getFieldSQLObject(String fieldName) throws CMException
CMException
public List getFieldsToDisplay()
public List getFieldsToDisplayStrict(ExecutingContext pEc)
public List getFieldsToDisplayStrict(List fieldNames, ExecutingContext pEc)
public String getFieldStyleClass(Field field, String value, String displayValue, ExecutingContext ec)
field
- The Field in which to get the style of
public Object getFieldValue(String pFieldName)
public Field getFieldWithUsageId(int usageId) throws CMException
CMException
public String getHeaderText(ExecutingContext ec)
public String getLibraryName()
public int getMaxFieldLengths() throws CMException
CMException
public int getMaxFieldLengths(FileDescriptor fled) throws CMException
CMException
public int getMaxInsertRetries()
public String getMetaDataSystemAlias()
public INamed getNamed(int i)
getNamed
in interface INamedCollection
public List getNamesOfUpdatedFields() throws CMException
CMException
public String getNavigationKey()
getNavigationKey
in interface INavigationObject
public String getNavigationListKey()
getNavigationListKey
in interface INavigationObject
public double getPercentage(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 List getPhysicalFieldNames() throws CMException
CMException
public PropertyGroup getPropertyGroup(String groupName)
public PropertyGroupList getPropertyGroups()
public List getPropertyGroups(String groupName)
public RowCollection getRowCollection()
public String getRowDisplayAttributes() throws CMException
CMException
public StringBuffer getRowDisplayAttributes(StringBuffer html) throws CMException
CMException
public RowKey getRowKey() throws CMException
CMException
public int getSecuredTypeId()
getSecuredTypeId
in interface IGuarded
public 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 String getSQL()
public SQLContext getSQLContext()
public Object getStaticAttribute(Object key)
public double getSum(String[] pFieldNames) throws CMException
Example: double totalCash = bankRow.getSum(new String[]{"TotalChecking", "TotalSavings", "TotalBonds");
pFieldNames
- String[] fieldNames to add together
CMException
public String getSystemAlias()
public Table getTable()
public Table getTable(int pTableIndex)
public String getTableName()
public TableCollection getTables()
public long getTimestamp()
public Map getUpdatedFields() throws CMException
CMException
public String getUserMessageForOperation(int pMode)
(see Row constants to find the modes.
public short getUseWOWLibrary()
public ValidationExceptionCollection getValidationExceptions()
public boolean getValueAsBoolean(String pFieldName)
pFieldName
- java.lang.String The name of the field
public byte getValueAsByte(String pFieldName)
pFieldName
- java.lang.String The name of the field
public Date getValueAsDate(String pFieldName)
pFieldName
- String that must be the field name of a DateField
public Date getValueAsDate(String pYearFldName, String pMonthFldName, String pDayFldName)
public double getValueAsDouble(int fieldIndex)
fieldIndex
- Index of the Field in this Row
public double getValueAsDouble(String pFieldName)
pFieldName
- java.lang.String The name of the field
public float getValueAsFloat(String pFieldName)
pFieldName
- java.lang.String The name of the field
public String getValueAsFullLengthString(String pFieldName) throws CMException
pFieldName
- java.lang.String The name of the field
CMException
public int getValueAsInt(String pFieldName)
pFieldName
- java.lang.String The name of the field
public long getValueAsLong(String pFieldName)
pFieldName
- java.lang.String The name of the field
public Number getValueAsNumber(int fieldIndex)
fieldIndex
- Index of the Field in this Row
public Number getValueAsNumber(String pFieldName)
pFieldName
- java.lang.String The name of the field
public short getValueAsShort(String pFieldName)
pFieldName
- java.lang.String The name of the field
public String getValueAsString(int fieldIndex)
fieldIndex
- Index of the Field in this Row
public String getValueAsString(String pFieldName)
pFieldName
- java.lang.String The name of the field
public Object getValueByUsageId(int usageId) throws CMException
CMException
public Iterator getValues()
public StringBuffer getXMLData(StringBuffer pXMLData)
getXMLData
in interface IXMLObject
public StringBuffer getXMLData(XMLFileDescriptor pDescriptor, StringBuffer pXMLData)
pDescriptor
- Describes what XML data to outputpXMLData
- StringBuffer to write to
public StringBuffer getXMLHeaderData(StringBuffer pXMLData)
Creation date: (2/12/2002 5:42:05 PM)
public void handleDistributed(String pActionName) throws DistributedException
DistributedException
public boolean isGenerateChildRows()
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 hasPropertyChangeListeners(String pProperty)
pProperty
- The property whose listeners are of interestpublic final int insert() throws CMException
CMException
public final int insert(Connection conn) throws CMException, DistributedException
CMException
DistributedException
public int insert(ExecutingContext ec) throws CMException
CMException
public int insert(SQLContext context) throws CMException
CMException
public boolean is(String pFieldName) throws DataEngineException
pFieldName
- java.lang.String
Exception
DataEngineException
public final boolean isARow()
public final boolean isARowCollection()
public boolean isChanged()
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 isDeletable(ExecutingContext ec)
ec
- context in which application is executing.
public boolean isDistinctRow()
public boolean isDistributed()
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 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 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(List names)
names
- names of Fields to check if changed. If null, all
Fields are checked.
public boolean isFieldValueNotBlank(String fieldName)
public boolean isFieldValuesDatabaseDefaults(String[] pFieldNames) throws CMException
pFieldNames
- String[] fieldNames to compare to default values
CMException
public boolean isGroupByRow()
public boolean isGuarded()
isGuarded
in interface IGuarded
public boolean isHasColumnNames(List columns) throws CMException
CMException
public boolean isInARowCollection()
public boolean isIncrementorResetAfterMaxInsertRetries(Field field)
public boolean isInitializeDerivedFieldsEnabled()
public boolean isJoinedRow()
public boolean isKeyFieldsPresent() throws CMException
CMException
public boolean isLogicalRow()
public boolean isMultipleDeleteEnabled()
public final boolean isPhysicalRow()
public boolean isPropertyChangeEventsEnabled()
public boolean isReturningFromPossibleValuesSearch()
public boolean isRowKeyed() throws CMException
CMException
public boolean isSelectable()
public boolean isUnionRow()
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 Iterator iterator()
public void merge(Row row) throws CMException
CMException
public Field newField(FieldDescriptorRow pFD) throws CMException
CMException
public Field newField(String pFieldName, FieldDescriptorRow pFD) throws CMException
pFieldName
- StringpFD
- planetj.fielddescriptors.FieldDescriptorRow
CMException
public Field newField(String pFieldName, int pSQLType) throws CMException
pFieldName
- StringpSQLType
- int
CMException
public Field newField(String pFieldName, String pFieldClassName) throws CMException
pFieldName
- StringpFieldClassName
- String
CMException
public void populate(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
public void postCreate()
public Row prepareForDetails(ExecutingContext pEc) throws CMException
CMException
public Row prepareFromFieldNames(List pNames) throws CMException
CMException
public void removeNavigationKey()
removeNavigationKey
in interface INavigationObject
public void removePropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener()
method.
public void removePropertyChangeListener(String property, PropertyChangeListener listener)
addPropertyChangeListener()
method.
public void removeRowEventListener(IRowEventListener pNewListener)
public void removeRowEventListeners(List listeners)
public void replaceField(Field pField)
pField
- Field to be added to this Row replacing the Field with the same name.public List replaceFieldValues(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
public Row rollbackChanges() throws CMException
CMException
public void setAttribute(Object key, Object value)
public void setDistributed(boolean pDistributed)
public void setDistributedRequestorURL(URL pRequestor)
public void setDistributedTargetURL(URL pTarget)
public void setFieldInitialValue(String fldNam, 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(String fldNam, double pDouble) throws CMException
CMException
public void setFieldValue(String fldNam, long pLong) throws CMException
CMException
public void setFieldValue(String fldNam, 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(String fldNam, 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(String fldNam, 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(String[] fieldNames, Date date) throws CMException
CMException
public void setFieldValuesToDefault(List fieldNames, boolean ignoreCase, ExecutingContext ec) throws CMException
CMException
public void setFieldValueToDefault(String pName, 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 setFieldValuesWithCommonUsageIds(Row rowToCopy) throws CMException
CMException
public void setMultipleDeleteEnabled(boolean pMultipleDeleteEnabled)
public void setNavigationKey(String key)
setNavigationKey
in interface INavigationObject
public void setPropertyChangeEventsEnabled(boolean newPropertyChangeEventsEnabled)
public void setPropertyGroups(PropertyGroupList propertyGroups)
public void setReturningFromPossibleValuesSearch(boolean value)
value
- booleanpublic void setSavepoint()
public void setSavepoint(Collection pFields)
public void setSavepoint(Map pFields)
public void setStaticAttribute(Object key, Object value)
public void setTables(List pTables)
public void setTables(TableCollection pTables)
public void setUseWOWLibrary(short newWOWSystemLibrary)
public void setValidateRequired(boolean newValidateRequired)
public void setValues(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(String[] fieldNames, int[] splitIndices, 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 StringBuffer toCSV(boolean pIncludeColumnHeadings, CSVFileDescriptor pCSVFileDescriptor) throws CMException
CMException
public StringBuffer toDOC(boolean pIncludeColumnHeadings, CSVFileDescriptor pFileDescriptor) throws CMException
CMException
public StringBuffer toDOC(CSVFileDescriptor pFileDescriptor) throws CMException
CMException
public 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 String toString(boolean includeTable)
public void toUpperCase() throws CMException
CMException
public StringBuffer toXML(XMLFileDescriptor pFileDescriptor) throws CMException
CMException
public Row transferDataTo(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(Connection conn) throws CMException, DistributedException
conn
- The connection to use for the update
CMException
DistributedException
public int update(Connection connection, ExecutingContext ec) throws CMException, DistributedException
CMException
DistributedException
public final int update(ExecutingContext ec) throws CMException
ec
- context in which to update this Row
CMException
public void updateObject() throws Exception
updateObject
in interface IBusinessObject
Exception
public boolean validate(ExecutingContext context) throws CMException
CMException
public final boolean validate(ExecutingContext pContext, Principal pUser) throws CMException
CMException
public boolean validate(int pOperation, Principal pUser) throws CMException
CMException
public void validateRowOperation(int pOperation, Principal pUser) throws DataEngineException
DataEngineException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |