Examples of DatatypeFactory


Examples of org.mule.transformer.types.DataTypeFactory

    }

    public static boolean isSourceTypeSupportedByFirst(List<Transformer> transformers, Class clazz)
    {
        Transformer transformer = firstOrNull(transformers);
        return null != transformer && transformer.isSourceDataTypeSupported(new DataTypeFactory().create(clazz));
    }
View Full Code Here

Examples of org.slim3.gen.datastore.DataTypeFactory

                    AnnotationConstants.name);
            if (value != null && value.length() > 0) {
                name = value;
            }
        }
        DataTypeFactory dataTypeFactory = creaetDataTypeFactory();
        DataType dataType =
            dataTypeFactory.createDataType(fieldDeclaration, fieldDeclaration
                .getType());
        AttributeMetaDesc attributeMetaDesc =
            new AttributeMetaDesc(name, attributeName, dataType);
        handleField(
            attributeMetaDesc,
View Full Code Here

Examples of org.slim3.gen.datastore.DataTypeFactory

     * Creates a data type factory.
     *
     * @return a data type factory
     */
    protected DataTypeFactory creaetDataTypeFactory() {
        return new DataTypeFactory(env);
    }
View Full Code Here

Examples of org.sql.generation.api.grammar.factories.DataTypeFactory

    }

    private void initTypes()
    {

        DataTypeFactory dt = this._vendor.getDataTypeFactory();

        this._primitiveTypes = new HashMap<>();
        this._primitiveTypes.put( Boolean.class, dt.sqlBoolean() );
        this._primitiveTypes.put( Byte.class, dt.smallInt() );
        this._primitiveTypes.put( Short.class, dt.smallInt() );
        this._primitiveTypes.put( Integer.class, dt.integer() );
        this._primitiveTypes.put( Long.class, dt.bigInt() );
        this._primitiveTypes.put( Float.class, dt.real() );
        this._primitiveTypes.put( Double.class, dt.doublePrecision() );
        this._primitiveTypes.put( Date.class, dt.timeStamp( true ) );
        this._primitiveTypes.put( Character.class, dt.integer() );
        this._primitiveTypes.put( String.class, dt.sqlVarChar( 5000 ) );
        this._primitiveTypes.put( BigInteger.class, dt.decimal() );
        this._primitiveTypes.put( BigDecimal.class, dt.decimal() );

        Map<Class<?>, Integer> jdbcTypes = new HashMap<>();
        jdbcTypes.put( Boolean.class, Types.BOOLEAN );
        jdbcTypes.put( Byte.class, Types.SMALLINT );
        jdbcTypes.put( Short.class, Types.SMALLINT );
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.