Package org.apache.empire.data

Examples of org.apache.empire.data.DataType


            return false;
        // Check if prepared statements are enabled
        if (db.isPreparedStatementsEnabled())
            return true;
        // Only use a command param if column is of type BLOB or CLOB
        DataType dt = col.getDataType();
        return ( dt==DataType.BLOB || dt==DataType.CLOB );
    }
View Full Code Here


     *
     * @return true if column is a character based column
     */
    public boolean isTextColumn()
    {
        DataType type = getDataType();
        return (type==DataType.TEXT || type==DataType.CHAR || type==DataType.CLOB);
    }
View Full Code Here

     *
     * @return true if column is a numeric column
     */
    public boolean isNumericColumn()
    {
        DataType type = getDataType();
        return (type==DataType.INTEGER || type==DataType.DECIMAL || type==DataType.FLOAT || type==DataType.AUTOINC);
    }
View Full Code Here

     *
     * @return true if column is a date based column
     */
    public boolean isDateColumn()
    {
        DataType type = getDataType();
        return (type==DataType.DATE || type==DataType.DATETIME);
    }
View Full Code Here

     *
     * @return true if column is a large object column
     */
    public boolean isLOBColumn()
    {
        DataType type = getDataType();
        return (type==DataType.CLOB || type==DataType.BLOB);
    }
View Full Code Here

TOP

Related Classes of org.apache.empire.data.DataType

Copyright © 2018 www.massapicom. 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.