public interface Row extends AttributeList, XMLInterface, ExprWrappable
EntityImpl or ViewRowImpl directly.
 This design would allow changes in a row's implementation (Entity row or View
 row) without necessitating changes in the application logic.
 In addition to providing a base type for View row and Entity row access, this interface provides tier-independent access to rows. Consequently, custom application logic can reference the interface on both the client and middle tiers of a three-tier application.
Note in an application running in the three-tier configuration, Entity rows are not marshalled to the client tier. The client tier has access only to View rows and not Entity rows. Of course, in the middle tier, the business logic has full access to both View rows and Entity rows. This interface should not be implemented by a custom application.
RowImpl, 
EntityImpl, 
ViewRowImpl| Modifier and Type | Field and Description | 
|---|---|
| static int | EFFDT_DELETE_FUTURE_CHANGE_MODEWhen an effective dated row is deleted in "delete future change" mode, the
 end date of the row is set to the end of time and all the future rows for
 the same key values are deleted. | 
| static int | EFFDT_DELETE_MODEWhen an effective dated row is deleted in "delete" mode, the end date of
 the row is set to the row's effective date and all the future rows for the
 same key values are deleted. | 
| static int | EFFDT_DELETE_NEXT_CHANGE_MODEWhen an effective dated row is deleted in "delete next change" mode, the
 end date of the row is set to the end date of adjoining row and the
 adjoining row is deleted. | 
| static int | EFFDT_DELETE_THIS_CHANGE_MODEWhen an effective dated row is deleted in "delete this change" mode, the
 current row is removed. | 
| static int | EFFDT_DELETE_ZAP_MODEWhen an effective dated row is deleted in "zap" mode, all the effective
 dated rows with the same key values are deleted. | 
| static int | EFFDT_EXPERT_MODEIf the row is in a expert mode, the runtime will not carry out any 
 effective date specific logic for row modifications. | 
| static int | EFFDT_NONE_MODEDefault state of the effective date mode on the row. | 
| static int | EFFDT_UPDATE_CHANGE_INSERT_MODEWhen an effective dated row is updated in "change insert" mode, the 
 modified row is end dated on the effective date and a new row is inserted
 that fits between the effective date and the start date of the next row in
 the effective date time line. | 
| static int | EFFDT_UPDATE_CORRECTIONWhen an effective dated row is updated in "correction" mode, the effective
 start date and effective end date is left unchanged. | 
| static int | EFFDT_UPDATE_MODEWhen an effective dated row is updated in "update" mode, the modified row
 is end dated on the effective date and a new row is created with the
 changed values. | 
| static int | EFFDT_UPDATE_NEW_EARLIEST_CHANGE_MODEUpdating in "new earliest change" mode is supported only in Multiple
 Changes Per Day. | 
| static int | EFFDT_UPDATE_OVERRIDE_MODEWhen an effective dated row is updated in "override" mode, the modified
 row is end dated on the effective date and the start date of the next row
 in the effective date time line is set to effective date + 1 day. | 
| static int | REFRESH_CONTAINEESREFRESH_...constants are used as refresh mode
 flags to be passed into. | 
| static int | REFRESH_FORGET_NEW_ROWSREFRESH_...constants are used as refresh mode
 flags to be passed into. | 
| static int | REFRESH_REMOVE_NEW_ROWSREFRESH_...constants are used as refresh mode
 flags to be passed into. | 
| static int | REFRESH_UNDO_CHANGESREFRESH_...constants are used as refresh mode
 flags to be passed into. | 
| static int | REFRESH_WITH_DB_FORGET_CHANGESREFRESH_...constants are used as refresh mode
 flags to be passed into. | 
| static int | REFRESH_WITH_DB_ONLY_IF_UNCHANGEDREFRESH_...constants are used as refresh mode
 flags to be passed into. | 
