public class JboNamedData extends PropertyNameValueDef implements DefPersistable
NULL_VALUE
FLAG_DIRTY, FLAG_EDITABLE, FLAG_FROM_TIP, FLAG_LOAD_BASE, FLAG_LOAD_HL_DEFS, FLAG_MAJOR_VERSION_CHANGED, FLAG_MINOR_VERSION_CHANGED, FLAG_NEW, FLAG_NEW_RECURSE, FLAG_SKIP_WRITE, XML_STATEMENT
Constructor and Description |
---|
JboNamedData() |
JboNamedData(JboNamedData other) |
JboNamedData(java.lang.String name,
java.lang.String type,
java.lang.Object value) |
JboNamedData(java.lang.String name,
java.lang.String type,
java.lang.Object value,
boolean saveNullValue) |
JboNamedData(java.lang.String name,
java.lang.String type,
java.lang.Object value,
boolean saveNullValue,
int paramOption) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFullName()
This method returns the Persistence reference of the object.
|
int |
getOption()
Advanced : For internal use only
|
DefPersistable |
getOrigObject() |
boolean |
isDirty()
This method returns if an Object is modified from last save/load
|
boolean |
isNew()
This method returns if this object is previously persisted.
|
boolean |
isNewRecurse() |
boolean |
isSkipWrite() |
boolean |
isWriteObject(DefPersistable parentObj,
DefWriter defWriter) |
void |
setDirty(boolean b)
This method marks the Object dirty
|
void |
setNew(boolean b)
This method marks the as previously persisted.
|
void |
setNewRecurse(boolean b) |
void |
setOrigObject(DefPersistable oldObj) |
void |
setSkipWrite(boolean b) |
void |
writeChildren(DefWriter jos)
Writes the Object's children to the Persistent storage
|
void |
writeContents(DefWriter jos)
Objects should write their persistence output in this method
|
void |
writeObject(DefWriter jos)
Objects should write their persistence output in this method
|
clone, convertToText, convertToVector, copy, getColumnList, getDefXMLElementTag, getDefXMLNameSpace, getIdentificationAttributeName, getName, getType, getTypedValue, getTypeName, getValue, getXMLElementTag, loadFromXMLFile, setBeanProperty, setName, setType, setValue
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefXMLElementTag, getDefXMLNameSpace, getIdentificationAttributeName, getXMLElementTag
public JboNamedData()
@Restricted public JboNamedData(java.lang.String name, java.lang.String type, java.lang.Object value)
public JboNamedData(java.lang.String name, java.lang.String type, java.lang.Object value, boolean saveNullValue)
public JboNamedData(java.lang.String name, java.lang.String type, java.lang.Object value, boolean saveNullValue, int paramOption)
public JboNamedData(JboNamedData other)
public boolean isDirty()
isDirty
in interface DefPersistable
public void setDirty(boolean b)
setDirty
in interface DefPersistable
isDirty
- If true the Object is marked Dirty.public boolean isNew()
isNew
in interface DefPersistable
public void setNew(boolean b)
setNew
in interface DefPersistable
isNew
- If true the Object is marked as new object.public boolean isNewRecurse()
isNewRecurse
in interface DefPersistable
public void setNewRecurse(boolean b)
setNewRecurse
in interface DefPersistable
public boolean isSkipWrite()
isSkipWrite
in interface DefPersistable
public void setSkipWrite(boolean b)
setSkipWrite
in interface DefPersistable
public boolean isWriteObject(DefPersistable parentObj, DefWriter defWriter)
isWriteObject
in interface DefPersistable
public DefPersistable getOrigObject()
getOrigObject
in interface DefPersistable
public void setOrigObject(DefPersistable oldObj)
setOrigObject
in interface DefPersistable
public java.lang.String getFullName()
getFullName
in interface DefPersistable
getFullName
in class PropertyNameValueDef
public int getOption()
public void writeObject(DefWriter jos) throws DefPersistenceException
writeObject
in interface PersistentDefinition
jos
- the Output storage for persistenceDefPersistenceException
public void writeContents(DefWriter jos) throws DefPersistenceException
writeContents
in interface PersistentDefinition
jos
- the Output storage for persistenceDefPersistenceException
public void writeChildren(DefWriter jos) throws DefPersistenceException
writeChildren
in interface PersistentDefinition
jos
- the Output storage for persistencejava.lang.Error
- in writing the Object's Children to the storageDefPersistenceException