Examples of jdbcType()


Examples of com.foundationdb.server.types.TClass.jdbcType()

                if (attrs.hasNext()) {
                    attribute3 = attrs.next().name();
                }
                Long size = tClass.hasFixedSerializationSize() ? (long)tClass.fixedSerializationSize() : null;
               
                Integer jdbcTypeID = tClass.jdbcType();
               
                return new ValuesRow (rowType,
                        name,
                        category,
                        bundle,
View Full Code Here

Examples of com.foundationdb.server.types.TClass.jdbcType()

    public static Encoding encodingFor(TInstance type) {
        TClass tclass = TInstance.tClass(type);
        if (tclass == null)
            return null;
        int jdbcType = tclass.jdbcType();
        switch (jdbcType) {
        case Types.DECIMAL:
        case Types.NUMERIC:
            return DecimalEncoder.INSTANCE;
View Full Code Here

Examples of com.foundationdb.server.types.TClass.jdbcType()

       
    public static PostgresType fromTInstance(TInstance type)  {
        TClass tClass = TInstance.tClass(type);
       
        TypeOid oid;
        switch (tClass.jdbcType()) {
        case Types.CHAR:
        case Types.NCHAR:
            /* TODO: Should be:
            oid = TypeOid.CHAR_TYPE_OID;
            break;
View Full Code Here

Examples of com.foundationdb.server.types.TClass.jdbcType()

    public int jdbcType(TInstance type) {
        TClass tclass = TInstance.tClass(type);
        if (tclass == null)
            return Types.OTHER;
        else
            return tclass.jdbcType();
    }

    public Class<?> jdbcClass(TInstance type) {
        TClass tclass = TInstance.tClass(type);
        if (tclass == null)
View Full Code Here

Examples of com.foundationdb.server.types.TClass.jdbcType()

    public Class<?> jdbcClass(TInstance type) {
        TClass tclass = TInstance.tClass(type);
        if (tclass == null)
            return Object.class;
        int jdbcType = tclass.jdbcType();
        switch (jdbcType) {
        case Types.DECIMAL:
        case Types.NUMERIC:
            return BigDecimal.class;
        case Types.BOOLEAN:
View Full Code Here

Examples of com.foundationdb.server.types.TClass.jdbcType()

    /** Does this type represent a signed numeric type? */
    public boolean isTypeSigned(TInstance type) {
        TClass tclass = TInstance.tClass(type);
        if (tclass == null)
            return false;
        switch (tclass.jdbcType()) {
        case Types.BIGINT:
        case Types.DECIMAL:
        case Types.DOUBLE:
        case Types.FLOAT:
        case Types.INTEGER:
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.