public class SQLVarbit extends SQLBit
_blobValue, dataValue, PAD, stream, streamValueLengthUNKNOWN_LOGICAL_LENGTHORDER_OP_EQUALS, ORDER_OP_GREATEROREQUALS, ORDER_OP_GREATERTHAN, ORDER_OP_LESSOREQUALS, ORDER_OP_LESSTHANIGNORE_PRECISION| Modifier and Type | Method and Description |
|---|---|
(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.
|
getObject, setObject, setValueFromResultSetcharLength, checkHostVariable, cloneHolder, cloneValue, compare, compare, concatenate, equals, estimateMemoryUsage, getBytes, getLength, getStream, getString, getTraceString, getValue, greaterOrEquals, greaterThan, hashCode, isNull, lessOrEquals, lessThan, loadStream, notEquals, objectNull, readExternal, restoreToNull, returnStream, setFrom, setInto, setStream, setValue, setValue, setValue, substring, toString, truncate, writeExternalcoalesce, compare, compare, compareTo, dataTypeConversion, equals, flip, genericSetObject, getBoolean, getByte, getDate, getDouble, getFloat, getInt, getLong, getShort, getTime, getTimestamp, getTypeName, hasStream, in, invalidFormat, isNotNull, isNullOp, outOfRange, readExternalFromArray, recycle, setBigDecimal, setInto, setObjectForCast, setToNull, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, throwLangSetMismatch, throwLangSetMismatch, typeToBigDecimalclone, finalize, getClass, notify, notifyAll, wait, wait, waitcoalesce, compare, compare, getBoolean, getByte, getDate, getDouble, getFloat, getInt, getLong, getShort, getTime, getTimestamp, hasStream, in, isNotNull, isNullOp, readExternalFromArray, recycle, setBigDecimal, setInto, setObjectForCast, setToNull, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, typeToBigDecimalpublic java.lang.String getTypeName()
DataValueDescriptorgetTypeName in interface DataValueDescriptorgetTypeName in class SQLBitint getMaxMemoryUsage()
getMaxMemoryUsage in class SQLBitpublic DataValueDescriptor getNewNull()
DataValueDescriptorgetNewNull 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 normalizeStandardException - Thrown for null into
non-nullable column, and for
truncation errorpublic 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 truncationStandardException - Thrown on non-zero truncation
if errorOnTrunc is truepublic int typePrecedence()
DataTypetypePrecedence in interface DataValueDescriptortypePrecedence in class SQLBitDataValueDescriptor.typePrecedence()Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.