public class SQLVarbit extends SQLBit
_blobValue, dataValue, PAD, stream, streamValueLength
UNKNOWN_LOGICAL_LENGTH
ORDER_OP_EQUALS, ORDER_OP_GREATEROREQUALS, ORDER_OP_GREATERTHAN, ORDER_OP_LESSOREQUALS, ORDER_OP_LESSTHAN
IGNORE_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, setValueFromResultSet
charLength, 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, writeExternal
coalesce, 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, typeToBigDecimal
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
coalesce, 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, typeToBigDecimal
public java.lang.String getTypeName()
DataValueDescriptor
getTypeName
in interface DataValueDescriptor
getTypeName
in class SQLBit
int getMaxMemoryUsage()
getMaxMemoryUsage
in class SQLBit
public DataValueDescriptor getNewNull()
DataValueDescriptor
getNewNull
in interface DataValueDescriptor
getNewNull
in class SQLBit
DataValueDescriptor.getNewNull()
public int getTypeFormatId()
getTypeFormatId
in interface TypedFormat
getTypeFormatId
in class SQLBit
TypedFormat.getTypeFormatId()
public void normalize(DataTypeDescriptor desiredType, DataValueDescriptor source) throws StandardException
normalize
in interface DataValueDescriptor
normalize
in class SQLBit
desiredType
- 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 VariableSizeDataValue
setWidth
in class SQLBit
desiredWidth
- the desired lengthdesiredScale
- the desired scale (ignored)errorOnTrunc
- throw error on truncationStandardException
- Thrown on non-zero truncation
if errorOnTrunc is truepublic int typePrecedence()
DataType
typePrecedence
in interface DataValueDescriptor
typePrecedence
in class SQLBit
DataValueDescriptor.typePrecedence()
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.