|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.peer.union.LyUnionClass
public class LyUnionClass
This class is a simple peer class implementation that uses LyUnionObject as wrapper for instances.
LyUnionObject
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LyUnionClass(LyUnionBinding unionBinding,
LyClassInfo classInfo)
Constructs a table class. |
Method Summary | |
---|---|
void |
addIdField(LyField field)
Registers a peer field as an id field on this class. |
void |
clearTemporaryObjects()
Clears the content of the vector of temporary object used by this class. |
LyValueSet |
copy(java.lang.Object target,
java.lang.Object pattern)
Copies all field values of an instance of this class on another instance. |
LyClass |
getClass1()
Accessor to the first class of the union |
LyClass |
getClass2()
Accessor to the second class of the union |
LyDataSource |
getDataSource()
Gets the data source that manages all instances of this class. |
LyField |
getField(java.lang.String id)
Retrieves a field on this class by its identifier. |
java.util.Vector<LyField> |
getFields()
Gets the list of fields of this class. |
java.lang.String |
getId()
Gets identifier of the class. |
java.util.Vector<LyField> |
getIdFields()
Gets the list of fields that identifies instances of this class. |
java.lang.String |
getName()
Gets name of the class. |
java.lang.Class<?> |
getObjectClass()
Gets the physical representation of the instances : java class that really holds instances of this class. |
LyObjectId |
getObjectId(java.lang.Object object)
Gets identifier for an instance of this class. |
LyUnionBinding |
getUnionBinding()
Gets the associated union binding |
java.lang.Object |
getValue(java.lang.Object object,
LyField field)
Gets the value corresponding to the given field for an instance of this class. |
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. |
void |
rehash(java.lang.Object object)
Recompute the object id of the specified object. |
void |
setDataSource(LyDataSource dataSource)
Sets the data source of this class. |
void |
setValue(java.lang.Object object,
LyField field,
java.lang.Object value)
Sets the value corresponding to the given field on an instance of this class. |
LyFilter[] |
splitFilter(LyFilter filter)
This utility method split a filter on the current union class to an array of sub-filters, each corresponding to a sub-class of the union class. |
LySort[] |
splitSort(LySort sort)
This utility method split a sort on the current union class to an array of sub-sorts, each corresponding to a sub-class of the union class. |
java.lang.String |
toString()
Returns a display string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyUnionClass(LyUnionBinding unionBinding, LyClassInfo classInfo)
Method Detail |
---|
public void clearTemporaryObjects()
public java.lang.String getId()
getId
in interface LyClass
public java.lang.String getName()
getName
in interface LyClass
public java.lang.Class<?> getObjectClass()
getObjectClass
in interface LyClass
public LyUnionBinding getUnionBinding()
public void setDataSource(LyDataSource dataSource)
dataSource
- Data source of the class.
java.lang.IllegalStateException
- If the class has already a data source.public LyDataSource getDataSource()
getDataSource
in interface LyClass
public java.util.Vector<LyField> getIdFields()
getIdFields
in interface LyClass
public void addIdField(LyField field)
field
- Peer field to register as id field.public java.util.Vector<LyField> getFields()
getFields
in interface LyClass
public LyField getField(java.lang.String id)
getField
in interface LyClass
id
- Identifier of the searched field.
public LyObjectId getObjectId(java.lang.Object object)
getObjectId
in interface LyClass
object
- Instance of this class.
public java.lang.Object getValue(java.lang.Object object, LyField field)
getValue
in interface LyClass
object
- Instance of this class.field
- Field for which a value is requested.
public void setValue(java.lang.Object object, LyField field, java.lang.Object value)
setValue
in interface LyClass
object
- Instance of this class on which a value is set.field
- Field for which a value is set.value
- Value set for the given field on the specified instance.public LyValueSet copy(java.lang.Object target, java.lang.Object pattern)
copy
in interface LyClass
target
- Object on which values are copied.pattern
- Object from which values are get.
public LyValueSet getValues(java.lang.Object object)
getValues
in interface LyClass
object
- Instance of this class.
public java.lang.Object newInstance() throws java.lang.InstantiationException, java.lang.IllegalAccessException
newInstance
in interface LyClass
java.lang.IllegalAccessException
- If the class or initializer is not accessible.
java.lang.InstantiationException
- If an application tries to instantiate an abstract class or
an interface, or if the instantiation fails for some other
reason.public LySort[] splitSort(LySort sort)
sort
- a sort defined on the current union class.
public LyFilter[] splitFilter(LyFilter filter)
filter
- a filter defined on the current union class.
public java.lang.String toString()
toString
in class java.lang.Object
public void rehash(java.lang.Object object)
rehash
in interface LyClass
object
- object to rehashpublic LyClass getClass1()
public LyClass getClass2()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |