biz.c24.io.api.data
Class SQLBlobDataType

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.SQLBlobDataType
All Implemented Interfaces:
ModelComponent, Serializable

public class SQLBlobDataType
extends StringDataType

A simple data type representing a SQL BLOB (Binary 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
SQLBlobDataType()
          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 byte[] readBytes(Blob blob)
          Read the byte array from a SQL BLOB.
 
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

SQLBlobDataType

public SQLBlobDataType()
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

readBytes

public static byte[] readBytes(Blob blob)
Read the byte array from a SQL BLOB.

Parameters:
blob - The BLOB to be insepcted.
Returns:
The byte array, or null if a SQLException occurred whilst accessing the BLOB's value.


C24 Technologies © 2002-2012: All Rights Reserved.