|
|||||||||
| 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.impl.store.access.conglomerate.GenericConglomerate
public abstract class GenericConglomerate
A class that implements the methods shared across all implementations of the Conglomerate interface.
| Field Summary |
|---|
| Fields inherited from interface org.apache.derby.iapi.types.DataValueDescriptor |
|---|
UNKNOWN_LOGICAL_LENGTH |
| 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 | |
|---|---|
GenericConglomerate()
|
|
| Method Summary | |
|---|---|
DataValueDescriptor |
cloneValue(boolean forceMaterialization)
Clone this DataValueDescriptor. |
int |
compare(DataValueDescriptor other)
Compare this Orderable with a given Orderable for the purpose of index positioning. |
int |
getLength()
Gets the length of the data value. |
DataValueDescriptor |
getNewNull()
Get a new null value of the same type as this data value. |
java.lang.Object |
getObject()
Gets the value in the data value descriptor as a Java Object. |
java.lang.String |
getString()
Gets the value in the data value descriptor as a String. |
java.lang.String |
getTypeName()
Get the SQL name of the datatype |
static boolean |
hasCollatedColumns(int[] collationIds)
Tells if there are columns with collations (other than UCS BASIC) in the given list of collation ids. |
protected void |
setFrom(DataValueDescriptor theValue)
Set the value of this DataValueDescriptor from another. |
void |
setValueFromResultSet(java.sql.ResultSet resultSet,
int colNumber,
boolean isNullable)
Set the value based on the value for the specified DataValueDescriptor from the specified ResultSet. |
| Methods inherited from class org.apache.derby.iapi.types.DataType |
|---|
checkHostVariable, cloneHolder, coalesce, compare, compare, compare, compareTo, dataTypeConversion, equals, equals, flip, getBoolean, getByte, getBytes, getDate, getDouble, getFloat, getInt, getLong, getShort, getStream, getTime, getTimestamp, getTraceString, greaterOrEquals, greaterThan, hasStream, in, invalidFormat, isNotNull, isNullOp, lessOrEquals, lessThan, normalize, notEquals, outOfRange, readExternalFromArray, recycle, setBigDecimal, setInto, setInto, setObjectForCast, setToNull, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, throwLangSetMismatch, typePrecedence, typeToBigDecimal |
| 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.store.access.conglomerate.Conglomerate |
|---|
addColumn, compressConglomerate, defragmentConglomerate, drop, fetchMaxOnBTree, getContainerid, getDynamicCompiledConglomInfo, getId, getStaticCompiledConglomInfo, isTemporary, load, open, openScan, openStoreCost, purgeConglomerate |
| Methods inherited from interface org.apache.derby.iapi.types.DataValueDescriptor |
|---|
checkHostVariable, cloneHolder, coalesce, compare, compare, compare, equals, estimateMemoryUsage, getBoolean, getByte, getBytes, getDate, getDouble, getFloat, getInt, getLong, getShort, getStream, getTime, getTimestamp, getTraceString, greaterOrEquals, greaterThan, hasStream, in, isNotNull, isNullOp, lessOrEquals, lessThan, normalize, notEquals, readExternalFromArray, recycle, setBigDecimal, setInto, setInto, setObjectForCast, setToNull, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, typePrecedence, typeToBigDecimal |
| 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 |
|---|
public GenericConglomerate()
| Method Detail |
|---|
public int getLength()
throws StandardException
getLength in interface DataValueDescriptorStandardException - On errorDataValueDescriptor.getLength()
public java.lang.String getString()
throws StandardException
getString in interface DataValueDescriptorStandardException - Thrown on errorDataValueDescriptor.getString()
public java.lang.Object getObject()
throws StandardException
getObject in interface DataValueDescriptorgetObject in class DataTypeStandardException - Thrown on errorDataValueDescriptor.getObject()public DataValueDescriptor cloneValue(boolean forceMaterialization)
DataValueDescriptor
Even though the objects can be modified independently regardless of the
value of forceMaterialization, both the clone and the
original may be dependent on the store state if
forceMaterialization is set to false. An example is if
you need to access the value you just read using cloneValue
after the current transaction has ended, or after the source result set
has been closed.
cloneValue in interface DataValueDescriptorforceMaterialization - any streams representing the data value will
be materialized if true, the data value will be kept as a
stream if possible if false
DataValueDescriptor with the same initial
value as this.DataValueDescriptor.cloneValue(boolean)public DataValueDescriptor getNewNull()
getNewNull in interface DataValueDescriptorDataValueDescriptor.getNewNull()
public void setValueFromResultSet(java.sql.ResultSet resultSet,
int colNumber,
boolean isNullable)
throws StandardException,
java.sql.SQLException
setValueFromResultSet in interface DataValueDescriptorresultSet - The specified ResultSet.colNumber - The 1-based column # into the resultSet.isNullable - Whether or not the column is nullable
(No need to call wasNull() if not)
StandardException - Thrown on error
java.sql.SQLException - Error accessing the result setDataValueDescriptor.setValueFromResultSet(java.sql.ResultSet, int, boolean)
protected void setFrom(DataValueDescriptor theValue)
throws StandardException
setFrom in class DataTypetheValue - The Date value to set this DataValueDescriptor to
StandardExceptionDataValueDescriptor.setValue(int)public java.lang.String getTypeName()
getTypeName in interface DataValueDescriptorDataValueDescriptor.getTypeName()
public int compare(DataValueDescriptor other)
throws StandardException
compare in interface DataValueDescriptorother - The Orderable to compare this one to.
StandardException - Thrown on errorDataValueDescriptor.compare(org.apache.derby.iapi.types.DataValueDescriptor)public static boolean hasCollatedColumns(int[] collationIds)
collationIds - collation ids for the conglomerate columns
true if a collation other than UCS BASIC was found.
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||