leon.peer
Class LyBlobRequestEncoder
java.lang.Object
leon.peer.LyRequestEncoder
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). |
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 |
MAX_BLOB_BUFFER
public static int MAX_BLOB_BUFFER
- Amount of bytes to read in a single block for a blob (performance buffer).
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.
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 valuesfieldInfo
- blob fieldinfo to loadlocator
- value of the field, usually a locator for making object reference
- Returns:
- the physical locator
Website: W4 S.A., contact us: support@w4global.com