|
||||||||||
| 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.SQLChar
org.apache.derby.iapi.types.SQLVarchar
org.apache.derby.iapi.types.SQLClob
SQLClob uses SQLVarchar by inheritance. It satisfies the DataValueDescriptor interfaces (i.e., OrderableDataType). It implements a String holder, e.g. for storing a column value; it can be specified when constructed to not allow nulls. Nullability cannot be changed after construction.
Because OrderableDataType is a subclass of DataType, SQLLongvarchar can play a role in either a DataType/ValueRow or a OrderableDataType/KeyRow, interchangeably.
| Field Summary |
| Fields inherited from class org.apache.derby.iapi.types.SQLChar |
arg_passer, RETURN_SPACE_THRESHOLD, stream |
| Fields inherited from interface org.apache.derby.iapi.types.StringDataValue |
BOTH, LEADING, TRAILING |
| 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 | |
SQLClob()
|
|
SQLClob(java.lang.String val)
|
|
| Method Summary | |
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 array. |
DataValueDescriptor |
getClone()
Clone this DataValueDescriptor. |
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 an int. |
long |
getLong()
Gets the value in the data value descriptor as a long. |
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. |
short |
getShort()
Gets the value in the data value descriptor as a short. |
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. |
int |
getTypeFormatId()
Return my format identifier. |
java.lang.String |
getTypeName()
Get the SQL name of the datatype |
void |
setBigDecimal(java.lang.Number bigDecimal)
Only to be called when an application through JDBC is setting a SQLChar to a java.math.BigDecimal. |
void |
setValue(boolean theValue)
Set the value. |
void |
setValue(byte theValue)
Set the value of this DataValueDescriptor to the given byte value |
void |
setValue(byte[] 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 |
void |
setValue(float theValue)
Set the value of this DataValueDescriptor to the given double value |
void |
setValue(int theValue)
Set the value of this DataValueDescriptor to the given int value |
void |
setValue(long theValue)
Set the value of this DataValueDescriptor to the given long value |
void |
setValue(java.lang.Object theValue)
Set the value of this DataValueDescriptor to the given value |
void |
setValue(short theValue)
Set the value of this DataValueDescriptor to the given short value |
void |
setValue(java.sql.Time theValue,
java.util.Calendar cal)
Set the value of this DataValueDescriptor. |
void |
setValue(java.sql.Timestamp theValue,
java.util.Calendar cal)
Set the value of this DataValueDescriptor. |
int |
typePrecedence()
Each built-in type in JSQL has a precedence. |
int |
typeToBigDecimal()
CHAR/VARCHAR/LONG VARCHAR implementation. |
| Methods inherited from class org.apache.derby.iapi.types.SQLVarchar |
growBy, normalize, normalize |
| Methods inherited from class org.apache.derby.iapi.types.SQLChar |
appendBlanks, charLength, cloneObject, compare, compare, concatenate, copyState, equals, estimateMemoryUsage, getCharArray, getCollationKey, getDate, getDateFormat, getDateFormat, getLength, getLocaleFinder, getNewVarchar, getStream, getString, getTime, getTimeFormat, getTimeFormat, getTimestamp, getTimestampFormat, getTimestampFormat, greaterOrEquals, greaterThan, hashCode, hasNonBlankChars, isNationalString, isNull, lessOrEquals, lessThan, like, like, loadStream, locate, lower, nationalGetDate, nationalGetTime, nationalGetTimestamp, nationalHashCode, notEquals, readExternal, readExternalFromArray, restoreToNull, returnStream, setFrom, setInto, setLocaleFinder, setStream, setValue, setValue, setValueFromResultSet, setWidth, stringCollatorCompare, stringCompare, stringCompare, stringCompare, substring, toString, trim, upper, writeExternal, XMLParse |
| Methods inherited from class org.apache.derby.iapi.types.DataType |
checkHostVariable, coalesce, dataTypeConversion, equals, flip, genericSetObject, getNationalString, in, invalidFormat, isNotNull, isNullOp, outOfRange, setInto, setObjectForCast, setToNull, setValue, setValue, setValue, setValue, throwLangSetMismatch, throwLangSetMismatch |
| 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 |
checkHostVariable, coalesce, in, isNotNull, isNullOp, setInto, setObjectForCast, setToNull, setValue, setValue, setValue, setValue |
| Constructor Detail |
public SQLClob()
public SQLClob(java.lang.String val)
| Method Detail |
public java.lang.String getTypeName()
DataValueDescriptor
getTypeName in interface DataValueDescriptorgetTypeName in class SQLVarcharpublic DataValueDescriptor getClone()
DataValueDescriptor
getClone in interface DataValueDescriptorgetClone in class SQLVarcharDataValueDescriptor.getClone()public DataValueDescriptor getNewNull()
DataValueDescriptor
getNewNull in interface DataValueDescriptorgetNewNull in class SQLVarcharDataValueDescriptor.getNewNull()public int getTypeFormatId()
getTypeFormatId in interface TypedFormatgetTypeFormatId in class SQLVarcharTypedFormat.getTypeFormatId()public int typePrecedence()
DataValueDescriptor
typePrecedence in interface DataValueDescriptortypePrecedence in class SQLVarchar
public java.lang.Object getObject()
throws StandardException
DataValueDescriptor
getObject in interface DataValueDescriptorgetObject in class SQLCharStandardException - Thrown on error
public boolean getBoolean()
throws StandardException
DataValueDescriptor
getBoolean in interface DataValueDescriptorgetBoolean in class SQLCharStandardException - Thrown on errorDataValueDescriptor.getBoolean()
public byte getByte()
throws StandardException
DataValueDescriptor
getByte in interface DataValueDescriptorgetByte in class SQLCharStandardException - thrown on failure to convertDataValueDescriptor.getByte()
public short getShort()
throws StandardException
DataValueDescriptor
getShort in interface DataValueDescriptorgetShort in class SQLCharStandardException - thrown on failure to convertDataValueDescriptor.getShort()
public int getInt()
throws StandardException
DataValueDescriptor
getInt in interface DataValueDescriptorgetInt in class SQLCharStandardException - thrown on failure to convertDataValueDescriptor.getInt()
public long getLong()
throws StandardException
DataValueDescriptor
getLong in interface DataValueDescriptorgetLong in class SQLCharStandardException - thrown on failure to convertDataValueDescriptor.getLong()
public float getFloat()
throws StandardException
DataValueDescriptor
getFloat in interface DataValueDescriptorgetFloat in class SQLCharStandardException - thrown on failure to convertDataValueDescriptor.getFloat()
public double getDouble()
throws StandardException
DataValueDescriptor
getDouble in interface DataValueDescriptorgetDouble in class SQLCharStandardException - thrown on failure to convertDataValueDescriptor.getDouble()
public int typeToBigDecimal()
throws StandardException
SQLChar
typeToBigDecimal in interface DataValueDescriptortypeToBigDecimal in class SQLCharStandardException
public byte[] getBytes()
throws StandardException
DataValueDescriptor
getBytes in interface DataValueDescriptorgetBytes in class DataTypeStandardException - Thrown on error
public java.sql.Date getDate(java.util.Calendar cal)
throws StandardException
DataValueDescriptor
getDate in interface DataValueDescriptorgetDate in class SQLCharStandardException - thrown on failure to convertDataValueDescriptor.getDate(java.util.Calendar)
public java.sql.Time getTime(java.util.Calendar cal)
throws StandardException
DataValueDescriptor
getTime in interface DataValueDescriptorgetTime in class SQLCharStandardException - thrown on failure to convertDataValueDescriptor.getTime(java.util.Calendar)
public java.sql.Timestamp getTimestamp(java.util.Calendar cal)
throws StandardException
DataValueDescriptor
getTimestamp in interface DataValueDescriptorgetTimestamp in class SQLCharStandardException - thrown on failure to convertDataValueDescriptor.getTimestamp(java.util.Calendar)
public void setValue(java.sql.Time theValue,
java.util.Calendar cal)
throws StandardException
DataValueDescriptor
setValue in interface DataValueDescriptorsetValue in class SQLCharStandardException - Thrown on error
public void setValue(java.sql.Timestamp theValue,
java.util.Calendar cal)
throws StandardException
DataValueDescriptor
setValue in interface DataValueDescriptorsetValue in class SQLCharStandardException - Thrown on error
public void setValue(java.sql.Date theValue,
java.util.Calendar cal)
throws StandardException
DataValueDescriptor
setValue in interface DataValueDescriptorsetValue in class SQLCharStandardException - Thrown on error
public void setBigDecimal(java.lang.Number bigDecimal)
throws StandardException
SQLChar
setBigDecimal in interface DataValueDescriptorsetBigDecimal in class SQLCharStandardException
public void setValue(int theValue)
throws StandardException
DataValueDescriptor
setValue in interface DataValueDescriptorsetValue in class SQLCharStandardException
public void setValue(double theValue)
throws StandardException
DataValueDescriptor
setValue in interface DataValueDescriptorsetValue in class SQLCharStandardException
public void setValue(float theValue)
throws StandardException
DataValueDescriptor
setValue in interface DataValueDescriptorsetValue in class SQLCharStandardException
public void setValue(short theValue)
throws StandardException
DataValueDescriptor
setValue in interface DataValueDescriptorsetValue in class SQLCharStandardException
public void setValue(long theValue)
throws StandardException
DataValueDescriptor
setValue in interface DataValueDescriptorsetValue in class SQLCharStandardException
public void setValue(byte theValue)
throws StandardException
DataValueDescriptor
setValue in interface DataValueDescriptorsetValue in class SQLCharStandardException
public void setValue(boolean theValue)
throws StandardException
DataValueDescriptor
setValue in interface DataValueDescriptorsetValue in class SQLCharStandardException
public void setValue(byte[] theValue)
throws StandardException
DataValueDescriptor
setValue in interface DataValueDescriptorsetValue in class SQLCharStandardException
public void setValue(java.lang.Object theValue)
throws StandardException
DataValueDescriptor
setValue in interface DataValueDescriptorsetValue in class SQLCharStandardExceptionDataValueDescriptor.setValue(java.lang.Object)
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||