|
||||||||||
| 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.StringExpression
org.datanucleus.store.rdbms.sql.expression.StringLiteral
public class StringLiteral
Representation of a string literal.
| 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 | |
|---|---|
StringLiteral(SQLStatement stmt,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
Object value,
String parameterName)
Constructor for a String literal with a value. |
|
| Method Summary | |
|---|---|
SQLExpression |
add(SQLExpression expr)
Additive Operator. |
BooleanExpression |
eq(SQLExpression expr)
Equality operator (equals to) |
BooleanExpression |
ge(SQLExpression expr)
Relational operator (greater than or equals) |
void |
generateStatementWithoutQuotes()
Convenience method to generate the statement without any quotes. |
Object |
getValue()
Accessor to the literal value |
BooleanExpression |
gt(SQLExpression expr)
Relational operator (greater than) |
BooleanExpression |
le(SQLExpression expr)
Relational operator (lower than or equals) |
BooleanExpression |
lt(SQLExpression expr)
Relational operator (lower than) |
BooleanExpression |
ne(SQLExpression expr)
Not equality operator (not equals to) |
void |
setNotParameter()
Method to set this literal as not being a parameter. |
protected void |
setStatement()
|
| Methods inherited from class org.datanucleus.store.rdbms.sql.expression.StringExpression |
|---|
in, invoke |
| Methods inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression |
|---|
and, cast, com, distinct, div, encloseInParentheses, eor, getJavaTypeMapping, getLowestOperator, getNumberOfSubExpressions, getParameterName, getSQLStatement, getSQLTable, getSubExpression, ior, is, isParameter, 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 StringLiteral(SQLStatement stmt,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
Object value,
String parameterName)
stmt - the SQL statementmapping - the mappingvalue - the valueparameterName - Name of the parameter that this represents (as JDBC "?")| Method Detail |
|---|
public void generateStatementWithoutQuotes()
public Object getValue()
SQLLiteral
getValue in interface SQLLiteralpublic BooleanExpression eq(SQLExpression expr)
SQLExpression
eq in class StringExpressionexpr - the right-hand operand
public BooleanExpression ne(SQLExpression expr)
SQLExpression
ne in class StringExpressionexpr - the right-hand operand
public BooleanExpression lt(SQLExpression expr)
SQLExpression
lt in class StringExpressionexpr - the right-hand operand
public BooleanExpression le(SQLExpression expr)
SQLExpression
le in class StringExpressionexpr - the right-hand operand
public BooleanExpression gt(SQLExpression expr)
SQLExpression
gt in class StringExpressionexpr - the right-hand operand
public BooleanExpression ge(SQLExpression expr)
SQLExpression
ge in class StringExpressionexpr - the right-hand operand
public SQLExpression add(SQLExpression expr)
SQLExpression
add in class StringExpressionexpr - the right-hand operand
public void setNotParameter()
SQLLiteral
setNotParameter in interface SQLLiteralprotected void setStatement()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||