Method Summary |
|
public synchronized void | add() Adds the record to the defined data source. |
public synchronized void | checkField(String fieldName, String fieldValue) Check that a given value is valid for a given field.
This method is overriden by specific DBObjects to do their own field-level
validations - they should also call super in order to do the
standard stuff. |
public synchronized void | clear() |
public synchronized int | count() Just like find, but only retrieves the count, not the records themselves. |
public synchronized void | delete() Deletes this defined record. |
public synchronized boolean | equals(Object otherObject) Checks to see if two data objects are equal. |
public synchronized boolean | find() |
public synchronized Object | get(String fieldName) Retrieve the native object type for the given field name. |
public synchronized Map | getAllAttributes() Returns a Read Only Map containing all the current attributes set
for this particular data object instance. |
public synchronized Object | getAttribute(String attributeName) Return an "attribute". |
public synchronized String | getDataContext() |
public synchronized DataField | getDataField(String fieldName) |
public synchronized DataExecutorInterface | getExecutor() |
public synchronized String | getField(String fieldName) |
public synchronized Iterator | getFieldListIterator() Returna a list of all field names available to this class in order. |
public synchronized DataFieldMetaData | getFieldMetaData(String fieldName) Retrieves the metadata for a particular field name
Parameters: fieldName - The name of the field to retrieve the metadata for. |
public Pattern | getGlobalMask() Get the compiled regular expression for this base data object. |
public String | getKey() |
public synchronized Iterator | getKeyFieldListIterator() |
public synchronized java.util.Locale | getLocale() |
public synchronized String | getMappedDataContext() Returns the name of the physical database that we're talking with. |
public synchronized int | getMaxRecords() A DB Object can be told to only retrieve a certain number of records. |
public synchronized DataObjectMetaData | getMetaData() Retrieve the database object's metadata. |
public synchronized int | getOffsetRecord() Gets the number of records that be skipped. |
public synchronized DataQueryInterface | getQueryInterface() |
public synchronized String | getStatus() Retrieve the status code of the dataobject. |
public synchronized java.util.List | getValidValuesList(String fieldName) Retrieve a list of valid value object for this particular dbobject
Parameters: fieldName - name of the field to retrieve the list for. |
public int | hashCode() Returns a hash code value for the object. |
public boolean | isGlobalMasked() |
public static synchronized DataObject | newInstance(DataObject wrappedObject) Call this to wrap your data object in a threadsafe wrapper.
Parameters: wrappedObject - the object to wrap. |
public ArrayList | searchAndRetrieveList(String sortOrder) Performs a datasource search so that the criteria set in the DataObject
is used.
Note: This particular implementation, to be threadsafe, returns a new
array instance, so it is particularly slow and memory intensive. |
public ArrayList | searchAndRetrieveList() Performs a datasource search so that the criteria set in the DataObject
is used. |
public synchronized void | set(String fieldName, Object o) |
public synchronized void | setAttribute(String attributeName, Object attributeValue) Set an attribute. |
public synchronized void | setDataContext(String newContext) Sets the data context that this object is residing in. |
public synchronized void | setFieldsWithDefaults() |
public void | setGlobalMask(Pattern newMask) Set a regular expression "mask" for this base data object that specifies it's
valid values. |
public synchronized void | setLocale(java.util.Locale newLocale) |
public synchronized void | setMaxRecords(int newMax) Specify a maximum number of records to be retrieved in any subsequent
searchAndRetrieve() call. |
public synchronized void | setOffsetRecord(int newOffset) Specifies the number of records that should be skipped over
before any data from the ResultSet
is retrieved in any subsequent
searchAndRetrieve() call. |
public synchronized void | setStatus(String statusValue) Sets the status of the object. |
public synchronized void | update() |