| static byte | STATUS_INITIALIZEDIndicates that the row is newly created and no setAttribute has been called on it yet. | 
| static byte | STATUS_NEWIndicates that the Row is newly created and this Row's consistuent entities have been added to the transaction. | 
XML_IGNORE_DEPTH_COUNT, XML_OPT_ALL_ROWS, XML_OPT_ASSOC_CONSISTENT, XML_OPT_CHANGES_ONLY, XML_OPT_LIMIT_RANGE, XML_PASSIVATION_USE| Modifier and Type | Method and Description | 
|---|---|
| AttributeHints | getAttributeHints(int attrIndex)Returns the AttributeHints object for the specified attribute for the row. | 
| AttributeHints | getAttributeHints(java.lang.String attrName)Returns the AttributeHints object for the specified attribute for the row. | 
| SecurityHints | getAttributeSecurityHints(int attrIndex)Returns the SecurityHints object for the specified attribute for the row. | 
| SecurityHints | getAttributeSecurityHints(java.lang.String attrName)Returns the SecurityHints object for the specified attribute for the row. | 
| int | getEffectiveDateMode()Get the current effective date mode. | 
| Key | getKey()Returns the row's key. | 
| SecurityHints | getSecurityHints()Returns the SecurityHints object for the row. | 
| StructureDef | getStructureDef()Returns the structure of the row. | 
| boolean | isAttributeUpdateable(int index)Tests if an attribute is updateable. | 
| boolean | isDead()An attempt to access a dead view row will lead to a DeadViewRowAccessException. | 
| void | lock()Locks the row(s) in the database table. | 
| void | refresh(int refreshMode)Refreshes the row's attributes with values from database. | 
| void | remove()Removes the row from the database table. | 
| void | removeAndRetain()Removes the row from the collection and then retain it for insertion
 into another location. | 
| void | removeFromCollection()Removes the row from the collection. | 
| void | setAttributeValues(java.util.List names,
                  java.util.List values)Set attribute values for the given list of attributes names. | 
| void | setEffectiveDateMode(int mode)Set the Effective Date mode in which the row updates
 need to be carried out. | 
| void | setNewRowState(byte state)Sets a new unposted row, created in this transaction, to either STATUS_NEW or 
 STATUS_INITIALIZED mode. | 
| void | validate()Validates the row. | 
getAttribute, getAttribute, getAttributeCount, getAttributeIndexOf, getAttributeNames, getAttributeValues, setAttribute, setAttributestatic final byte STATUS_INITIALIZED
static final byte STATUS_NEW
static final int REFRESH_WITH_DB_FORGET_CHANGES
REFRESH_... constants are used as refresh mode
 flags to be passed into refresh(int)
 REFRESH_WITH_DB_FORGET_CHANGES forgets edits that
 the current user made to the row.  The row data is refreshed from
 database.  The latest data from database replaces data in the row
 regardless of whether the row was modified or not.
 
 If the current user had called 
 Transaction.postChanges()REFRESH_WITH_DB_FORGET_CHANGES will pick up the data
 that he himself wrote through his call to postChanges().
 
 If REFRESH_REMOVE_NEW_ROWS is not specified, 
 REFRESH_WITH_DB_FORGET_CHANGES puts a new row 
 back to blank.  If REFRESH_REMOVE_NEW_ROWS is
 specified, the new row is removed.
static final int REFRESH_WITH_DB_ONLY_IF_UNCHANGED
REFRESH_... constants are used as refresh mode
 flags to be passed into refresh(int)
 REFRESH_WITH_DB_ONLY_IF_UNCHANGED works just like
 REFRESH_WITH_DB_FORGET_CHANGES for unmodified rows,
 i.e., the row is refreshed with attribute values from the database.
 If a row was already modified by this transaction, the row is not
 refreshed.
 
If locking mode is pessimistic, the fact that you (this user) were able to change the data means that you were able to lock the row and that you got the latest data.
When using this refresh mode, if the locking mode is optimistic, the framework could bring the latest data for unmodified attributes and merge them into the row, while retaining changed attributes as is. However, this could lead to data integrity problems. Thus, for consistency sake and data integrity, we leave the row alone if it was modified even for optimistic locking mode.
 If REFRESH_REMOVE_NEW_ROWS is not specified, calling 
 refresh with this mode will be a no-op (treated just like a modified row).
 If REFRESH_REMOVE_NEW_ROWS is specified, the new row is removed.
