Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.iapi.types
Class DataType  view DataType download DataType.java

java.lang.Object
  extended byorg.apache.derby.iapi.types.DataType
All Implemented Interfaces:
CloneableObject, DataValueDescriptor, java.io.Externalizable, org.apache.derby.iapi.services.io.Formatable, Orderable, java.io.Serializable, org.apache.derby.iapi.services.io.Storable, org.apache.derby.iapi.services.io.TypedFormat
Direct Known Subclasses:
NumberDataType, SQLBinary, SQLBoolean, SQLChar, SQLDate, SQLRef, SQLTime, SQLTimestamp, UserType, XML

public abstract class DataType
extends java.lang.Object
implements DataValueDescriptor, CloneableObject

DataType is the superclass for all data types. It provides common behavior for datavalue descriptors -- it throws exceptions for all of the get* and setvalue(*) methods of DataValueDescriptor; the subtypes need only override the one for the type they represent and all types it can also be returned as, and the methods dealing with nulls. Since all types satisfy getString DataType does not define that interfaces of DataValueDescriptor. DataType is a little glue for columns to hold values with.


Field Summary
 
Fields inherited from interface org.apache.derby.iapi.types.Orderable
ORDER_OP_EQUALS, ORDER_OP_GREATEROREQUALS, ORDER_OP_GREATERTHAN, ORDER_OP_LESSOREQUALS, ORDER_OP_LESSTHAN
 
Constructor Summary
DataType()
           
 
Method Summary
 void checkHostVariable(int declaredLength)
          Check the value to seem if it conforms to the restrictions imposed by DB2/JCC on host variables for this type.
 java.lang.Object cloneObject()
          From CloneableObject
 DataValueDescriptor coalesce(DataValueDescriptor[] argumentsList, DataValueDescriptor returnValue)
          The SQL language COALESCE/VALUE function.
 boolean compare(int op, DataValueDescriptor other, boolean orderedNulls, boolean unknownRV)
          Compare this Orderable with a given Orderable for the purpose of qualification and sorting.
protected  org.apache.derby.iapi.error.StandardException dataTypeConversion(java.lang.String targetType)
          Return an conversion exception for this type.
 BooleanDataValue equals(DataValueDescriptor left, DataValueDescriptor right)
          The = operator as called from the language module, as opposed to the storage module.
 boolean equals(java.lang.Object other)
          Determine whether this Object is semantically equal to another Object.
protected static int flip(int operator)
          Flip the operator used in a comparison (< -> >).
protected  void genericSetObject(java.lang.Object theValue)
           
 boolean getBoolean()
          Gets the value in the data value descriptor as a boolean.
 byte getByte()
          Gets the value in the data value descriptor as a byte.
 byte[] getBytes()
          Gets the value in the data value descriptor as a byte[].
 java.sql.Date getDate(java.util.Calendar cal)
          Gets the value in the data value descriptor as a java.sql.Date.
 double getDouble()
          Gets the value in the data value descriptor as a double.
 float getFloat()
          Gets the value in the data value descriptor as a float.
 int getInt()
          Gets the value in the data value descriptor as a int.
 long getLong()
          Gets the value in the data value descriptor as a long.
protected  java.lang.String getNationalString(org.apache.derby.iapi.services.i18n.LocaleFinder localeFinder)
          International version of getString().
 java.lang.Object getObject()
          Gets the value in the data value descriptor as a int.
 short getShort()
          Gets the value in the data value descriptor as a short.
 java.io.InputStream getStream()
          Gets the value in the data stream descriptor as an InputStream.
 java.sql.Time getTime(java.util.Calendar cal)
          Gets the value in the data value descriptor as a java.sql.Time.
 java.sql.Timestamp getTimestamp(java.util.Calendar cal)
          Gets the value in the data value descriptor as a java.sql.Timestamp.
 BooleanDataValue greaterOrEquals(DataValueDescriptor left, DataValueDescriptor right)
          The >= operator as called from the language module, as opposed to the storage module.
 BooleanDataValue greaterThan(DataValueDescriptor left, DataValueDescriptor right)
          The > operator as called from the language module, as opposed to the storage module.
 BooleanDataValue in(DataValueDescriptor left, DataValueDescriptor[] inList, boolean orderedList)
          The SQL language IN operator.
