|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.rdbms.sql.expression.SQLExpression
org.datanucleus.store.rdbms.sql.expression.NullLiteral
public class NullLiteral
Representation of a Null literal in a Query.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression |
|---|
SQLExpression.ColumnExpressionList |
| Field Summary |
|---|
| Fields inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression |
|---|
LOCALISER, lowestOperator, mapping, parameterName, st, stmt, subExprs, table |
| Constructor Summary | |
|---|---|
NullLiteral(SQLStatement stmt,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
Object value,
String parameterName)
Constructor for a null literal with a value (i.e null!). |
|
| Method Summary | |
|---|---|
SQLExpression |
add(SQLExpression expr)
Additive Operator. |
BooleanExpression |
eq(SQLExpression expr)
Equality operator (equals to) |
Object |
getValue()
Accessor to the literal value |
BooleanExpression |
ne(SQLExpression expr)
Not equality operator (not equals to) |
void |
setNotParameter()
Method to set this literal as not being a parameter. |
| Methods inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression |
|---|
and, cast, com, distinct, div, encloseInParentheses, eor, ge, getJavaTypeMapping, getLowestOperator, getNumberOfSubExpressions, getParameterName, getSQLStatement, getSQLTable, getSubExpression, gt, in, invoke, ior, is, isParameter, le, lt, mod, mul, neg, not, setJavaTypeMapping, sub, toSQLText |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullLiteral(SQLStatement stmt,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
Object value,
String parameterName)
stmt - the SQL statementmapping - the mappingvalue - Null!parameterName - Name of the parameter that this represents if any (JDBC "?") NOT USED| Method Detail |
|---|
public Object getValue()
SQLLiteral
getValue in interface SQLLiteralpublic SQLExpression add(SQLExpression expr)
SQLExpression
add in class SQLExpressionexpr - the right-hand operand
public BooleanExpression eq(SQLExpression expr)
SQLExpression
eq in class SQLExpressionexpr - the right-hand operand
public BooleanExpression ne(SQLExpression expr)
SQLExpression
ne in class SQLExpressionexpr - the right-hand operand
public void setNotParameter()
SQLLiteral
setNotParameter in interface SQLLiteral
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||