public class BlobType extends java.lang.Object implements TypeWrapper
When creating a blob, this creates a temporary blob in which to store data.
BLOB.createTemporary(java.sql.Connection, boolean, int)
In the adapter configuration file this class is aliased as oracleaq-blob-type which is the preferred alternative to the fully qualified classname when building your configuration.
Modifier and Type | Class and Description |
---|---|
static class |
BlobType.ByteFlavour
The type of byte that the BLOB represents..
|
static class |
BlobType.Duration
The Duration of the BLOB when attempting to create a temporary blob.
|
Constructor and Description |
---|
BlobType() |
BlobType(BlobType.Duration duration,
boolean b,
BlobType.ByteFlavour flavour) |
Modifier and Type | Method and Description |
---|---|
BlobType.ByteFlavour |
getByteFlavour() |
boolean |
getCache() |
BlobType.Duration |
getDuration() |
void |
setByteFlavour(BlobType.ByteFlavour s)
Specify the byte translator to use.
|
void |
setCache(boolean b)
Specify whether or not the temporary LOB should be read into the buffer
cache or not.
|
void |
setDuration(BlobType.Duration s)
Specify the duration of the temporary LOB.
|
java.lang.String |
unwrap(java.lang.Object o,
AdtMessageTranslator dt)
Convert the wrapped Object type into a string.
|
java.lang.Object |
wrap(java.lang.String s,
AdtMessageTranslator c)
Convert the string into a wrapped object for Oracle AdtMessages
|
public BlobType()
public BlobType(BlobType.Duration duration, boolean b, BlobType.ByteFlavour flavour)
public java.lang.Object wrap(java.lang.String s, AdtMessageTranslator c) throws java.sql.SQLException, java.io.IOException, javax.jms.JMSException
TypeWrapper
wrap
in interface TypeWrapper
s
- the string to convertc
- the AdtMessageTranslator instance.java.sql.SQLException
java.io.IOException
javax.jms.JMSException
public java.lang.String unwrap(java.lang.Object o, AdtMessageTranslator dt) throws java.sql.SQLException, java.io.IOException, javax.jms.JMSException
TypeWrapper
unwrap
in interface TypeWrapper
o
- the object to convertdt
- the AdtMessageTranslator instance.java.sql.SQLException
java.io.IOException
javax.jms.JMSException
public boolean getCache()
public void setCache(boolean b)
b
- the cached to setpublic BlobType.Duration getDuration()
public void setDuration(BlobType.Duration s)
s
- the duration to setBlobType.Duration
public BlobType.ByteFlavour getByteFlavour()
public void setByteFlavour(BlobType.ByteFlavour s)
s
- the byteTranslator to setBlobType.ByteFlavour