biz.c24.io.api.data
Class SQLClobDataType

java.lang.Object
  extended by biz.c24.io.api.data.DataType
      extended by biz.c24.io.api.data.SimpleDataType
          extended by biz.c24.io.api.data.AtomicDataType
              extended by biz.c24.io.api.data.StringDataType
                  extended by biz.c24.io.api.data.SQLClobDataType
All Implemented Interfaces:
ModelComponent, Serializable

public class SQLClobDataType
extends StringDataType

A simple data type representing a SQL CLOB (Character Large OBject).

Warning: Serialized objects of this class or of a deployed class which is derived from it may not be compatible with future releases of C24 Integreation Objects. The current serialization support is appropriate for short term storage or RMI between applications running the same version of C24 Integreation Objects.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class biz.c24.io.api.data.AtomicDataType
AtomicDataType.FinalEnum
 
Field Summary
 
Fields inherited from class biz.c24.io.api.data.StringDataType
MAX_LENGTH_UNBOUNDED
 
Fields inherited from class biz.c24.io.api.data.DataType
duringParsing, hasEnumerations, hasPatternMatching, qualifierValidation
 
Constructor Summary
SQLClobDataType()
          Constructs a new instance.
 
Method Summary
 String formatObjectOverride(Object obj)
           
static DataType getInstance()
          Returns a singleton instance.
 Class getValidObjectClass()
          Returns the class of valid objects of this type.
static String readString(Clob clob)
          Read the string from a SQL CLOB.
 
Methods inherited from class biz.c24.io.api.data.StringDataType
getLengthSize, getMaxLength, getMaxSize, getMinLength, getMinSize, setLengthSize, setMaxLength, setMinLength, validateProperties
 
Methods inherited from class biz.c24.io.api.data.AtomicDataType
formatObject, getFinal, getLocale, getPad, getPadAmount, getPadJustification, getWhiteSpace, parseObject, setFinal, setLocale, setPad, setPadAmount, setPadJustification, setWhiteSpace
 
Methods inherited from class biz.c24.io.api.data.SimpleDataType
formatObject, formatObjectExternal, getMaxExclusive, getMaxInclusive, getMinExclusive, getMinInclusive, isComplex, isSimple, isSizeFixed, parseObject, parseObjectExternal, setMaxExclusive, setMaxInclusive, setMinExclusive, setMinInclusive
 
Methods inherited from class biz.c24.io.api.data.DataType
addDerivedType, addValidator, addValidator, derivedTypeKeySet, getAnnotation, getDatabaseColumnName, getDerivedType, getDerivedType, getDerivedTypes, getDescription, getEnumeration, getInitiator, getModel, getName, getNullDefiningElementDecl, getOriginalName, getOriginalPatternMatch, getPatternMatch, getPatternType, getTerminator, getValidator, getValidatorCount, getValidatorIndex, hasDerivedTypes, isLocal, isValidObjectClass, removeDerivedType, removeValidator, setAnnotation, setDatabaseColumnName, setInitiator, setLocal, setModel, setName, setOriginalName, setOriginalPatternMatch, setPatternMatch, setPatternType, setTerminator, toString, validate, validateProperties, validateProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLClobDataType

public SQLClobDataType()
Constructs a new instance.

Method Detail

getInstance

public static DataType getInstance()
Returns a singleton instance.

Returns:
A singleton.

getValidObjectClass

public Class getValidObjectClass()
Description copied from class: DataType
Returns the class of valid objects of this type.

Overrides:
getValidObjectClass in class StringDataType
Returns:
The class.

formatObjectOverride

public String formatObjectOverride(Object obj)
Overrides:
formatObjectOverride in class StringDataType

readString

public static String readString(Clob clob)
Read the string from a SQL CLOB.

Parameters:
clob - The CLOB to be insepcted.
Returns:
The string, or null if a SQLException occurred whilst accessing the CLOB's value.


C24 Technologies © 2002-2012: All Rights Reserved.