public class SimpleType extends java.lang.Object implements TypeWrapper
FieldMapper
In the adapter configuration file this class is aliased as oracleaq-simple-type which is the preferred alternative to the fully qualified classname when building your configuration.
Modifier and Type | Class and Description |
---|---|
static class |
SimpleType.Type
The Types wrapped by this SimpleType implementation.
|
Constructor and Description |
---|
SimpleType() |
SimpleType(SimpleType.Type s) |
Modifier and Type | Method and Description |
---|---|
SimpleType.Type |
getType() |
void |
setType(SimpleType.Type s)
The type.
|
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 SimpleType()
public SimpleType(SimpleType.Type s)
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
TypeWrapper.wrap(java.lang.String, AdtMessageTranslator)
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
TypeWrapper.unwrap(java.lang.Object, AdtMessageTranslator)
public SimpleType.Type getType()
public void setType(SimpleType.Type s)
s
- the specific type of this field.SimpleType.Type