|
|||||||||
| Home >> All >> org >> apache >> derby >> iapi >> [ types overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.derby.iapi.types
Interface DataValueFactory

- All Known Implementing Classes:
- DataValueFactoryImpl
- public interface DataValueFactory
This interface is how we get constant data values of different types.
| Method Detail |
getDataValue
public NumberDataValue getDataValue(java.lang.Integer value)
- Get a SQL int with the given value. A null argument means get
a SQL null value. The second form uses the previous value (if non-null)
to hold the return value.
getDataValue
public NumberDataValue getDataValue(java.lang.Integer value, NumberDataValue previous) throws org.apache.derby.iapi.error.StandardException
getDataValue
public NumberDataValue getDataValue(char value)
- Get a SQL int with a char value. A null argument means get
a SQL null value. The second form uses the previous value (if non-null)
to hold the return value.
getDataValue
public NumberDataValue getDataValue(char value, NumberDataValue previous) throws org.apache.derby.iapi.error.StandardException
getDataValue
public NumberDataValue getDataValue(java.lang.Short value)
- Get a SQL smallint with the given value. A null argument means get
a SQL null value. The second form uses the previous value (if non-null)
to hold the return value.
getDataValue
public NumberDataValue getDataValue(java.lang.Short value, NumberDataValue previous) throws org.apache.derby.iapi.error.StandardException
getDataValue
public NumberDataValue getDataValue(java.lang.Byte value)
- Get a SQL TINYINT with the given value. A null argument means get
a SQL null value. The second form uses the previous value (if non-null)
to hold the return value.
getDataValue
public NumberDataValue getDataValue(java.lang.Byte value, NumberDataValue previous) throws org.apache.derby.iapi.error.StandardException
getDataValue
public NumberDataValue getDataValue(java.lang.Long value)
- Get a SQL bigint with the given value. A null argument means get
a SQL null value. The second form uses the previous value (if non-null)
to hold the return value.
getDataValue
public NumberDataValue getDataValue(java.lang.Long value, NumberDataValue previous) throws org.apache.derby.iapi.error.StandardException
getDataValue
public NumberDataValue getDataValue(java.lang.Float value) throws org.apache.derby.iapi.error.StandardException
- Get a SQL real with the given value. A null argument means get
a SQL null value. The second form uses the previous value (if non-null)
to hold the return value.
getDataValue
public NumberDataValue getDataValue(java.lang.Float value, NumberDataValue previous) throws org.apache.derby.iapi.error.StandardException
getDataValue
public NumberDataValue getDataValue(java.lang.Double value) throws org.apache.derby.iapi.error.StandardException
- Get a SQL double precision with the given value. A null argument means
a SQL null value. The second form uses the previous value (if non-null)
to hold the return value.
getDataValue
public NumberDataValue getDataValue(java.lang.Double value, NumberDataValue previous) throws org.apache.derby.iapi.error.StandardException
getDataValue
public BooleanDataValue getDataValue(java.lang.Boolean value)
- Get a SQL boolean with the given value. A null argument means get
a SQL null value. The second form uses the previous value (if non-null)
to hold the return value.
getDataValue
public BooleanDataValue getDataValue(java.lang.Boolean value, BooleanDataValue previous) throws org.apache.derby.iapi.error.StandardException
getLongVarbitDataValue
public BitDataValue getLongVarbitDataValue(byte[] value) throws org.apache.derby.iapi.error.StandardException
- Get a SQL Long Bit Varying with the given value. A null argument means
get a SQL null value. The second form uses the previous value (if
non-null) to hold the return value.
getLongVarbitDataValue
public BitDataValue getLongVarbitDataValue(byte[] value, BitDataValue previous) throws org.apache.derby.iapi.error.StandardException
getBlobDataValue
public BitDataValue getBlobDataValue(byte[] value) throws org.apache.derby.iapi.error.StandardException
- Get a SQL Blob with the given value. A null argument means
get a SQL null value. The second form uses the previous value (if
non-null) to hold the return value.
getBlobDataValue
public BitDataValue getBlobDataValue(byte[] value, BitDataValue previous) throws org.apache.derby.iapi.error.StandardException
getDataValue
public BooleanDataValue getDataValue(BooleanDataValue value) throws org.apache.derby.iapi.error.StandardException
- Get a SQL boolean with the given value. A null argument means get
a SQL null value. The second form uses the previous value (if non-null)
to hold the return value.
getVarcharDataValue
public StringDataValue getVarcharDataValue(java.lang.String value)
- Get a SQL varchar with the given value. A null argument means get
a SQL null value. The second form uses the previous value (if non-null)
to hold the return value.
getVarcharDataValue
public StringDataValue getVarcharDataValue(java.lang.String value, StringDataValue previous) throws org.apache.derby.iapi.error.StandardException
getLongvarcharDataValue
public StringDataValue getLongvarcharDataValue(java.lang.String value)
- Get a SQL long varchar with the given value. A null argument means
get a SQL null value. The second form uses the previous value
(if non-null) to hold the return value.
getLongvarcharDataValue
public StringDataValue getLongvarcharDataValue(java.lang.String value, StringDataValue previous) throws org.apache.derby.iapi.error.StandardException
getClobDataValue
public StringDataValue getClobDataValue(java.lang.String value)
- Get a SQL Clob with the given value. A null argument means
get a SQL null value. The second form uses the previous value
(if non-null) to hold the return value.
getClobDataValue
public StringDataValue getClobDataValue(java.lang.String value, StringDataValue previous) throws org.apache.derby.iapi.error.StandardException
getNationalVarcharDataValue
public StringDataValue getNationalVarcharDataValue(java.lang.String value)
- Get a SQL national varchar with the given value. A null argument means get
a SQL null value. The second form uses the previous value (if non-null)
to hold the return value.
getNationalVarcharDataValue
public StringDataValue getNationalVarcharDataValue(java.lang.String value, StringDataValue previous) throws org.apache.derby.iapi.error.StandardException
getNationalLongvarcharDataValue
public StringDataValue getNationalLongvarcharDataValue(java.lang.String value)
- Get a SQL national long varchar with the given value. A null argument means
get a SQL null value. The second form uses the previous value
(if non-null) to hold the return value.
getNationalLongvarcharDataValue
public StringDataValue getNationalLongvarcharDataValue(java.lang.String value, StringDataValue previous) throws org.apache.derby.iapi.error.StandardException
getNClobDataValue
public StringDataValue getNClobDataValue(java.lang.String value)
- Get a SQL national blob with the given value. A null argument means
get a SQL null value. The second form uses the previous value
(if non-null) to hold the return value.
getNClobDataValue
public StringDataValue getNClobDataValue(java.lang.String value, StringDataValue previous) throws org.apache.derby.iapi.error.StandardException
getDataValue
public UserDataValue getDataValue(java.lang.Object value)
- Get a User-defined data value with the given value and type name.
A null argument means get a SQL null value. The second form uses
the previous value (if non-null) hold the return value.
getDataValue
public UserDataValue getDataValue(java.lang.Object value, UserDataValue previous)
getDataValue
public RefDataValue getDataValue(RowLocation value)
- Get a RefDataValue with the given value. A null argument means get
a SQL null value. The second form uses the previous value (if non-null)
to hold the return value.
getDataValue
public RefDataValue getDataValue(RowLocation value, RefDataValue previous)
getDataValue
public NumberDataValue getDataValue(int value)
- Get a SQL int with the given value. The second form re-uses the
previous value, if non-null, as the data holder to return.
getDataValue
public NumberDataValue getDataValue(int value, NumberDataValue previous) throws org.apache.derby.iapi.error.StandardException
getDataValue
public NumberDataValue getDataValue(long value)
- Get a SQL bigint with the given value. The second form re-uses the
previous value, if non-null, as the data holder to return.
getDataValue
public NumberDataValue getDataValue(long value, NumberDataValue previous) throws org.apache.derby.iapi.error.StandardException
getDataValue
public NumberDataValue getDataValue(float value) throws org.apache.derby.iapi.error.StandardException
- Get a SQL real with the given value. The second form
re-uses the previous value, if non-null, as the data holder to return.
getDataValue
public NumberDataValue getDataValue(float value, NumberDataValue previous) throws org.apache.derby.iapi.error.StandardException
getDataValue
public NumberDataValue getDataValue(double value) throws org.apache.derby.iapi.error.StandardException
- Get a SQL double precision with the given value. The second form
re-uses the previous value, if non-null, as the data holder to return.
getDataValue
public NumberDataValue getDataValue(double value, NumberDataValue previous) throws org.apache.derby.iapi.error.StandardException
getDataValue
public NumberDataValue getDataValue(short value)
- Get a SQL SMALLINT with the given value. The second form re-uses the
previous value, if non-null, as the data holder to return.
getDataValue
public NumberDataValue getDataValue(short value, NumberDataValue previous) throws org.apache.derby.iapi.error.StandardException
getDataValue
public NumberDataValue getDataValue(byte value)
- Get a SQL TINYINT with the given value. The second form re-uses the
previous value, if non-null, as the data holder to return.
getDataValue
public NumberDataValue getDataValue(byte value, NumberDataValue previous) throws org.apache.derby.iapi.error.StandardException
getDecimalDataValue
public NumberDataValue getDecimalDataValue(java.lang.Number value) throws org.apache.derby.iapi.error.StandardException
- Get a SQL DECIMAL with the given value. The second form re-uses the
previous value, if non-null, as the data holder to return.
getDecimalDataValue
public NumberDataValue getDecimalDataValue(java.lang.Number value, NumberDataValue previous) throws org.apache.derby.iapi.error.StandardException
getDecimalDataValue
public NumberDataValue getDecimalDataValue(java.lang.Long value, NumberDataValue previous) throws org.apache.derby.iapi.error.StandardException
- Get a SQL DECIMAL with the given value.
getDecimalDataValue
public NumberDataValue getDecimalDataValue(java.lang.String value) throws org.apache.derby.iapi.error.StandardException
- Get a SQL DECIMAL with the given value. The second form re-uses the
previous value, if non-null, as the data holder to return.
getDecimalDataValue
public NumberDataValue getDecimalDataValue(java.lang.String value, NumberDataValue previous) throws org.apache.derby.iapi.error.StandardException
getDataValue
public BooleanDataValue getDataValue(boolean value)
- Get a SQL boolean with the given value. The second form re-uses the
previous value, if non-null, as the data holder to return.
getDataValue
public BooleanDataValue getDataValue(boolean value, BooleanDataValue previous) throws org.apache.derby.iapi.error.StandardException
getBitDataValue
public BitDataValue getBitDataValue(byte[] value) throws org.apache.derby.iapi.error.StandardException
- Get a SQL bit with the given value. The second form re-uses the
previous value, if non-null, as the data holder to return.
getBitDataValue
public BitDataValue getBitDataValue(byte[] value, BitDataValue previous) throws org.apache.derby.iapi.error.StandardException
getVarbitDataValue
public BitDataValue getVarbitDataValue(byte[] value) throws org.apache.derby.iapi.error.StandardException
- Get a SQL bit with the given value. The second form re-uses the
previous value, if non-null, as the data holder to return.
getVarbitDataValue
public BitDataValue getVarbitDataValue(byte[] value, BitDataValue previous) throws org.apache.derby.iapi.error.StandardException
getCharDataValue
public StringDataValue getCharDataValue(java.lang.String value)
- Get a SQL char with the given value. A null argument means get
a SQL null value. The second form re-uses the previous value,
if non-null, as the data holder to return.
getCharDataValue
public StringDataValue getCharDataValue(java.lang.String value, StringDataValue previous) throws org.apache.derby.iapi.error.StandardException
getNationalCharDataValue
public StringDataValue getNationalCharDataValue(java.lang.String value)
- Get a SQL national char with the given value. A null argument means get
a SQL null value. The second form re-uses the previous value,
if non-null, as the data holder to return.
getNationalCharDataValue
public StringDataValue getNationalCharDataValue(java.lang.String value, StringDataValue previous) throws org.apache.derby.iapi.error.StandardException
getDataValue
public DateTimeDataValue getDataValue(java.sql.Date value) throws org.apache.derby.iapi.error.StandardException
- Get a SQL date with the given value. A null argument means get
a SQL null value. The second form re-uses the previous value,
if non-null, as the data holder to return.
getDataValue
public DateTimeDataValue getDataValue(java.sql.Date value, DateTimeDataValue previous) throws org.apache.derby.iapi.error.StandardException
getDataValue
public DateTimeDataValue getDataValue(java.sql.Time value) throws org.apache.derby.iapi.error.StandardException
- Get a SQL time with the given value. A null argument means get
a SQL null value. The second form re-uses the previous value,
if non-null, as the data holder to return.
getDataValue
public DateTimeDataValue getDataValue(java.sql.Time value, DateTimeDataValue previous) throws org.apache.derby.iapi.error.StandardException
getDataValue
public DateTimeDataValue getDataValue(java.sql.Timestamp value) throws org.apache.derby.iapi.error.StandardException
- Get a SQL timestamp with the given value. A null argument means get
a SQL null value. The second form re-uses the previous value,
if non-null, as the data holder to return.
getDataValue
public DateTimeDataValue getDataValue(java.sql.Timestamp value, DateTimeDataValue previous) throws org.apache.derby.iapi.error.StandardException
getTimestamp
public DateTimeDataValue getTimestamp(DataValueDescriptor operand) throws org.apache.derby.iapi.error.StandardException
- Implement the timestamp SQL function: construct a SQL timestamp from a string, or timestamp.
getTimestamp
public DateTimeDataValue getTimestamp(DataValueDescriptor date, DataValueDescriptor time) throws org.apache.derby.iapi.error.StandardException
- Construct a SQL timestamp from a date and time.
getDate
public DateTimeDataValue getDate(DataValueDescriptor operand) throws org.apache.derby.iapi.error.StandardException
- Implements the SQL date function
getDateValue
public DateTimeDataValue getDateValue(java.lang.String dateStr, boolean isJdbcEscape) throws org.apache.derby.iapi.error.StandardException
getTimeValue
public DateTimeDataValue getTimeValue(java.lang.String timeStr, boolean isJdbcEscape) throws org.apache.derby.iapi.error.StandardException
getTimestampValue
public DateTimeDataValue getTimestampValue(java.lang.String timestampStr, boolean isJdbcEscape) throws org.apache.derby.iapi.error.StandardException
getXMLDataValue
public XMLDataValue getXMLDataValue()
- Get a null XML value. The second form re-uses the previous value,
if non-null, as the data holder to return.
getXMLDataValue
public XMLDataValue getXMLDataValue(XMLDataValue previous) throws org.apache.derby.iapi.error.StandardException
getNullInteger
public NumberDataValue getNullInteger(NumberDataValue dataValue)
- Get a SQL int with a SQL null value. If the supplied value
is null then get a new value, otherwise set it to null and return
that value.
getNullShort
public NumberDataValue getNullShort(NumberDataValue dataValue)
- Get a SQL smallint with a SQL null value. If the supplied value
is null then get a new value, otherwise set it to null and return
that value.
getNullByte
public NumberDataValue getNullByte(NumberDataValue dataValue)
- Get a SQL tinyint with
JAVADOC