68 public function delete();
99 public function reset();
171 public function setValue($name, $value, $forceSet=false, $trackChange=true);
290 public function dump();
getOriginalValue($name)
Get the original of an attribute provided to the initialize method.
mergeValues(PersistentObject $object)
Copy all values, that don't exist yet from a given instance (ChangeListeners are not triggered)
removeValue($name)
Remove an attribute.
getType()
Get the type of the object.
getDisplayValue()
Get the value of the object used for display.
reset()
Reset all values to their original values.
clearValues()
Clear all values.
getValueNames($excludeTransient=false)
Get the names of all attributes.
afterCreate()
This method is called once after creation of this object.
getOID()
Get the object id of the PersistentObject.
setProperty($name, $value)
Set the value of a named property in the object.
Persistence layer related interfaces and classes.
getChangedValues()
Get the list of changed attributes since creation, loading.
getIndispensableObjects()
Get the list of objects that must exist in the store, before this object may be persisted.
setState($state)
Set the state of the object to one of the STATE constants.
getMapper()
Get the PersistenceMapper of the object.
validateValues()
Validate all values by calling PersistentObject::validateValue() Throws a ValidationException in case...
setValue($name, $value, $forceSet=false, $trackChange=true)
Set the value of an attribute if it exists.
beforeDelete()
This method is called once before deleting the object from the store.
afterDelete()
This method is called once after deleting the object from the store.
getValue($name)
Get the value of an attribute.
ObjectId is the unique identifier of an object.
beforeInsert()
This method is called once before inserting the newly created object into the store.
getValueProperty($name, $property)
Get the value of one property of an attribute.
hasValue($name)
Check if the object has a given attribute.
validateValue($name, $value)
Check if data may be set.
__clone()
Get a copy of the object (ChangeListeners and Lock are not copied)
afterInsert()
This method is called once after inserting the newly created object into the store.
beforeUpdate()
This method is called always before updating the modified object in the store.
copyValues(PersistentObject $object, $copyPkValues=true)
Copy all non-empty values to a given instance (ChangeListeners are triggered)
setValueProperty($name, $property, $value)
Set the value of one property of an attribute.
setOID(ObjectId $oid)
Set the object id of the PersistentObject.
getPropertyNames()
Get the names of all properties in the object.
PersistentObject defines the interface of all persistent objects.
afterLoad()
This method is called always after loading the object from the store.
getState()
Get the object's state:
dump()
Get a string representation of the values of the PersistentObject.
getProperty($name)
Get the value of a named property in the object.
getValuePropertyNames($name)
Get the names of all properties of a value in the object.
afterUpdate()
This method is called always after updating the modified object in the store.