LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.peer.local
Class LyLocalRequestEncoder

java.lang.Object
  extended by leon.peer.LyRequestEncoder
      extended by leon.peer.local.LyLocalRequestEncoder

public class LyLocalRequestEncoder
extends LyRequestEncoder

Local request encoder associated to the local data provider.


Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LyLocalRequestEncoder(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 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 .
 boolean setObject(java.lang.Object object)
          To set an object.
 
Methods inherited from class leon.peer.LyRequestEncoder
deleteObjects, getClassBinding, getDataClass, getProvider, getResponse, isSynchronous, loadObject, setClassBinding, setDataClass, setObjects, setResponse, toString, toString, toString
 
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

LyLocalRequestEncoder

public LyLocalRequestEncoder(LyDataProvider provider,
                             LyDataSource dataSource)
Default constructor Initialization is done with the init method.

Method Detail

getObject

public boolean getObject(LyObjectId objectId,
                         java.util.Vector<LyField> fields)
Get an object.

Specified by:
getObject in class LyRequestEncoder
Parameters:
objectId - object identifier
fields - the fields to load (if null, load all)
Returns:
true if the request was correctly sent to the external data provider.

getObjects

public boolean getObjects(java.util.Vector<LyField> fields,
                          LySort sort,
                          LyFilter filter,
                          int n)
Get a set of objects.

Specified by:
getObjects in class LyRequestEncoder
Parameters:
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.
Returns:
true if the request was correctly sent to the external data provider.

getSize

public boolean getSize(LyFilter filter)
Return the number of objects from the data provider .

Specified by:
getSize in class LyRequestEncoder
Parameters:
filter - indicates filtering criterion, or null if there is no filter.
Returns:
true if the request was correctly sent to the external data provider.

deleteObject

public boolean deleteObject(java.lang.Object object)
To delete an object.

Specified by:
deleteObject in class LyRequestEncoder
Parameters:
object - the object to delete
Returns:
true if the request was correctly sent to the external data provider.

createObject

public boolean createObject(java.lang.Object object)
To create a new object.

Specified by:
createObject in class LyRequestEncoder
Parameters:
object - the new object to create
Returns:
true if the request was correctly sent to the external data provider.

setObject

public boolean setObject(java.lang.Object object)
To set an object.

Specified by:
setObject in class LyRequestEncoder
Parameters:
object - the object to set
Returns:
true if the request was correctly sent to the external data provider.

(c) January 2013 - W4 S.A.

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