static final int REFRESH_UNDO_CHANGES
REFRESH_... constants are used as refresh mode
 flags to be passed into refresh(int)
 REFRESH_UNDO_CHANGES works just like
 REFRESH_WITH_DB_FORGET_CHANGES for unmodified rows,
 i.e., the row is refreshed with attribute values from the database.
 
 For a modified row, this mode refreshes the row with attribute values
 at the beginning of this transaction.  This mode will back out
 changes that have been posted to database through postChanges(),
 but not yet committed.  Suppose a row's attribute value was modified
 from 'A' to 'B' and 'B' is posted.  Suppose further the user changes
 'B' to 'C' (after the post).  Calling refresh(int) with
 this mode will restore the attribute value to 'A'.
 
Out on database, the attribute value is still 'B'. However, the row is marked as modified, so that when the changes are posted later 'A' will replace 'B' out on database.
 If REFRESH_REMOVE_NEW_ROWS is not specified, 
 REFRESH_UNDO_CHANGES  puts a new row 
 back to blank.  If REFRESH_REMOVE_NEW_ROWS is
 specified, the new is removed.
static final int REFRESH_REMOVE_NEW_ROWS
REFRESH_... constants are used as refresh mode
 flags to be passed into refresh(int)
 REFRESH_REMOVE_NEW_ROWS is a bit-wise flag that can
 be OR'ed with other REFRESH_... constants.
 
 If REFRESH_REMOVE_NEW_ROWS is specified, 
 refresh(int) will remove new rows through a call to
 remove()
static final int REFRESH_FORGET_NEW_ROWS
REFRESH_... constants are used as refresh mode
 flags to be passed into refresh(int)
 REFRESH_FORGET_NEW_ROWS is a bit-wise flag that can
 be OR'ed with other REFRESH_... constants.
 
 If REFRESH_FORGET_NEW_ROWS is specified, 
 refresh(int) will remove new rows by marking it
 STATUS_DEAD.  The difference between this flag and
 REFRESH_REMOVE_NEW_ROWS is that this flag will not
 remove children entity rows.
static final int REFRESH_CONTAINEES
REFRESH_... constants are used as refresh mode
 flags to be passed into refresh(int)
 REFRESH_CONTAINEES is a bit-wise flag that can
 be OR'ed with other REFRESH_... constants.
 
 REFRESH_CONTAINEES causes an Entity row to call
 refresh(int) on its containees (children) with the
 same refresh mode (if this Entity row is a master is composition
 association).
static final int EFFDT_NONE_MODE
static final int EFFDT_EXPERT_MODE
static final int EFFDT_UPDATE_CORRECTION
static final int EFFDT_UPDATE_MODE
static final int EFFDT_UPDATE_OVERRIDE_MODE
static final int EFFDT_UPDATE_CHANGE_INSERT_MODE
static final int EFFDT_UPDATE_NEW_EARLIEST_CHANGE_MODE
static final int EFFDT_DELETE_MODE
static final int EFFDT_DELETE_THIS_CHANGE_MODE
static final int EFFDT_DELETE_NEXT_CHANGE_MODE
static final int EFFDT_DELETE_FUTURE_CHANGE_MODE
static final int EFFDT_DELETE_ZAP_MODE
Key getKey()
void validate()
ValidationException - if a validation error is
            detected.EntityImpl.validate(), 
ViewRowImpl.validate()void lock()
For a View row, this method calls lock() on each Entity row that makes up the View row.
RowNotFoundException - if the row to be
            locked no longer exists in the database table.
            The row was probably deleted by another transaction
            (and transaction committed).DeadEntityAccessException - if the row to
            locked is one that has already been deleted.TooManyObjectsException - to service the
            lock request, a SELECT statement is issued against
            the database table using this row's primary key value.
            Normally, only one row with matching primary key should
            be found in the database.  If more than one row with
            the given PK is found, this represents a data inconsistency
            problem in the table.  In that case, this exception is thrown.RowInconsistentException - after the row is locked in the
            database table, BC4J retrieves the latest data values from
            the table.  A check is made to see if the row had been
            changed by another transaction (and committed).  If so,
            this exception is thrown.AlreadyLockedException - if the row is already locked by
            another transaction.DMLException - if the SELECT statement to lock the row is
            not accepted by the DBMS.  Make sure that the statement
            generated for the Entity Object is correct.void remove()
 If this method is invoked on a View row or an Entity row, and if the
 current concurrency control mode is Transaction.LOCK_PESSIMISTIClock()
