Class org.omus.data.Property

Description

Classe de base des propriétés persistantes.

Field Index

OFF, SERVER_CACHE, SYNCHRONIZE_CLIENT, SYNCHRONIZE_GROUP

Method Index

new Property()
getName(), getPropertySet(), getType(), getValue(), isLoaded(), isModified(), loadTemp(), reset(), setModified(), setPropertySet(), setValue(), toLog(), toString(), unload(), update()

Constructor Detail

Property

public function Property(nm:String, tp:String, cl:Object, ch:Array, vl:Object)

TODO

Parameters

nmNom de la propriété.
tpType attaché à la propriété.
clClasse.
chListe du cache.
vlValeur de la propriété.

Field Detail

OFF

static public OFF:Number
Constante

SERVER_CACHE

static public SERVER_CACHE:Number
Constante

SYNCHRONIZE_CLIENT

static public SYNCHRONIZE_CLIENT:Number
Constante

SYNCHRONIZE_GROUP

static public SYNCHRONIZE_GROUP:Number
Constante

Method Detail

toString

public function toString():String

Utilisé dans un contexte littéral

Return

Une chaine définissant l'objet

getPropertySet

public function getPropertySet():PropertySet

Renvoie le set de propriétés.

Return

Une référence au groupe de propriétés.

getName

public function getName():String

Renvoie le nom.

Return

Un nom de propriété persistante.

getValue

public function getValue():Object

Renvoie la valeur de la propriété persistante.

Return

La valeur de la prorpiété.

getType

public function getType():Object

Renvoie le type de la propriété.

Return

Un type connu.

isModified

public function isModified():Boolean

Permet de savoir si la propriété a été modifiée.

Return

true si elle a été modifiée.

isLoaded

public function isLoaded():Object

Permet de savoir si la valeur de la propriété est chargée correctement.

Return

La valeur sinon null.

setValue

public function setValue(newVal:Object):Void

Modifie la valeur d'une propriété.

Parameters

newValUne nouvelle valeur.

setModified

public function setModified():Void

Appelé par un objet Table non synchronisé. called by table objects that are not synchronized

See Also

loadTemp

public function loadTemp(newVal:Object):Void

Modifie une valeur de propriété avant synchronisation.

Parameters

newValNouvelle valeur.

update

public function update(newVal:Object, clientReq:Boolean):Void

Met à jour la propriétés après synchronisation.

Parameters

newValNouvelle valeur.
clientReqtrue si la demande provient du poste client.

unload

public function unload():Void

Vide le contenu de la propriété.

reset

public function reset():Void

Annule la modification d'un propriété. Utile lors d'un échec de synchronisation.

setPropertySet

public function setPropertySet(ps:PropertySet):Void

TODO called by PropertySet#addProperty

Parameters

psRéférence au jeu de propriétés.

See Also

toLog

static public function toLog():String

Utilisé dans un contexte littéral

Return

Une chaine définissant l'objet