LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.peer.util
Class LyRowObject

java.lang.Object
  extended by leon.peer.util.LyRowObject
Direct Known Subclasses:
LyXmlObject

public class LyRowObject
extends java.lang.Object

This class implements instances of LyTableClass. Its main work is to offer a storage for the values and the object id of this instance.


Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LyRowObject()
          Constructs a new object.
LyRowObject(LyTableClass tableClass)
          Constructs a new object for the given class.
LyRowObject(LyTableClass tableClass, LyValueSet values)
          Constructs a new object for the given class with the specified list of values.
LyRowObject(LyTableClass tableClass, java.lang.Object[] values)
          Constructs a new object for the given class with the specified values.
 
Method Summary
 void cancel()
          Cancels current modifications on this object (i.e. delete new values).
 void finalize()
          Finalizes peer object.
 LyValueSet getNewValues()
          Gets new values set on this object.
 LyObjectId getObjectId()
          Gets object id of this instance.
 LyTableClass getTableClass()
          Gets table class to which this object belongs to.
 java.lang.Object getValue(LyColumnField columnField)
          Gets value for the specified column field.
 LyValueSet getValues()
          Gets all values of this object.
 void setTableClass(LyTableClass tableClass)
          Sets table class to which this object belongs to.
 void setValue(LyColumnField columnField, java.lang.Object value)
          Sets value of the specified column field.
 void unload(LyColumnField columnField)
          Force the value for the specified field to be reload the next time it will be accessed.
 LyValueSet validate(LyValueSet values)
          To validate the new values and add extra new values.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyRowObject

public LyRowObject()
Constructs a new object.


LyRowObject

public LyRowObject(LyTableClass tableClass)
Constructs a new object for the given class.

Parameters:
tableClass - Table class to which this object belongs to.

LyRowObject

public LyRowObject(LyTableClass tableClass,
                   LyValueSet values)
Constructs a new object for the given class with the specified list of values.

Parameters:
tableClass - Table class to which this object belongs to.
values - List of values of the new instance.

LyRowObject

public LyRowObject(LyTableClass tableClass,
                   java.lang.Object[] values)
Constructs a new object for the given class with the specified values.

Parameters:
tableClass - Table class to which this object belongs to.
values - Values of the new instance.
Method Detail

finalize

public void finalize()
Finalizes peer object.

Overrides:
finalize in class java.lang.Object

getObjectId

public LyObjectId getObjectId()
Gets object id of this instance.

Returns:
Object identifier of thsi instance.

getTableClass

public LyTableClass getTableClass()
Gets table class to which this object belongs to.

Returns:
Table class of this object.

setTableClass

public void setTableClass(LyTableClass tableClass)
Sets table class to which this object belongs to.

Parameters:
tableClass - Table class of this object.

getValue

public java.lang.Object getValue(LyColumnField columnField)
Gets value for the specified column field.

Parameters:
columnField - Column field for which a value is set on this object.
Returns:
Value corresponding to this field.

setValue

public void setValue(LyColumnField columnField,
                     java.lang.Object value)
Sets value of the specified column field.

Parameters:
columnField - Column field for which a value is set on this object.
value - Value corresponding to this field.

getValues

public LyValueSet getValues()
Gets all values of this object.

Returns:
Values set corresponding to all column fields for this object.

getNewValues

public LyValueSet getNewValues()
Gets new values set on this object. Values set by the setValue method but not yet commited by validate.

See Also:
setValue(leon.peer.util.LyColumnField, java.lang.Object), validate(leon.data.LyValueSet)

validate

public LyValueSet validate(LyValueSet values)
To validate the new values and add extra new values. This call commits all changes made on this object through setValue method and set the extra given values.

Parameters:
values - Extra values set on this object.
Returns:
Previous values for changed fields.

cancel

public void cancel()
Cancels current modifications on this object (i.e. delete new values).


unload

public void unload(LyColumnField columnField)
Force the value for the specified field to be reload the next time it will be accessed.

Parameters:
columnField - The field for the value to be unloaded.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com