LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.peer.util
Class LyTableClass

java.lang.Object
  extended by leon.peer.LyPeerClass
      extended by leon.peer.util.LyTableClass
All Implemented Interfaces:
LyClass
Direct Known Subclasses:
LyXmlClass

public class LyTableClass
extends LyPeerClass

This class is a simple peer class implementation that uses LyRowObject as wrapper for instances.

See Also:
LyRowObject

Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from class leon.peer.LyPeerClass
VALUE_NOT_LOADED
 
Constructor Summary
LyTableClass()
          Constructs a table class.
 
Method Summary
 LyValueSet copy(java.lang.Object object1, java.lang.Object object2)
          Copies all field values of an instance of this class on another instance.
 LyValueSet getValues(java.lang.Object object)
          Gets all field values from an "instance" of this class.
 java.lang.Object newInstance()
          Creates a new instance of this class : creates a LyRowObject.
 void rehash(java.lang.Object object)
          Recompute the object id of the specified object.
 LyValueSet validate(java.lang.Object object, LyValueSet values)
          To validate the new values (already known) and add new extra values.
 
Methods inherited from class leon.peer.LyPeerClass
addField, addIdField, dump, getDataSource, getField, getField, getFieldCount, getFields, getId, getIdFields, getIndex, getName, getObjectClass, getObjectId, getObjectIdNoCache, getValue, removeField, setDataSource, setId, setName, setValue, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__VERSION

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

LyTableClass

public LyTableClass()
Constructs a table class.

Method Detail

validate

public LyValueSet validate(java.lang.Object object,
                           LyValueSet values)
To validate the new values (already known) and add new extra values.

Overrides:
validate in class LyPeerClass
Parameters:
object - Instance of this class. This object is an instance of LyRowObject.
values - Validated values.
Returns:
A values set containing values that
See Also:
LyRowObject.validate(leon.data.LyValueSet)

getValues

public LyValueSet getValues(java.lang.Object object)
Gets all field values from an "instance" of this class.

Specified by:
getValues in interface LyClass
Overrides:
getValues in class LyPeerClass
Parameters:
object - Instance of this class. This object is an instance of LyRowObject.
Returns:
All the field values of the given instance.
See Also:
LyRowObject.getValues()

newInstance

public java.lang.Object newInstance()
                             throws java.lang.InstantiationException,
                                    java.lang.IllegalAccessException
Creates a new instance of this class : creates a LyRowObject.

Returns:
New instance of this class.
Throws:
java.lang.InstantiationException - If an application tries to instantiate an abstract class or an interface, or if the instantiation fails for some other reason.
java.lang.IllegalAccessException - If the class or initializer is not accessible.
See Also:
LyRowObject.LyRowObject(LyTableClass)

rehash

public void rehash(java.lang.Object object)
Recompute the object id of the specified object.

Parameters:
object - object to rehash

copy

public LyValueSet copy(java.lang.Object object1,
                       java.lang.Object object2)
Copies all field values of an instance of this class on another instance.

Specified by:
copy in interface LyClass
Overrides:
copy in class LyPeerClass
Parameters:
object1 - Object on which values are copied.
object2 - Object from which values are get.
Returns:
Field values that are copied from object2 to object1.

(c) January 2013 - W4 S.A.

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