Package com.foundationdb.sql.types

Examples of com.foundationdb.sql.types.JSQLType


    public DataTypeDescriptor getType() throws StandardException {
        return DataTypeDescriptor.getSQLDataTypeDescriptor(getJavaTypeName());
    }

    public boolean isPrimitiveType() throws StandardException {
        JSQLType myType = getJSQLType();

        if (myType == null) {
            return false;
        }
        else {
            return (myType.getCategory() == JSQLType.JAVA_PRIMITIVE);
        }
    }
View Full Code Here


            return (myType.getCategory() == JSQLType.JAVA_PRIMITIVE);
        }
    }

    public String getJavaTypeName() throws StandardException {
        JSQLType myType = getJSQLType();

        if (myType == null) {
            return "";
        }

        switch(myType.getCategory()) {
        case JSQLType.JAVA_CLASS:
            return myType.getJavaClassName();

        case JSQLType.JAVA_PRIMITIVE:
            return JSQLType.getPrimitiveName(myType.getPrimitiveKind());

        default:
            assert false : "Inappropriate JSQLType: " + myType;
        }
View Full Code Here

        return "";
    }

    public void setJavaTypeName(String javaTypeName) {
        jsqlType = new JSQLType(javaTypeName);
    }
View Full Code Here

    public void setJavaTypeName(String javaTypeName) {
        jsqlType = new JSQLType(javaTypeName);
    }

    public String getPrimitiveTypeName() throws StandardException {
        JSQLType myType = getJSQLType();

        if (myType == null) {
            return "";
        }

        switch(myType.getCategory()) {
        case JSQLType.JAVA_PRIMITIVE:
            return JSQLType.getPrimitiveName(myType.getPrimitiveKind());

        default:
            assert false : "Inappropriate JSQLType: " + myType;
        }
View Full Code Here

TOP

Related Classes of com.foundationdb.sql.types.JSQLType

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.