ReadOnlyViewObjectException - the View Object to which this
            row belongs is marked as read-only.  You cannot remove
            the row.void removeFromCollection()
 This method differs from remove()removeAndRetain()
void removeAndRetain()
 This method differs from remove()
 This method also differs from removeFromCollection()
void refresh(int refreshMode)
refreshMode should be a combination of REFRESH_....
 See REFRESH_... constants for further information.
 refreshMode - the refresh mode.void setNewRowState(byte state)
This method should be used to create a row and then to mark it temporary (STATUS_INITIALIZED) so that an app can use the created Row to fill UIs like Table UIs with valid default values for rows. Then when the Row values are updated, UIs should once again call this method to turn the Row into new (STATUS_NEW) state before any setAttribute calls on the Row, so that the changes are validated and posted.
When a created row is in STATUS_NEW (by default) state and this method is called to turn the row in to STATUS_INITIALIZED, all updateable entities that this row comprises of, de=registers themselves from their respective transaction and validation managers. Assocation and ViewLink finders will not find/include these rows. Only the collection into which this row was inserted into will contain a reference to this row and when that collection is re-executed this row cannot be reached via the framework. To include this row again an app should call this method again with STATUS_NEW as the method-argument
When this row is in STATUS_INITIALIZED state and this method is called with STATUS_NEW state then, this new row is added back into it's relevant transaction and validation manager and will then participate in validation, transaction cycles.
Note that incase of composition if a master/detail hierarchy is being created with the intention of making them temporary (STATUS_INITIALIZED) then the logic should be: Create Master row, insert Master row into a collection, create Detail row insert detail row into a relevant collection, make detail row initialized, create/insert/change-to-initialized more detail rows and at the end set the master row as initialized.
state - This could be STATUS_NEW or STATUS_INITIALIZED.boolean isAttributeUpdateable(int index)
false if the attribute is read-only and true
 if it is updateable.
 The following logic is used for determining if the attribute is updateable. If this attribute for a View row and is one which is mapped to an Entity Attribute, and if the Entity base is marked as read-only in the View Object, the attribute is read-only.
If the Entity base is marked updateable, a check is made to see if the the current user has updateable privilege on the underlying Entity row. If not, the attribute is read-only.
 After this, we check the View Object's Attribute Definition.
 If the Attribute Definition indicates that it is READONLY, this
 method returns false (read-only).  If the Attribute
 Definition says UPDATEABLE, it drops to the Entity level
 to determine if the Entity level Attribute Definition says it is
 updateable.  If the attribute is UPDATEABLE_WHILE_NEW
 We check to see if the 'row' is new or not.  (If this attribute comes
 from an Entity Row, the 'row' is the Entity Row.  Otherwise, the 'row'
 is the View Row.)  If the row is new, the attribute is updateable.
 
index - the index of the attribute.true if the attribute is updateable in this row.
         false if not.boolean isDead()
true if the row is dead.AttributeHints getAttributeHints(java.lang.String attrName)
attrName - the name of the attribute.AttributeHints getAttributeHints(int attrIndex)
attrIndex - the index of the attribute.StructureDef getStructureDef()
void setAttributeValues(java.util.List names,
                      java.util.List values)
void setEffectiveDateMode(int mode)
mode - One of the effective date mode constants.EFFDT_NONE_MODE, 
EFFDT_UPDATE_CORRECTION, 
EFFDT_UPDATE_MODE, 
EFFDT_UPDATE_OVERRIDE_MODE, 
EFFDT_UPDATE_CHANGE_INSERT_MODE, 
EFFDT_UPDATE_NEW_EARLIEST_CHANGE_MODE, 
EFFDT_DELETE_MODE, 
EFFDT_DELETE_THIS_CHANGE_MODE, 
EFFDT_DELETE_NEXT_CHANGE_MODE, 
EFFDT_DELETE_FUTURE_CHANGE_MODE, 
EFFDT_DELETE_ZAP_MODEint getEffectiveDateMode()
setEffectiveDateMode(int)SecurityHints getAttributeSecurityHints(java.lang.String attrName)
attrName - the name of the attribute.SecurityHints getAttributeSecurityHints(int attrIndex)
attrIndex - the index of the attribute.SecurityHints getSecurityHints()