| Package | com.ericfeminella.net |
| Interface | public interface IManagedPersistence |
| Implementors | LocalPersistence |
| Method | Defined by | ||
|---|---|---|---|
|
deletePersistedProperties():Boolean
Deletes all properties from the persisted object, but not
the persisted object itself
| IManagedPersistence | ||
|
deletePersistedProperty(propertyName:String):Boolean
Deletes a specified property from the persisted object
| IManagedPersistence | ||
|
destroy():void
Destroys the current persisted object
| IManagedPersistence | ||
|
getData():Object
Returns the data object of the persisted object.
| IManagedPersistence | ||
|
getIdentifier():String
Returns the name of the persisted object.
| IManagedPersistence | ||
|
getPersistedProperties():Array
Returns an array of all properties in the persisted object
| IManagedPersistence | ||
|
getPersistedProperty(propertyName:String):*
Returns the value of a user defined persisted property
| IManagedPersistence | ||
|
getSize():int
Returns the size of the persisted object.
| IManagedPersistence | ||
|
setPersistedProperty(propertyName:String, value:* = null):void
Sets the value of a user defined persisted property
| IManagedPersistence | ||
|
write(minDiskSpace:int = 1000):Boolean
Explicitly writes the persisted object to disk
| IManagedPersistence | ||
| deletePersistedProperties | () | method |
public function deletePersistedProperties():BooleanDeletes all properties from the persisted object, but not the persisted object itself
ReturnsBoolean — true if the properties have successfully been deleted
|
| deletePersistedProperty | () | method |
public function deletePersistedProperty(propertyName:String):BooleanDeletes a specified property from the persisted object
ParameterspropertyName:String — name of the property to delete
|
Boolean |
| destroy | () | method |
public function destroy():voidDestroys the current persisted object
| getData | () | method |
public function getData():ObjectReturns the data object of the persisted object. The data object is typically a property of SharedObject and is used to maintain persisted data either locally or remotely
ReturnsObject — the persisted object as a generic object
|
| getIdentifier | () | method |
public function getIdentifier():StringReturns the name of the persisted object.
ReturnsString — the name of the persisted object
|
| getPersistedProperties | () | method |
public function getPersistedProperties():ArrayReturns an array of all properties in the persisted object
ReturnsArray — an array of all persisted properties
|
| getPersistedProperty | () | method |
public function getPersistedProperty(propertyName:String):*Returns the value of a user defined persisted property
ParameterspropertyName:String |
* — the value of the property
|
| getSize | () | method |
public function getSize():intReturns the size of the persisted object.
Returnsint — the persisted object size
|
| setPersistedProperty | () | method |
public function setPersistedProperty(propertyName:String, value:* = null):voidSets the value of a user defined persisted property
ParameterspropertyName:String — name of the property to be persisted
|
|
value:* (default = null) — value of the property to be persisted
|
| write | () | method |
public function write(minDiskSpace:int = 1000):BooleanExplicitly writes the persisted object to disk
ParametersminDiskSpace:int (default = 1000) — the minimum amount of disc space allocated to the persisted object
|
Boolean — true if the write operation was successful, false if not
|