DataValueDescriptor
, java.io.Externalizable
, Formatable
, Orderable
, java.io.Serializable
, Storable
, TypedFormat
SQLBoolean
public interface BooleanDataValue extends DataValueDescriptor
UNKNOWN_LOGICAL_LENGTH
ORDER_OP_EQUALS, ORDER_OP_GREATEROREQUALS, ORDER_OP_GREATERTHAN, ORDER_OP_LESSOREQUALS, ORDER_OP_LESSTHAN
Modifier and Type | Method | Description |
---|---|---|
BooleanDataValue |
and(BooleanDataValue otherValue) |
The SQL AND operator.
|
boolean |
equals(boolean value) |
Tell whether a BooleanDataValue has the given value.
|
boolean |
getBoolean() |
Gets the value in the data value descriptor as a boolean.
|
BooleanDataValue |
getImmutable() |
Return an immutable BooleanDataValue with the same value as this.
|
BooleanDataValue |
is(BooleanDataValue otherValue) |
The SQL IS operator - consult any standard SQL reference for an explanation.
|
BooleanDataValue |
isNot(BooleanDataValue otherValue) |
Implements NOT IS.
|
BooleanDataValue |
or(BooleanDataValue otherValue) |
The SQL OR operator.
|
void |
setValue(java.lang.Boolean theValue) |
Set the value of this BooleanDataValue.
|
BooleanDataValue |
throwExceptionIfFalse(java.lang.String SQLState,
java.lang.String tableName,
java.lang.String constraintName) |
Throw an exception with the given SQLState if this BooleanDataValue
is false.
|
BooleanDataValue |
throwExceptionIfImmediateAndFalse(java.lang.String SQLState,
java.lang.String tableName,
java.lang.String constraintName,
Activation a,
int savedUUIDIdx) |
If this value is false and we have a deferred constraint, remember the
violation and proceed, else throw.
|
checkHostVariable, cloneHolder, cloneValue, coalesce, compare, compare, compare, compare, equals, estimateMemoryUsage, getByte, getBytes, getDate, getDouble, getFloat, getInt, getLength, getLong, getNewNull, getObject, getShort, getStream, getString, getTime, getTimestamp, getTraceString, getTypeName, 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, setValueFromResultSet, typePrecedence, typeToBigDecimal
isNull, restoreToNull
getTypeFormatId
boolean getBoolean()
DataValueDescriptor
getBoolean
in interface DataValueDescriptor
BooleanDataValue and(BooleanDataValue otherValue)
otherValue
- The other BooleanDataValue to AND with this oneBooleanDataValue or(BooleanDataValue otherValue)
otherValue
- The other BooleanDataValue to OR with this oneBooleanDataValue is(BooleanDataValue otherValue)
otherValue
- BooleanDataValue to compare to. May be TRUE, FALSE, or UNKNOWN.BooleanDataValue isNot(BooleanDataValue otherValue)
otherValue
- BooleanDataValue to compare to. May be TRUE, FALSE, or UNKNOWN.BooleanDataValue throwExceptionIfFalse(java.lang.String SQLState, java.lang.String tableName, java.lang.String constraintName) throws StandardException
SQLState
- The SQLState of the exception to throw if
this SQLBoolean is false.tableName
- The name of the table to include in the exception
message.constraintName
- The name of the failed constraint to include
in the exception message.StandardException
- Thrown if this BooleanDataValue
is false.BooleanDataValue throwExceptionIfImmediateAndFalse(java.lang.String SQLState, java.lang.String tableName, java.lang.String constraintName, Activation a, int savedUUIDIdx) throws StandardException
AndNoShortCircuitNode
.SQLState
- The SQLState of the exception to throw if
this SQLBoolean is false.tableName
- The name of the table to include in the exception
message.constraintName
- The name of the failed constraint to include
in the exception message.a
- The activationsavedUUIDIdx
- The saved object number of the constraint's UUID.StandardException
- Thrown if this BooleanDataValue
is false.void setValue(java.lang.Boolean theValue)
theValue
- Contains the boolean value to set this BooleanDataValue
to. Null means set this BooleanDataValue to null.boolean equals(boolean value)
value
- The value to look forBooleanDataValue getImmutable()
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.