LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.peer
Class LyBlobRequestEncoder

java.lang.Object
  extended by leon.peer.LyRequestEncoder
      extended by leon.peer.LyBlobRequestEncoder
Direct Known Subclasses:
LySqlRequestEncoder

public abstract class LyBlobRequestEncoder
extends LyRequestEncoder

This class is used to encode a request made on a data source and decode results to give a response. This class is abstract and must be overriden to provide specific encoding and decoding.

The task of the request encoder is to process requests from a data source and to send 'requests' using a connection instance. The request encoder class converts a data source demand into a 'language' which is understood by the connection instance : the specific 'language' of the underlying connection, like SQL, XML, method invocation on a Corba service.

Additionally, the request encoder instance must 'decode' or interpret responses from the specific connection to a 'language' understood by Leonardi. Basically, this class implements the mapping between the chosen physical layer and the data representation in the specific connection.

See Also:
LyDataSource, LyResponse

Field Summary
static int MAX_BLOB_BUFFER
          Amount of bytes to read in a single block for a blob (performance buffer).
 
Fields inherited from class leon.peer.LyRequestEncoder
__VERSION
 
Constructor Summary
LyBlobRequestEncoder(LyDataProvider provider, LyDataSource dataSource)
          Constructs a request encoder.
 
Method Summary
 java.lang.String getBlobContent(LyObject object, LyFieldInfo fieldInfo, java.lang.String locator)
          Load the real blob content from the locator : return a physical locator like a file path
 
Methods inherited from class leon.peer.LyRequestEncoder
createObject, deleteObject, deleteObjects, getClassBinding, getDataClass, getObject, getObjects, getProvider, getResponse, getSize, isSynchronous, loadObject, setClassBinding, setDataClass, setObject, setObjects, setResponse, toString, toString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_BLOB_BUFFER

public static int MAX_BLOB_BUFFER
Amount of bytes to read in a single block for a blob (performance buffer).

Constructor Detail

LyBlobRequestEncoder

public LyBlobRequestEncoder(LyDataProvider provider,
                            LyDataSource dataSource)
Constructs a request encoder. Initialization is done with the init method.

Parameters:
provider - Provider that creates this request encoder.
dataSource - Data source client of the request.
Method Detail

getBlobContent

public java.lang.String getBlobContent(LyObject object,
                                       LyFieldInfo fieldInfo,
                                       java.lang.String locator)
Load the real blob content from the locator : return a physical locator like a file path

Parameters:
object - the object which helds the blob field and values
fieldInfo - blob fieldinfo to load
locator - value of the field, usually a locator for making object reference
Returns:
the physical locator

(c) January 2013 - W4 S.A.

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