protected  org.apache.derby.iapi.error.StandardException invalidFormat()
          Return an out of range exception for this type.
 BooleanDataValue isNotNull()
          The is not null operator as called from the language module, as opposed to the storage module.
 BooleanDataValue isNullOp()
          The is null operator as called from the language module, as opposed to the storage module.
 BooleanDataValue lessOrEquals(DataValueDescriptor left, DataValueDescriptor right)
          The <= operator as called from the language module, as opposed to the storage module.
 BooleanDataValue lessThan(DataValueDescriptor left, DataValueDescriptor right)
          The < operator as called from the language module, as opposed to the storage module.
 void normalize(DataTypeDescriptor desiredType, DataValueDescriptor source)
          Default normalization method.
 BooleanDataValue notEquals(DataValueDescriptor left, DataValueDescriptor right)
          The <> operator as called from the language module, as opposed to the storage module.
protected  org.apache.derby.iapi.error.StandardException outOfRange()
          Return an out of range exception for this type.
 void setBigDecimal(java.lang.Number bigDecimal)
          Only to be called when the application sets a value using BigDecimal
protected  void setFrom(DataValueDescriptor dvd)
           
 void setInto(java.sql.PreparedStatement ps, int position)
          Set this value into a PreparedStatement.
 void setInto(java.sql.ResultSet rs, int position)
          Set this value into a ResultSet for a subsequent ResultSet.insertRow or ResultSet.updateRow.
 void setObjectForCast(java.lang.Object value, boolean instanceOf, java.lang.String resultTypeClassName)
          Set the Object that this Data Type contains (for an explicit cast).
 void setToNull()
          Set the value to SQL null.
 void setValue(boolean theValue)
          Set the value.
 void setValue(byte theValue)
          Set the value of this DataValueDescriptor to the given byte value At DataType level just throws an error lower classes will override
 void setValue(byte[] theValue)
          Set the value of this DataValueDescriptor.
 void setValue(DataValueDescriptor dvd)
          Set the value of this DataValueDescriptor from another.
 void setValue(java.sql.Date theValue)
          Set the value of this DataValueDescriptor.
 void setValue(java.sql.Date theValue, java.util.Calendar cal)
          Set the value of this DataValueDescriptor.
 void setValue(double theValue)
          Set the value of this DataValueDescriptor to the given double value At DataType level just throws an error lower classes will override
 void setValue(float theValue)
          Set the value of this DataValueDescriptor to the given float value At DataType level just throws an error lower classes will override
 void setValue(java.io.InputStream theStream, int streamLength)
          Set the value to be the contents of the stream.
 void setValue(int theValue)
          Set the value of this DataValueDescriptor to the given int value At DataType level just throws an error lower classes will override
 void setValue(long theValue)
          Set the value of this DataValueDescriptor to the given long value At DataType level just throws an error lower classes will override
 void setValue(java.lang.Object theValue)
          Set the value from an object.
 void setValue(short theValue)
          Set the value of this DataValueDescriptor to the given short value At DataType level just throws an error lower classes will override
 void setValue(java.lang.String theValue)
          Set the value of this DataValueDescriptor.
 void setValue(java.sql.Time theValue)
          Set the value of this DataValueDescriptor.
 void setValue(java.sql.Time theValue, java.util.Calendar cal)
          Set the value of this DataValueDescriptor.
 void setValue(java.sql.Timestamp theValue)
          Set the value of this DataValueDescriptor.
 void setValue(java.sql.Timestamp theValue, java.util.Calendar cal)
          Set the value of this DataValueDescriptor.
 void throwLangSetMismatch(java.lang.Object value)
           
(package private)  void throwLangSetMismatch(java.lang.String argTypeName)
           
 int typePrecedence()
          Each built-in type in JSQL has a precedence.
 int typeToBigDecimal()
          How should this value be obtained so that it can be converted to a BigDecimal representation.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.derby.iapi.types.DataValueDescriptor
compare, estimateMemoryUsage, getClone, getLength, getNewNull, getString, getTypeName, readExternalFromArray, setValueFromResultSet
 
Methods inherited from interface org.apache.derby.iapi.services.io.Storable
isNull, restoreToNull
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 
Methods inherited from interface org.apache.derby.iapi.services.io.TypedFormat
getTypeFormatId
 

Constructor Detail

DataType

public DataType()
Method Detail

getBoolean

public boolean getBoolean()
                   throws org.apache.derby.iapi.error.StandardException
Gets the value in the data value descriptor as a boolean. Throws an exception if the data value is not receivable as a boolean.

Specified by:
getBoolean in interface DataValueDescriptor

getByte

public byte getByte()
             throws org.apache.derby.iapi.error.StandardException
Gets the value in the data value descriptor as a byte. Throws an exception if the data value is not receivable as a byte.

Specified by:
getByte in interface DataValueDescriptor

getShort

public short getShort()
               throws org.apache.derby.iapi.error.StandardException
Gets the value in the data value descriptor as a short. Throws an exception if the data value is not receivable as a short.

Specified by:
getShort in interface DataValueDescriptor

getInt

public int getInt()
           throws org.apache.derby.iapi.error.StandardException
Gets the value in the data value descriptor as a int. Throws an exception if the data value is not receivable as a int.

Specified by:
getInt in interface DataValueDescriptor

getLong

public long getLong()
             throws org.apache.derby.iapi.error.StandardException
Gets the value in the data value descriptor as a long. Throws an exception if the data value is not receivable as a long.

Specified by:
getLong in interface DataValueDescriptor

getFloat

public float getFloat()
               throws org.apache.derby.iapi.error.StandardException
Gets the value in the data value descriptor as a float. Throws an exception if the data value is not receivable as a float.

Specified by:
getFloat in interface DataValueDescriptor

getDouble

public double getDouble()
                 throws org.apache.derby.iapi.error.StandardException
Gets the value in the data value descriptor as a double. Throws an exception if the data value is not receivable as a double.

Specified by:
getDouble in interface DataValueDescriptor

typeToBigDecimal

public int typeToBigDecimal()
                     throws org.apache.derby.iapi.error.StandardException
Description copied from interface: DataValueDescriptor
How should this value be obtained so that it can be converted to a BigDecimal representation.

Specified by:
typeToBigDecimal in interface DataValueDescriptor

getBytes

public byte[] getBytes()
                throws org.apache.derby.iapi.error.StandardException
Gets the value in the data value descriptor as a byte[]. Throws an exception if the data value is not receivable as a Binary or Varbinary.

Specified by:
getBytes in interface DataValueDescriptor

getDate

public java.sql.Date getDate(java.util.Calendar cal)
                      throws org.apache.derby.iapi.error.StandardException
Gets the value in the data value descriptor as a java.sql.Date. Throws an exception if the data value is not receivable as a Date.

Specified by:
getDate in interface DataValueDescriptor

getTime

public java.sql.Time getTime(java.util.Calendar cal)
                      throws org.apache.derby.iapi.error.StandardException
Gets the value in the data value descriptor as a java.sql.Time. Throws an exception if the data value is not receivable as a Time.

Specified by:
getTime in interface DataValueDescriptor

getTimestamp

public java.sql.Timestamp getTimestamp(java.util.Calendar cal)
                                throws org.apache.derby.iapi.error.StandardException
Gets the value in the data value descriptor as a java.sql.Timestamp. Throws an exception if the data value is not receivable as a Timestamp.

Specified by:
getTimestamp in interface DataValueDescriptor

getStream

public java.io.InputStream getStream()
                              throws org.apache.derby.iapi.error.StandardException
Gets the value in the data stream descriptor as an InputStream. Throws an exception if the data value is not receivable as a stream.

Specified by:
getStream in interface DataValueDescriptor

isNullOp

public final BooleanDataValue isNullOp()
The is null operator as called from the language module, as opposed to the storage module.

Specified by:
isNullOp in interface DataValueDescriptor

isNotNull

public final BooleanDataValue isNotNull()
The is not null operator as called from the language module, as opposed to the storage module.

Specified by:
isNotNull in interface DataValueDescriptor

setValue

public void setValue(java.sql.Time theValue)
              throws org.apache.derby.iapi.error.StandardException
Set the value of this DataValueDescriptor. At DataType level just throws an error lower classes will override

Specified by:
setValue in interface DataValueDescriptor

setValue

public void setValue(java.sql.Time theValue,
                     java.util.Calendar cal)
              throws org.apache.derby.iapi.error.StandardException
Set the value of this DataValueDescriptor. At DataType level just throws an error lower classes will override

Specified by:
setValue in interface DataValueDescriptor

setValue

public void setValue(java.sql.Timestamp theValue)
              throws org.apache.derby.iapi.error.StandardException
Set the value of this DataValueDescriptor. At DataType level just throws an error lower classes will override

Specified by:
setValue in interface DataValueDescriptor

setValue

public void setValue(java.sql.Timestamp theValue,
                     java.util.Calendar cal)
              throws org.apache.derby.iapi.error.StandardException
Set the value of this DataValueDescriptor. At DataType level just throws an error lower classes will override

Specified by:
setValue in interface DataValueDescriptor

setValue

public void setValue(java.sql.Date theValue)
              throws org.apache.derby.iapi.error.StandardException
Set the value of this DataValueDescriptor. At DataType level just throws an error lower classes will override

Specified by:
setValue in interface DataValueDescriptor

setValue

public void setValue(java.sql.Date theValue,
                     java.util.Calendar cal)
              throws org.apache.derby.iapi.error.StandardException
Set the value of this DataValueDescriptor. At DataType level just throws an error lower classes will override

Specified by:
setValue in interface DataValueDescriptor

setValue

public void setValue(java.lang.String theValue)
              throws org.apache.derby.iapi.error.StandardException
Set the value of this DataValueDescriptor. At DataType level just throws an error lower classes will override

Specified by:
setValue in interface DataValueDescriptor

setValue

public void setValue(int theValue)
              throws org.apache.derby.iapi.error.StandardException
Set the value of this DataValueDescriptor to the given int value At DataType level just throws an error lower classes will override

Specified by:
setValue in interface DataValueDescriptor

setValue

public void setValue(double theValue)
              throws org.apache.derby.iapi.error.StandardException
Set the value of this DataValueDescriptor to the given double value At DataType level just throws an error lower classes will override

Specified by:
setValue in interface DataValueDescriptor

setValue

public void setValue(float theValue)
              throws org.apache.derby.iapi.error.StandardException
Set the value of this DataValueDescriptor to the given float value At DataType level just throws an error lower classes will override

Specified by:
setValue in interface DataValueDescriptor

setValue

public void setValue(short theValue)
              throws org.apache.derby.iapi.error.StandardException
Set the value of this DataValueDescriptor to the given short value At DataType level just throws an error lower classes will override

Specified by:
setValue in interface DataValueDescriptor

setValue

public void setValue(long theValue)
              throws org.apache.derby.iapi.error.StandardException
Set the value of this DataValueDescriptor to the given long value At DataType level just throws an error lower classes will override

Specified by:
setValue in interface DataValueDescriptor

setValue

public void setValue(byte theValue)
              throws org.apache.derby.iapi.error.StandardException
Set the value of this DataValueDescriptor to the given byte value At DataType level just throws an error lower classes will override

Specified by:
setValue in interface DataValueDescriptor

setValue

public void setValue(boolean theValue)
              throws org.apache.derby.iapi.error.StandardException
Set the value. At DataType level just throws an error lower classes will override

Specified by:
setValue in interface DataValueDescriptor

setValue

public void setValue(byte[] theValue)
              throws org.apache.derby.iapi.error.StandardException
Set the value of this DataValueDescriptor. At DataType level just throws an error lower classes will override

Specified by:
setValue in interface DataValueDescriptor

setBigDecimal

public void setBigDecimal(java.lang.Number bigDecimal)
                   throws org.apache.derby.iapi.error.StandardException
Only to be called when the application sets a value using BigDecimal

Specified by:
setBigDecimal in interface DataValueDescriptor

setValue

public final void setValue(DataValueDescriptor dvd)
                    throws org.apache.derby.iapi.error.StandardException
Description copied from interface: DataValueDescriptor
Set the value of this DataValueDescriptor from another.

Specified by:
setValue in interface DataValueDescriptor

setFrom

protected void setFrom(DataValueDescriptor dvd)
                throws org.apache.derby.iapi.error.StandardException

setToNull

public void setToNull()
Description copied from interface: DataValueDescriptor
Set the value to SQL null.

Specified by:
setToNull in interface DataValueDescriptor

setObjectForCast

public void setObjectForCast(java.lang.Object value,
                             boolean instanceOf,
                             java.lang.String resultTypeClassName)
                      throws org.apache.derby.iapi.error.StandardException
