Examples of dataTypeDescriptor()


Examples of com.foundationdb.server.types.TInstance.dataTypeDescriptor()

            int usage = invocation.parameterUsage(i);
            if (usage < 0) continue;
            Parameter parameter = invocation.getRoutineParameter(usage);
            TInstance type = parameter.getType();
            int jdbcType = type.typeClass().jdbcType();
            DataTypeDescriptor sqlType = type.dataTypeDescriptor();
            ptypes[i] = new ParameterType(parameter, sqlType, jdbcType, type);
        }
        return new JDBCParameterMetaData(context.getTypesTranslator(), Arrays.asList(ptypes));
    }
View Full Code Here

Examples of com.foundationdb.server.types.TInstance.dataTypeDescriptor()

            assert (parameters != null) && parameters.contains(param) : param;
            TInstance type;
            DataTypeDescriptor sqlType = param.getType();
            if (sqlType == null) {
                type = typesTranslator.typeClassForJDBCType(Types.INTEGER).instance(true);
                sqlType = type.dataTypeDescriptor();
                param.setType(sqlType);
            }
            else {
                type = typesTranslator.typeForSQLType(sqlType);
            }
View Full Code Here

Examples of com.foundationdb.server.types.TInstance.dataTypeDescriptor()

                    else
                        type = typesTranslator.typeClassForString().instance(true);
                    sharedTpv.type(type);
                }
                if (sqlType == null)
                    sqlType = type.dataTypeDescriptor();
                for (ExpressionNode param : siblings) {
                    param.setSQLtype(sqlType);
                    if (param.getSQLsource() != null) {
                        try {
                            param.getSQLsource().setType(sqlType);
View Full Code Here

Examples of com.foundationdb.server.types.TInstance.dataTypeDescriptor()

                    type = StringAttribute.copyWithCollation(type, n.getSQLtype().getCharacterAttributes());
                    tpv = new TPreptimeValue(type, tpv.value());
                    n.setPreptimeValue(tpv);
                }
                if (type != null) {
                    DataTypeDescriptor newDtd = type.dataTypeDescriptor();
                    n.setSQLtype(newDtd);
                }
            }
            return n;
        }
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.