public class DateType extends java.lang.Object implements TypeWrapper
In the adapter configuration file this class is aliased as oracleaq-date-type which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
DateType() |
DateType(java.lang.String s) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFormatString() |
void |
setFormatString(java.lang.String s)
Set the string used to format the object.
|
java.lang.String |
unwrap(java.lang.Object o,
AdtMessageTranslator c)
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 java.lang.String unwrap(java.lang.Object o, AdtMessageTranslator c) throws java.lang.Exception
TypeWrapper
unwrap
in interface TypeWrapper
o
- the object to convertc
- the AdtMessageTranslator instance.java.lang.Exception
- when an exception is encounteredTypeWrapper.unwrap(java.lang.Object, AdtMessageTranslator)
public java.lang.Object wrap(java.lang.String s, AdtMessageTranslator c) throws java.lang.Exception
TypeWrapper
wrap
in interface TypeWrapper
s
- the string to convertc
- the AdtMessageTranslator instance.java.lang.Exception
- when an exception is encounteredTypeWrapper.wrap(java.lang.String, AdtMessageTranslator)
public java.lang.String getFormatString()
public void setFormatString(java.lang.String s)
s
- the formatString to set