|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.dataobjects.BaseDataObject
A base class that provides some functionality for all Data Objects
| Field Summary | |
protected String |
currentStatus
Default constructed status |
protected org.apache.oro.text.regex.Pattern |
globalMask
|
| Fields inherited from interface com.jcorporate.expresso.core.dataobjects.DataObject |
STATUS_CURRENT, STATUS_DELETED, STATUS_NEW, STATUS_UPDATED |
| Constructor Summary | |
BaseDataObject()
|
|
| Method Summary | |
org.apache.oro.text.regex.Pattern |
getGlobalMask()
Get the compiled regular expression for this base data object. |
String |
getStatus()
Get the status of this record. |
boolean |
isGlobalMasked()
Return boolean if the data object has a mask set |
void |
setFieldsWithDefaults()
Sets the fields of this object with the default values defined in the metadata. The behavior of this function is such that it only populates fields if there is no current value set. This is the same behavior that existed previously in DefaultAutoElement. |
void |
setGlobalMask(org.apache.oro.text.regex.Pattern newMask)
Set a regular expression "mask" for this base data object that specifies it's valid values. |
void |
setStatus(String newStatus)
Set the current status of a record |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.jcorporate.expresso.core.dataobjects.DataObject |
add, checkField, clear, count, delete, equals, find, get, getAllAttributes, getAttribute, getDataField, getExecutor, getField, getFieldMetaData, getLocale, getMappedDataContext, getMaxRecords, getMetaData, getOffsetRecord, getQueryInterface, getValidValuesList, searchAndRetrieveList, searchAndRetrieveList, set, setAttribute, setLocale, setMaxRecords, setOffsetRecord, update |
| Methods inherited from interface com.jcorporate.expresso.core.cache.Cacheable |
getKey |
| Methods inherited from interface com.jcorporate.expresso.core.dataobjects.ContextNested |
getDataContext, setDataContext |
| Field Detail |
protected String currentStatus
protected org.apache.oro.text.regex.Pattern globalMask
| Constructor Detail |
public BaseDataObject()
| Method Detail |
public void setStatus(String newStatus)
setStatus in interface DataObjectnewStatus - NEW: Record is new
CURRENT: Record is synchronized with the database
DELETED: Record has been deleted
UPDATED: Record has been updated since it was last written to the database
public String getStatus()
getStatus in interface DataObjectpublic void setGlobalMask(org.apache.oro.text.regex.Pattern newMask)
setGlobalMask in interface DataObjectnewMask - The compiled regular expression mask
author Yves Henri AMAIZO public org.apache.oro.text.regex.Pattern getGlobalMask()
getGlobalMask in interface DataObjectpublic boolean isGlobalMasked()
isGlobalMasked in interface DataObject
public void setFieldsWithDefaults()
throws DataException
setFieldsWithDefaults in interface DataObjectDataException - upon setField error.
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||