- All Superinterfaces:
- DataValueDescriptor, java.io.Externalizable, org.apache.derby.iapi.services.io.Formatable, Orderable, java.io.Serializable, org.apache.derby.iapi.services.io.Storable, org.apache.derby.iapi.services.io.TypedFormat, VariableSizeDataValue
- All Known Subinterfaces:
- BitDataValue, StringDataValue
- All Known Implementing Classes:
- SQLBinary, SQLChar
- public interface ConcatableDataValue
- extends DataValueDescriptor, VariableSizeDataValue
The ConcatableDataValue interface corresponds to the
SQL 92 string value data type. It is implemented by
datatypes that have a length, and can be concatenated.
It is implemented by the character datatypes and the
bit datatypes.
The following methods are defined herein:
charLength()
The following is defined by the sub classes (bit and char)
concatenate()
| Methods inherited from interface org.apache.derby.iapi.types.DataValueDescriptor |
checkHostVariable, coalesce, compare, compare, equals, estimateMemoryUsage, getBoolean, getByte, getBytes, getClone, getDate, getDouble, getFloat, getInt, getLength, getLong, getNewNull, getObject, getShort, getStream, getString, getTime, getTimestamp, getTypeName, greaterOrEquals, greaterThan, in, isNotNull, isNullOp, lessOrEquals, lessThan, normalize, notEquals, readExternalFromArray, setBigDecimal, setInto, setInto, setObjectForCast, setToNull, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromResultSet, typePrecedence, typeToBigDecimal |
charLength
public NumberDataValue charLength(NumberDataValue result)
throws org.apache.derby.iapi.error.StandardException
- The SQL char_length() function.
substring
public ConcatableDataValue substring(NumberDataValue start,
NumberDataValue length,
ConcatableDataValue result,
int maxLen)
throws org.apache.derby.iapi.error.StandardException
- substr() function matchs DB2 syntax and behaviour.