|
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.extend.LyExtendRequestEncoder
public class LyExtendRequestEncoder
Local request encoder associated to the local data provider.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LyExtendRequestEncoder(LyDataProvider provider,
LyDataSource dataSource)
Default constructor Initialization is done with the init method. |
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. |
void |
endResponse(LyResponse response)
Method for end of response. |
java.util.Vector<LyDataSourceListener> |
getDataSourceListeners()
Indicates which listeners have been notified of the Response. |
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. |
boolean |
getSize(LyFilter filter)
Return the number of objects from the data provider . |
void |
newResponse(LyResponse response,
java.lang.Object object,
LyValueSet values)
Method for response changes. |
boolean |
setObject(java.lang.Object object)
To set an object. |
boolean |
setObjects(java.util.Vector<java.lang.Object> objects)
To set a list of objects. |
Methods inherited from class leon.peer.LyRequestEncoder |
---|
getClassBinding, getDataClass, getProvider, getResponse, isSynchronous, loadObject, setClassBinding, setDataClass, setResponse, 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
Constructor Detail |
---|
public LyExtendRequestEncoder(LyDataProvider provider, LyDataSource dataSource)
Method Detail |
---|
public 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 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
- indicates 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
- Objects to delete.
public boolean createObject(java.lang.Object object)
createObject
in class LyRequestEncoder
object
- the new object to create
public boolean setObject(java.lang.Object object)
setObject
in class LyRequestEncoder
object
- the object to set
public boolean setObjects(java.util.Vector<java.lang.Object> objects)
setObjects
in class LyRequestEncoder
objects
- List of objects to set.
public void newResponse(LyResponse response, java.lang.Object object, LyValueSet values)
newResponse
in interface LyResponseListener
response
- the responseobject
- The new object returned in the response.values
- When the demand was a modification of an object, this parameter may contains
the list of values that were changed. In other cases, this parameter is
null.public void endResponse(LyResponse response)
endResponse
in interface LyResponseListener
response
- the responsepublic java.util.Vector<LyDataSourceListener> getDataSourceListeners()
getDataSourceListeners
in interface LyGetDataSourceListenersInterface
LyGetDataSourceListenersInterface
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |