|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.iapi.types.DataType
org.apache.derby.iapi.types.SQLBinary
org.apache.derby.iapi.types.SQLBit
org.apache.derby.iapi.types.SQLVarbit
public class SQLVarbit
SQLVarbit represents the SQL type VARCHAR FOR BIT DATA It is an extension of SQLBit and is virtually indistinguishable other than normalization.
| Field Summary |
|---|
| Fields inherited from class org.apache.derby.iapi.types.SQLBinary |
|---|
dataValue, PAD, stream, streamValueLength |
| 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 |
| Fields inherited from interface org.apache.derby.iapi.types.VariableSizeDataValue |
|---|
IGNORE_PRECISION |
| Constructor Summary | |
|---|---|
SQLVarbit()
|
|
SQLVarbit(byte[] val)
|
|
| Method Summary | |
|---|---|
(package private) int |
getMaxMemoryUsage()
Return max memory usage for a SQL Varbit |
DataValueDescriptor |
getNewNull()
Get a new null value of the same type as this data value. |
int |
getTypeFormatId()
Return my format identifier. |
java.lang.String |
getTypeName()
Get the SQL name of the datatype |
void |
normalize(DataTypeDescriptor desiredType,
DataValueDescriptor source)
Normalization method - this method may be called when putting a value into a SQLBit, for example, when inserting into a SQLBit column. |
void |
setWidth(int desiredWidth,
int desiredScale,
boolean errorOnTrunc)
Set the width of the to the desired value. |
int |
typePrecedence()
Each built-in type in JSQL has a precedence. |
| Methods inherited from class org.apache.derby.iapi.types.SQLBit |
|---|
getObject, setObject, setValueFromResultSet |
| Methods inherited from class org.apache.derby.iapi.types.SQLBinary |
|---|
charLength, checkHostVariable, cloneObject, compare, compare, concatenate, equals, estimateMemoryUsage, getBytes, getClone, getLength, getStream, getString, getTraceString, getValue, greaterOrEquals, greaterThan, hashCode, isNull, lessOrEquals, lessThan, loadStream, notEquals, objectNull, readExternal, readExternalFromArray, restoreToNull, returnStream, setFrom, setInto, setStream, setValue, setValue, substring, toString, writeExternal |
| Methods inherited from class org.apache.derby.iapi.types.DataType |
|---|
coalesce, compare, compare, compareTo, dataTypeConversion, equals, flip, genericSetObject, getBoolean, getByte, getDate, getDouble, getFloat, getInt, getLong, getNationalString, getShort, getTime, getTimestamp, getTypeName, in, invalidFormat, isNotNull, isNullOp, outOfRange, recycle, setBigDecimal, setInto, setObjectForCast, setToNull, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, throwLangSetMismatch, throwLangSetMismatch, typeToBigDecimal |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.derby.iapi.types.DataValueDescriptor |
|---|
coalesce, compare, compare, getBoolean, getByte, getDate, getDouble, getFloat, getInt, getLong, getShort, getTime, getTimestamp, in, isNotNull, isNullOp, recycle, setBigDecimal, setInto, setObjectForCast, setToNull, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, typeToBigDecimal |
| Constructor Detail |
|---|
public SQLVarbit()
public SQLVarbit(byte[] val)
| Method Detail |
|---|
public java.lang.String getTypeName()
DataValueDescriptor
getTypeName in interface DataValueDescriptorgetTypeName in class SQLBitint getMaxMemoryUsage()
getMaxMemoryUsage in class SQLBitpublic DataValueDescriptor getNewNull()
DataValueDescriptor
getNewNull in interface DataValueDescriptorgetNewNull in class SQLBitDataValueDescriptor.getNewNull()public int getTypeFormatId()
getTypeFormatId in interface TypedFormatgetTypeFormatId in class SQLBitTypedFormat.getTypeFormatId()
public void normalize(DataTypeDescriptor desiredType,
DataValueDescriptor source)
throws StandardException
normalize in interface DataValueDescriptornormalize in class SQLBitdesiredType - The type to normalize the source column tosource - The value to normalize
StandardException - Thrown for null into
non-nullable column, and for
truncation error
public void setWidth(int desiredWidth,
int desiredScale,
boolean errorOnTrunc)
throws StandardException
setWidth in interface VariableSizeDataValuesetWidth in class SQLBitdesiredWidth - the desired lengthdesiredScale - the desired scale (ignored)errorOnTrunc - throw error on truncation
StandardException - Thrown on non-zero truncation
if errorOnTrunc is truepublic int typePrecedence()
DataType
typePrecedence in interface DataValueDescriptortypePrecedence in class SQLBitDataValueDescriptor.typePrecedence()
|
Built on Thu 2008-08-14 18:45:39-0700, from revision 686102 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||