java.lang.Object
javatools.db.DbExpr
javatools.db.DbLiteral
- All Implemented Interfaces:
- DbTableUser
- public class DbLiteral
- extends DbExpr
Inserts a piece of literal text within the SQL expression. This can be
useful for non-portable hacks into the SQL code.
- Version:
- 0.7
|
Field Summary |
(package private) java.lang.String |
str
The literal string that represents the expression. |
| Fields inherited from class javatools.db.DbExpr |
db |
| Methods inherited from class javatools.db.DbExpr |
and, containsAllStrings, containsAllStrings, count, dateTrunc, equal, getString, greaterThan, greaterThanOrEqual, in, in, isNotNull, isNull, lessThan, lessThanOrEqual, like, lower, max, min, notEqual, notIn, notIn, or, setSqlValue, upper, usesTables, usesTables |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
str
java.lang.String str
- The literal string that represents the expression.
DbLiteral
public DbLiteral(DbDatabase db,
java.lang.String s)
- Constructor for the DbLiteral object
setSqlValues
public int setSqlValues(java.sql.PreparedStatement ps,
int i)
throws java.sql.SQLException,
DbException
- Sets the sqlValues attribute of the DbLiteral object
- Specified by:
setSqlValues in class DbExpr
getQueryString
public java.lang.String getQueryString()
- Gets the queryString attribute of the DbLiteral object
- Specified by:
getQueryString in class DbExpr