|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openware.job.data.Persist
The abstract super class for all persistent objects. Every generated persistent object subclasses this abstract class.
Field Summary | |
protected PersistentManager |
pmanager
|
protected java.lang.String |
subclassName
|
Constructor Summary | |
protected |
Persist()
|
protected |
Persist(PersistentManager manager,
boolean isSuperClass)
|
Method Summary | |
abstract boolean |
equals(java.lang.Object obj)
Determines whether 2 persist objects are the same. |
abstract java.lang.String |
getAsString(java.lang.String colname)
Get the value for the field as a String type. |
abstract DataShell |
getDataShell()
Get the underlying data shell object. |
abstract boolean |
getIsInvalid()
Returns true if the persist object is
invalid, false if it is valid. |
abstract Oid |
getOid()
Get the object identifier for this object. |
PersistentManager |
getPersistentManager()
Get the persistent manager that this persist object belongs to. |
protected void |
init(PersistentManager pmanager,
TableRow data,
Oid oid)
|
void |
makeInvalid()
Make the persist object invalid. |
void |
makeValid()
Make the persist object valid. |
abstract boolean |
rawUpdate()
Do a raw update on the persist object. |
void |
remove()
Set the persist object for removal with the next call to PersistentManager.save(). |
abstract void |
setAsString(java.lang.String colname,
java.lang.String value)
Set the value for the field. |
abstract void |
setRawUpdate(IRawUpdate update)
Set the raw update method for this persist object. |
java.lang.String |
toHtmlPropName(java.lang.String propname)
|
abstract void |
validate(java.lang.String colname)
Call type specific validation for the column with the given name. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String subclassName
protected PersistentManager pmanager
Constructor Detail |
protected Persist()
protected Persist(PersistentManager manager, boolean isSuperClass)
Method Detail |
protected void init(PersistentManager pmanager, TableRow data, Oid oid) throws PersistException
public void makeInvalid() throws PersistException
NOTE: One possible "change" is creating a new
object. In other words if you create a subclass of
persist and then make it invalid it will not be saved
to the database (by calling PersistentManager.save())
until you make it valid again with a call to makeValid
public void makeValid() throws PersistException
public abstract boolean getIsInvalid() throws PersistException
true
if the persist object is
invalid, false
if it is valid.public abstract void validate(java.lang.String colname) throws PersistException
String
it is possible that certain fields will
contain invalid data, such as non numeric characters for some
sort of number field.colname
- The name of the field to validate.PersistException
- if the field is not valid.public abstract Oid getOid()
public abstract DataShell getDataShell() throws PersistException
Each persist object actually contains a shell that contains the data. Use this method to get that object.
public abstract java.lang.String getAsString(java.lang.String colname) throws PersistException
String
type.public abstract void setAsString(java.lang.String colname, java.lang.String value) throws PersistException
public abstract void setRawUpdate(IRawUpdate update) throws PersistException
public abstract boolean rawUpdate() throws PersistException
true
if the persist was updated, false
otherwise.public abstract boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void remove() throws PersistException
public PersistentManager getPersistentManager()
public java.lang.String toHtmlPropName(java.lang.String propname)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |