| org.apache.derby.iapi.types.BooleanDataValue
All known Subclasses: org.apache.derby.iapi.types.SQLBoolean,
and | public BooleanDataValue and(BooleanDataValue otherValue)(Code) | | The SQL AND operator. This provides SQL semantics for AND with unknown
truth values - consult any standard SQL reference for an explanation.
Parameters: otherValue - The other BooleanDataValue to AND with this one this AND otherValue |
equals | public boolean equals(boolean value)(Code) | | Tell whether a BooleanDataValue has the given value. This is useful
for short-circuiting.
Parameters: value - The value to look for true if the BooleanDataValue contains the given value. |
getBoolean | public boolean getBoolean()(Code) | | |
getImmutable | public BooleanDataValue getImmutable()(Code) | | Return an immutable BooleanDataValue with the same value as this.
An immutable BooleanDataValue with the same value as this. |
is | public BooleanDataValue is(BooleanDataValue otherValue)(Code) | | The SQL IS operator - consult any standard SQL reference for an explanation.
Implements the following truth table:
otherValue
| TRUE | FALSE | UNKNOWN
this |----------------------------
|
TRUE | TRUE | FALSE | FALSE
FALSE | FALSE | TRUE | FALSE
UNKNOWN | FALSE | FALSE | TRUE
Parameters: otherValue - BooleanDataValue to compare to. May be TRUE, FALSE, or UNKNOWN. whether this IS otherValue |
isNot | public BooleanDataValue isNot(BooleanDataValue otherValue)(Code) | | Implements NOT IS. This reverses the sense of the is() call.
Parameters: otherValue - BooleanDataValue to compare to. May be TRUE, FALSE, or UNKNOWN. NOT( this IS otherValue ) |
or | public BooleanDataValue or(BooleanDataValue otherValue)(Code) | | The SQL OR operator. This provides SQL semantics for OR with unknown
truth values - consult any standard SQL reference for an explanation.
Parameters: otherValue - The other BooleanDataValue to OR with this one this OR otherValue |
setValue | public void setValue(Boolean theValue)(Code) | | Set the value of this BooleanDataValue.
Parameters: theValue - Contains the boolean value to set this BooleanDataValueto. Null means set this BooleanDataValue to null. |
throwExceptionIfFalse | public BooleanDataValue throwExceptionIfFalse(String SQLState, String tableName, String constraintName) throws StandardException(Code) | | Throw an exception with the given SQLState if this BooleanDataValue
is false. This method is useful for evaluating constraints.
Parameters: SQLState - The SQLState of the exception to throw ifthis SQLBoolean is false. Parameters: tableName - The name of the table to include in the exceptionmessage. Parameters: constraintName - The name of the failed constraint to includein the exception message. this exception: StandardException - Thrown if this BooleanDataValueis false. |
|
|