|
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.LyRequestEncoder
leon.peer.union.LyUnionRequestEncoder
public class LyUnionRequestEncoder
This class is used to send requests and to receive answers.
LyRequestEncoder
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
char |
VALUE_SEP
|
Constructor Summary | |
---|---|
LyUnionRequestEncoder(LyDataProvider provider,
LyDataSource dataSource)
Constructor. |
Method Summary | |
---|---|
boolean |
createObject(java.lang.Object object)
To create a new object. |
boolean |
deleteObject(java.lang.Object object)
To delete an object. |
boolean |
deleteObjects(java.util.Vector<java.lang.Object> objects)
To delete a list of objects. |
boolean |
getObject(LyObjectId objectId,
java.util.Vector<LyField> fields)
Get an object. |
boolean |
getObjects(java.util.Vector<LyField> fields,
LySort sort,
LyFilter filter,
int n)
Get a set of objects. |
java.util.Collection<LyClass> |
getPeerClasses()
|
boolean |
getSize(LyFilter filter)
Return the number of objects from the data provider. |
boolean |
setObject(java.lang.Object object)
To set an object. |
boolean |
setObjects(java.util.Vector<java.lang.Object> objects)
To set a set of objects. |
void |
setResponse(LyResponse response)
Set the request encoder response. |
LyObjectId[] |
splitObjectId(LyObjectId objectId)
This utility method split a given object id related to a union object to an array of sub-objects ids, each corresponding to a sub-class of the union class. |
Methods inherited from class leon.peer.LyRequestEncoder |
---|
getClassBinding, getDataClass, getProvider, getResponse, isSynchronous, loadObject, setClassBinding, setDataClass, toString, toString, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
public char VALUE_SEP
Constructor Detail |
---|
public LyUnionRequestEncoder(LyDataProvider provider, LyDataSource dataSource)
provider
- dataSource
- Method Detail |
---|
public void setResponse(LyResponse response)
setResponse
in class LyRequestEncoder
the
- responsepublic boolean getObject(LyObjectId objectId, java.util.Vector<LyField> fields)
getObject
in class LyRequestEncoder
objectId
- object identifierfields
- the fields to load (if null, load all)
public LyObjectId[] splitObjectId(LyObjectId objectId)
objectId
- an object id related to a union object
public boolean getObjects(java.util.Vector<LyField> fields, LySort sort, LyFilter filter, int n)
getObjects
in class LyRequestEncoder
fields
- the fields to load (if null, load all)sort
- indicates sorting criterion, or null if default sort is used.filter
- indicates filtering criterion, or null if there is no filter.n
- maximum number of objects to get.
public boolean getSize(LyFilter filter)
getSize
in class LyRequestEncoder
filter
- Specifies filtering criterion, or null if there is no filter.
public boolean deleteObject(java.lang.Object object)
deleteObject
in class LyRequestEncoder
object
- the object to delete
public boolean deleteObjects(java.util.Vector<java.lang.Object> objects)
deleteObjects
in class LyRequestEncoder
objects
- the objects to delete
public boolean createObject(java.lang.Object object)
createObject
in class LyRequestEncoder
values
- the values of the new object
public boolean setObject(java.lang.Object object)
setObject
in class LyRequestEncoder
object
- the object to setvalues
- the new values of the object
public boolean setObjects(java.util.Vector<java.lang.Object> objects)
setObjects
in class LyRequestEncoder
objects
- the objects to setvalues
- the new values of the objects
public java.util.Collection<LyClass> getPeerClasses()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |