| java.lang.Object org.julp.AbstractDomainObject
All known Subclasses: org.julp.examples.Invoice, org.julp.examples.Customer, org.julp.examples.Item, org.julp.examples.Spreadsheet, org.julp.examples.Product,
AbstractDomainObject | abstract public class AbstractDomainObject implements DomainObject,java.io.Serializable,Cloneable(Code) | | Normally to make your object able to persist you need to extend this object
If you can't or don't want to extend, just make your class
implement org.julp.DomainObject interface and copy and paste members
and methods from org.julp.AbstractDomainObject into your class.
|
EMPTY_READ_ARG | protected static Object[] EMPTY_READ_ARG(Code) | | |
displayValues | protected Map displayValues(Code) | | |
domainFactoryId | protected long domainFactoryId(Code) | | |
loaded | protected boolean loaded(Code) | | |
loading | protected boolean loading(Code) | | |
modified | protected boolean modified(Code) | | |
objectId | protected int objectId(Code) | | |
persistentState | protected char persistentState(Code) | | |
create | public boolean create()(Code) | | |
getDomainFactoryId | public long getDomainFactoryId()(Code) | | |
getObjectId | public int getObjectId()(Code) | | Getter for property objectId.
Value of property objectId. |
getPersistentState | public char getPersistentState()(Code) | | |
getValuesAsHtml | public java.lang.String getValuesAsHtml()(Code) | | This is convinient method to use with JSP.
Make sure not to call this method from another method
of this object (or subclass) started with "get",
or you will get endless loop
|
isLoaded | public boolean isLoaded()(Code) | | Getter for property loaded.
Value of property loaded. |
isLoading | public boolean isLoading()(Code) | | Indicator that this object in proccess of loading with values from database
|
isModified | public boolean isModified()(Code) | | Indicator that this object is modified. You have to call it yourself
|
load | public boolean load()(Code) | | |
remove | public boolean remove()(Code) | | |
setDisplayValue | public void setDisplayValue(String field, Object displayValue)(Code) | | Display value for given field. Example:
field value is "123" but display must be "XYZ"
|
setDomainFactoryId | public void setDomainFactoryId(long domainFactoryId)(Code) | | |
setLoaded | public void setLoaded(boolean loaded)(Code) | | Setter for property loaded.
Parameters: loaded - New value of property loaded. |
setLoading | public void setLoading(boolean loading)(Code) | | |
setModified | public void setModified(boolean modified)(Code) | | |
setObjectId | public void setObjectId(int objectId)(Code) | | Every time DomainObjectFactory is loaded this object it assigned objectId
which is valid only for the same DomainObjectFactory (see domainFactoryId)
if DomainObject's objectId used with other DomainObjectFactory it gets new objectId
when used with DomainObjectFactory.[setObject(...), load(), create(), store(), remove()
|
setPersistentState | public void setPersistentState(char persistentState)(Code) | | |
store | public boolean store()(Code) | | |
syncOriginal | public boolean syncOriginal()(Code) | | |
|
|