Set the Object that this Data Type contains (for an explicit cast).

Specified by:
setObjectForCast in interface DataValueDescriptor

setValue

public void setValue(java.lang.Object theValue)
              throws org.apache.derby.iapi.error.StandardException
Set the value from an object. Usually overridden. This implementation sets this to NULL if the passed in value is null, otherwise an exception is thrown.

Specified by:
setValue in interface DataValueDescriptor

getObject

public java.lang.Object getObject()
                           throws org.apache.derby.iapi.error.StandardException
Gets the value in the data value descriptor as a int. Throws an exception if the data value is not receivable as a int.

Specified by:
getObject in interface DataValueDescriptor

genericSetObject

protected void genericSetObject(java.lang.Object theValue)
                         throws org.apache.derby.iapi.error.StandardException

cloneObject

public java.lang.Object cloneObject()
From CloneableObject

Specified by:
cloneObject in interface CloneableObject

getNationalString

protected java.lang.String getNationalString(org.apache.derby.iapi.services.i18n.LocaleFinder localeFinder)
                                      throws org.apache.derby.iapi.error.StandardException
International version of getString(). Overridden for date, time, and timestamp in SQLDate, SQLTime, SQLTimestamp.


throwLangSetMismatch

public void throwLangSetMismatch(java.lang.Object value)
                          throws org.apache.derby.iapi.error.StandardException

throwLangSetMismatch

void throwLangSetMismatch(java.lang.String argTypeName)
                    throws org.apache.derby.iapi.error.StandardException

setInto

public void setInto(java.sql.PreparedStatement ps,
                    int position)
             throws java.sql.SQLException,
                    org.apache.derby.iapi.error.StandardException
Description copied from interface: DataValueDescriptor
Set this value into a PreparedStatement. This method must handle setting NULL into the PreparedStatement.

Specified by:
setInto in interface DataValueDescriptor

setInto

public void setInto(java.sql.ResultSet rs,
                    int position)
             throws java.sql.SQLException,
                    org.apache.derby.iapi.error.StandardException
Set this value into a ResultSet for a subsequent ResultSet.insertRow or ResultSet.updateRow. This method will only be called for non-null values.

Specified by:
setInto in interface DataValueDescriptor

normalize

public void normalize(DataTypeDescriptor desiredType,
                      DataValueDescriptor source)
               throws org.apache.derby.iapi.error.StandardException
Default normalization method. No information needed from DataTypeDescriptor.

Specified by:
normalize in interface DataValueDescriptor

typePrecedence

public int typePrecedence()
Each built-in type in JSQL has a precedence. This precedence determines how to do type promotion when using binary operators. For example, float has a higher precedence than int, so when adding an int to a float, the result type is float. The precedence for some types is arbitrary. For example, it doesn't matter what the precedence of the boolean type is, since it can't be mixed with other types. But the precedence for the number types is critical. The SQL standard requires that exact numeric types be promoted to approximate numeric when one operator uses both. Also, the precedence is arranged so that one will not lose precision when promoting a type.

Specified by:
typePrecedence in interface DataValueDescriptor

equals

public BooleanDataValue equals(DataValueDescriptor left,
                               DataValueDescriptor right)
                        throws org.apache.derby.iapi.error.StandardException
The = operator as called from the language module, as opposed to the storage module. This default implementations uses compare().

Specified by:
equals in interface DataValueDescriptor

notEquals

public BooleanDataValue notEquals(DataValueDescriptor left,
                                  DataValueDescriptor right)
                           throws org.apache.derby.iapi.error.StandardException
The <> operator as called from the language module, as opposed to the storage module. This default implementations uses compare().

Specified by:
notEquals in interface DataValueDescriptor

lessThan

public BooleanDataValue lessThan(DataValueDescriptor left,
                                 DataValueDescriptor right)
                          throws org.apache.derby.iapi.error.StandardException
The < operator as called from the language module, as opposed to the storage module.

Specified by:
lessThan in interface DataValueDescriptor

greaterThan

public BooleanDataValue greaterThan(DataValueDescriptor left,
                                    DataValueDescriptor right)
                             throws org.apache.derby.iapi.error.StandardException
The > operator as called from the language module, as opposed to the storage module. This default implementations uses compare().

Specified by:
greaterThan in interface DataValueDescriptor

lessOrEquals

