|
||||||||||
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 DataValueDescriptor
getTypeName
in class SQLVarchar
public DataValueDescriptor getClone()
DataValueDescriptor
getClone
in interface DataValueDescriptor
getClone
in class SQLVarchar
DataValueDescriptor.getClone()
public DataValueDescriptor getNewNull()
DataValueDescriptor
getNewNull
in interface DataValueDescriptor
getNewNull
in class SQLVarchar
DataValueDescriptor.getNewNull()
public int getTypeFormatId()
getTypeFormatId
in interface TypedFormat
getTypeFormatId
in class SQLVarchar
TypedFormat.getTypeFormatId()
public int typePrecedence()
DataValueDescriptor
typePrecedence
in interface DataValueDescriptor
typePrecedence
in class SQLVarchar
public java.lang.Object getObject() throws StandardException
DataValueDescriptor
getObject
in interface DataValueDescriptor
getObject
in class SQLChar
StandardException
- Thrown on errorpublic boolean getBoolean() throws StandardException
DataValueDescriptor
getBoolean
in interface DataValueDescriptor
getBoolean
in class SQLChar
StandardException
- Thrown on errorDataValueDescriptor.getBoolean()
public byte getByte() throws StandardException
DataValueDescriptor
getByte
in interface DataValueDescriptor
getByte
in class SQLChar
StandardException
- thrown on failure to convertDataValueDescriptor.getByte()
public short getShort() throws StandardException
DataValueDescriptor
getShort
in interface DataValueDescriptor
getShort
in class SQLChar
StandardException
- thrown on failure to convertDataValueDescriptor.getShort()
public int getInt() throws StandardException
DataValueDescriptor
getInt
in interface DataValueDescriptor
getInt
in class SQLChar
StandardException
- thrown on failure to convertDataValueDescriptor.getInt()
public long getLong() throws StandardException
DataValueDescriptor
getLong
in interface DataValueDescriptor
getLong
in class SQLChar
StandardException
- thrown on failure to convertDataValueDescriptor.getLong()
public float getFloat() throws StandardException
DataValueDescriptor
getFloat
in interface DataValueDescriptor
getFloat
in class SQLChar
StandardException
- thrown on failure to convertDataValueDescriptor.getFloat()
public double getDouble() throws StandardException
DataValueDescriptor
getDouble
in interface DataValueDescriptor
getDouble
in class SQLChar
StandardException
- thrown on failure to convertDataValueDescriptor.getDouble()
public int typeToBigDecimal() throws StandardException
SQLChar
typeToBigDecimal
in interface DataValueDescriptor
typeToBigDecimal
in class SQLChar
StandardException
public byte[] getBytes() throws StandardException
DataValueDescriptor
getBytes
in interface DataValueDescriptor
getBytes
in class DataType
StandardException
- Thrown on errorpublic java.sql.Date getDate(java.util.Calendar cal) throws StandardException
DataValueDescriptor
getDate
in interface DataValueDescriptor
getDate
in class SQLChar
StandardException
- thrown on failure to convertDataValueDescriptor.getDate(java.util.Calendar)
public java.sql.Time getTime(java.util.Calendar cal) throws StandardException
DataValueDescriptor
getTime
in interface DataValueDescriptor
getTime
in class SQLChar
StandardException
- thrown on failure to convertDataValueDescriptor.getTime(java.util.Calendar)
public java.sql.Timestamp getTimestamp(java.util.Calendar cal) throws StandardException
DataValueDescriptor
getTimestamp
in interface DataValueDescriptor
getTimestamp
in class SQLChar
StandardException
- 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 DataValueDescriptor
setValue
in class SQLChar
StandardException
- Thrown on errorpublic void setValue(java.sql.Timestamp theValue, java.util.Calendar cal) throws StandardException
DataValueDescriptor
setValue
in interface DataValueDescriptor
setValue
in class SQLChar
StandardException
- Thrown on errorpublic void setValue(java.sql.Date theValue, java.util.Calendar cal) throws StandardException
DataValueDescriptor
setValue
in interface DataValueDescriptor
setValue
in class SQLChar
StandardException
- Thrown on errorpublic void setBigDecimal(java.lang.Number bigDecimal) throws StandardException
SQLChar
setBigDecimal
in interface DataValueDescriptor
setBigDecimal
in class SQLChar
StandardException
public void setValue(int theValue) throws StandardException
DataValueDescriptor
setValue
in interface DataValueDescriptor
setValue
in class SQLChar
StandardException
public void setValue(double theValue) throws StandardException
DataValueDescriptor
setValue
in interface DataValueDescriptor
setValue
in class SQLChar
StandardException
public void setValue(float theValue) throws StandardException
DataValueDescriptor
setValue
in interface DataValueDescriptor
setValue
in class SQLChar
StandardException
public void setValue(short theValue) throws StandardException
DataValueDescriptor
setValue
in interface DataValueDescriptor
setValue
in class SQLChar
StandardException
public void setValue(long theValue) throws StandardException
DataValueDescriptor
setValue
in interface DataValueDescriptor
setValue
in class SQLChar
StandardException
public void setValue(byte theValue) throws StandardException
DataValueDescriptor
setValue
in interface DataValueDescriptor
setValue
in class SQLChar
StandardException
public void setValue(boolean theValue) throws StandardException
DataValueDescriptor
setValue
in interface DataValueDescriptor
setValue
in class SQLChar
StandardException
public void setValue(byte[] theValue) throws StandardException
DataValueDescriptor
setValue
in interface DataValueDescriptor
setValue
in class SQLChar
StandardException
public void setValue(java.lang.Object theValue) throws StandardException
DataValueDescriptor
setValue
in interface DataValueDescriptor
setValue
in class SQLChar
StandardException
DataValueDescriptor.setValue(java.lang.Object)
|
Built on Mon 2007-06-04 09:58:47+0400, from revision ??? | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |