public class ClobType extends java.lang.Object implements TypeWrapper
When creating a clob, this creates a temporary clob in which to store data.
CLOB.createTemporary(java.sql.Connection, boolean, int)
In the adapter configuration file this class is aliased as oracleaq-clob-type which is the preferred alternative to the fully qualified classname when building your configuration.
Modifier and Type | Class and Description |
---|---|
static class |
ClobType.Duration
The Duration of the CLOB when attempting to create a temporary clob.
|
static class |
ClobType.Handler
Handling different types of CLOB data.
|
Constructor and Description |
---|
ClobType()
Default constructor
|
ClobType(ClobType.Duration duration,
boolean cache) |
ClobType(ClobType.Duration duration,
boolean cache,
ClobType.Handler handler) |
Modifier and Type | Method and Description |
---|---|
boolean |
getCache() |
ClobType.Handler |
getClobHandler() |
ClobType.Duration |
getDuration() |
void |
setCache(boolean b)
Specify whether or not the temporary LOB should be read into the buffer
cache or not.
|
void |
setClobHandler(ClobType.Handler s)
Specify how to handle the underlying
CLOB . |
void |
setDuration(ClobType.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 ClobType()
public ClobType(ClobType.Duration duration, boolean cache)
duration
- the duration of the clobcache
- whether or not temporary LOB should be read into the buffersetDuration(Duration)
,
setCache(boolean)
public ClobType(ClobType.Duration duration, boolean cache, ClobType.Handler handler)
duration
- the duration of the clobcache
- whether or not temporary LOB should be read into the bufferhandler
- of input stream to use.setDuration(Duration)
,
setCache(boolean)
,
setClobHandler(Handler)
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 ClobType.Duration getDuration()
public void setDuration(ClobType.Duration s)
s
- the duration to setClobType.Duration
public ClobType.Handler getClobHandler()
public void setClobHandler(ClobType.Handler s)
CLOB
.s
- the handler to use valid types are "CHARACTER" or "ASCII", default
is "ASCII"ClobType.Handler
,
ClobType.Handler.CHARACTER
,
ClobType.Handler.ASCII