public BooleanDataValue lessOrEquals(DataValueDescriptor left,
                                     DataValueDescriptor right)
                              throws org.apache.derby.iapi.error.StandardException
The <= operator as called from the language module, as opposed to the storage module. This default implementations uses compare().

Specified by:
lessOrEquals in interface DataValueDescriptor

greaterOrEquals

public BooleanDataValue greaterOrEquals(DataValueDescriptor left,
                                        DataValueDescriptor right)
                                 throws org.apache.derby.iapi.error.StandardException
The >= operator as called from the language module, as opposed to the storage module. This default implementation uses compare().

Specified by:
greaterOrEquals in interface DataValueDescriptor

compare

public boolean compare(int op,
                       DataValueDescriptor other,
                       boolean orderedNulls,
                       boolean unknownRV)
                throws org.apache.derby.iapi.error.StandardException
Description copied from interface: DataValueDescriptor
Compare this Orderable with a given Orderable for the purpose of qualification and sorting. The caller gets to determine how nulls should be treated - they can either be ordered values or unknown values.

Specified by:
compare in interface DataValueDescriptor

flip

protected static int flip(int operator)
Flip the operator used in a comparison (< -> >). This is useful when flipping a comparison due to type precedence.


coalesce

public DataValueDescriptor coalesce(DataValueDescriptor[] argumentsList,
                                    DataValueDescriptor returnValue)
                             throws org.apache.derby.iapi.error.StandardException
Description copied from interface: DataValueDescriptor
The SQL language COALESCE/VALUE function. This method is called from the language module.

Specified by:
coalesce in interface DataValueDescriptor

in

public BooleanDataValue in(DataValueDescriptor left,
                           DataValueDescriptor[] inList,
                           boolean orderedList)
                    throws org.apache.derby.iapi.error.StandardException
Description copied from interface: DataValueDescriptor
The SQL language IN operator. This method is called from the language module. This method allows us to optimize and short circuit the search if the list is ordered.

Specified by:
in in interface DataValueDescriptor

equals

public boolean equals(java.lang.Object other)
Description copied from class: java.lang.Object
Determine whether this Object is semantically equal to another Object.

There are some fairly strict requirements on this method which subclasses must follow:

  • It must be transitive. If a.equals(b) and b.equals(c), then a.equals(c) must be true as well.
  • It must be symmetric. a.equals(b) and b.equals(a) must have the same value.
  • It must be reflexive. a.equals(a) must always be true.
  • It must be consistent. Whichever value a.equals(b) returns on the first invocation must be the value returned on all later invocations.
  • a.equals(null) must be false.
  • It must be consistent with hashCode(). That is, a.equals(b) must imply a.hashCode() == b.hashCode(). The reverse is not true; two objects that are not equal may have the same hashcode, but that has the potential to harm hashing performance.

This is typically overridden to throw a java.lang.ClassCastException if the argument is not comparable to the class performing the comparison, but that is not a requirement. It is legal for a.equals(b) to be true even though a.getClass() != b.getClass(). Also, it is typical to never cause a java.lang.NullPointerException.

In general, the Collections API (java.util) use the equals method rather than the == operator to compare objects. However, java.util.IdentityHashMap is an exception to this rule, for its own good reasons.

The default implementation returns this == o.


setValue

public void setValue(java.io.InputStream theStream,
                     int streamLength)
              throws org.apache.derby.iapi.error.StandardException
Description copied from interface: DataValueDescriptor
Set the value to be the contents of the stream. The reading of the stream may be delayed until execution time. The format of the stream is required to be the format of this type.

Specified by:
setValue in interface DataValueDescriptor

checkHostVariable

public void checkHostVariable(int declaredLength)
                       throws org.apache.derby.iapi.error.StandardException
Check the value to seem if it conforms to the restrictions imposed by DB2/JCC on host variables for this type.

Specified by:
checkHostVariable in interface DataValueDescriptor

dataTypeConversion

protected final org.apache.derby.iapi.error.StandardException dataTypeConversion(java.lang.String targetType)
Return an conversion exception for this type.


outOfRange

protected final org.apache.derby.iapi.error.StandardException outOfRange()
Return an out of range exception for this type.


invalidFormat

protected final org.apache.derby.iapi.error.StandardException invalidFormat()
Return an out of range exception for this type.