Examples of DBValueExpr


Examples of org.apache.empire.db.expr.column.DBValueExpr

     *
     * @return the new DBFuncExpr object
     */
    public DBColumnExpr substring(int pos)
    {
        return substring(new DBValueExpr(getDatabase(), pos, DataType.INTEGER));
    }
View Full Code Here

Examples of org.apache.empire.db.expr.column.DBValueExpr

     *
     * @return the new DBFuncExpr object
     */
    public DBColumnExpr substring(DBExpr pos, int count)
    {
        return substring(pos, new DBValueExpr(getDatabase(), count, DataType.INTEGER));
    }
View Full Code Here

Examples of org.apache.empire.db.expr.column.DBValueExpr

     *
     * @return the new DBFuncExpr object
     */
    public DBColumnExpr substring(int pos, DBExpr count)
    {
        return substring(new DBValueExpr(getDatabase(), pos, DataType.INTEGER), count);
    }
View Full Code Here

Examples of org.apache.empire.db.expr.column.DBValueExpr

     *
     * @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));
    }
View Full Code Here

Examples of org.apache.empire.db.expr.column.DBValueExpr

     *
     * @return the new DBFuncExpr object
     */
    public DBColumnExpr indexOf(Object str, int fromPos)
    {
        return indexOf(str, new DBValueExpr(getDatabase(), fromPos, DataType.INTEGER));
    }
View Full Code Here

Examples of org.apache.empire.db.expr.column.DBValueExpr

        {   // 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);
    }
View Full Code Here

Examples of org.apache.empire.db.expr.column.DBValueExpr

     * @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));
    }
View Full Code Here

Examples of org.apache.empire.db.expr.column.DBValueExpr

     *
     * @return a DBValueExpr object
     */
    public DBValueExpr getSystemDateExpr()
    {
        return new DBValueExpr(this, SYSDATE, DataType.DATETIME);
    }
View Full Code Here

Examples of org.apache.empire.db.expr.column.DBValueExpr

     * @param value the String value
     * @return the new DBValueExpr object
     */
    public DBValueExpr getValueExpr(String value)
    {
        return new DBValueExpr(this, value, DataType.TEXT);
    }
View Full Code Here

Examples of org.apache.empire.db.expr.column.DBValueExpr

     * @param value the Boolean value
     * @return the new DBValueExpr object
     */
    public DBValueExpr getValueExpr(boolean value)
    {
        return new DBValueExpr(this, value, DataType.BOOL);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.