There is no need to explicitly create instances of this class. Instead use {@link DBDatabase#getValueExpr(String)} or one of it's overloads
659660661662663664665
* * @return the new DBFuncExpr object */ public DBColumnExpr substring(int pos) { return substring(new DBValueExpr(getDatabase(), pos, DataType.INTEGER)); }
685686687688689690691
* * @return the new DBFuncExpr object */ public DBColumnExpr substring(DBExpr pos, int count) { return substring(pos, new DBValueExpr(getDatabase(), count, DataType.INTEGER)); }
698699700701702703704
* * @return the new DBFuncExpr object */ public DBColumnExpr substring(int pos, DBExpr count) { return substring(new DBValueExpr(getDatabase(), pos, DataType.INTEGER), count); }
711712713714715716717718
* * @return the new DBFuncExpr object */ public DBColumnExpr substring(int pos, int count) { return substring(new DBValueExpr(getDatabase(), pos, DataType.INTEGER), new DBValueExpr(getDatabase(), count, DataType.INTEGER)); }
834835836837838839840
* * @return the new DBFuncExpr object */ public DBColumnExpr indexOf(Object str, int fromPos) { return indexOf(str, new DBValueExpr(getDatabase(), fromPos, DataType.INTEGER)); }
1082108310841085108610871088108910901091
{ // A column Expression elseExpr = (DBColumnExpr)otherwise; } else if (otherwise != null) { // A constant value elseExpr = new DBValueExpr(getDatabase(), otherwise, getDataType()); } // Create DBCaseExpr return new DBCaseExpr(compExpr, this, elseExpr); }
305306307308309310311
* @param dataType the data type of the column * @return true if the column was successfully added or false otherwise */ protected final DBViewColumn addColumn(String columnName, DataType dataType) { // find column by name return new DBViewColumn(this, columnName, new DBValueExpr(db, null, dataType)); }
331332333334335336337
* * @return a DBValueExpr object */ public DBValueExpr getSystemDateExpr() { return new DBValueExpr(this, SYSDATE, DataType.DATETIME); }
342343344345346347348
* @param value the String value * @return the new DBValueExpr object */ public DBValueExpr getValueExpr(String value) { return new DBValueExpr(this, value, DataType.TEXT); }
353354355356357358359
* @param value the Boolean value * @return the new DBValueExpr object */ public DBValueExpr getValueExpr(boolean value) { return new DBValueExpr(this, value, DataType.BOOL); }