Package org.castor.ddlgen.typeinfo

Examples of org.castor.ddlgen.typeinfo.OptionalPrecisionType


        this.add(new NoParamType("smallint", "SMALLINT"));
        this.add(new NoParamType("integer", "INTEGER"));
        this.add(new NoParamType("int", "INTEGER"));
        this.add(new NoParamType("bigint", "BIGINT"));
       
        this.add(new OptionalPrecisionType("float", "FLOAT", conf));
        this.add(new NoParamType("double", "DOUBLE PRECISION"));
        this.add(new NoParamType("real", "REAL"));
        this.add(new OptionalPrecisionDecimalsType("numeric", "NUMERIC", conf));
        this.add(new OptionalPrecisionDecimalsType("decimal", "DECIMAL", conf));
View Full Code Here


     * {@inheritDoc}
     */
    protected void initialize(final DDLGenConfiguration conf) {
        // numeric types
        this.add(new NoParamType("bit", "TINYINT(1)"));
        this.add(new OptionalPrecisionType("tinyint", "TINYINT", conf));
        this.add(new OptionalPrecisionType("smallint", "SMALLINT", conf));
        this.add(new OptionalPrecisionType("integer", "INTEGER", conf));
        this.add(new OptionalPrecisionType("int", "INTEGER", conf));
        this.add(new OptionalPrecisionType("bigint", "BIGINT", conf));
       
        this.add(new OptionalPrecisionDecimalsType("float", "FLOAT", conf));
        this.add(new OptionalPrecisionDecimalsType("double", "DOUBLE", conf));
        this.add(new OptionalPrecisionDecimalsType("real", "REAL", conf));
        this.add(new OptionalPrecisionDecimalsType("numeric", "NUMERIC", conf));
        this.add(new OptionalPrecisionDecimalsType("decimal", "DECIMAL", conf));

        // character types
        this.add(new OptionalLengthType("char", "CHAR", conf));
        this.add(new OptionalLengthType("varchar", "VARCHAR", conf));
        LOG.warn("MySql does not support 'LONGVARCHAR' type, use VARCHAR instead.");
        this.add(new OptionalLengthType("longvarchar", "VARCHAR", conf));
       
        // date and time types
        this.add(new NoParamType("date", "DATE"));
        this.add(new NoParamType("time", "TIME"));
        this.add(new OptionalPrecisionType("timestamp", "TIMESTAMP", conf));
       
        // other types
        this.add(new RequiredLengthType("binary", "BINARY", conf));
        this.add(new RequiredLengthType("varbinary", "VARBINARY", conf));
        LOG.warn("MySql does not support 'LONGBINARY' type, use VARBINARY instead.");
View Full Code Here

        LOG.warn("PostgreSQL does not support 'LONGVARCHAR' type, use VARCHAR instead.");
        this.add(new OptionalLengthType("longvarchar", "VARCHAR", conf));
       
        // date and time types
        this.add(new NoParamType("date", "DATE"));
        this.add(new OptionalPrecisionType("time", "TIME", conf));
        this.add(new OptionalPrecisionType("timestamp", "TIMESTAMP", conf));
       
        // other types
        LOG.warn("PostgreSQL does not support 'BINARY' type, use BYTEA instead.");
        this.add(new NoParamType("binary", "BYTEA"));
        LOG.warn("PostgreSQL does not support 'VARBINARY' type, use BYTEA instead.");
View Full Code Here

        this.add(new NoParamType("integer", "INTEGER"));
        this.add(new NoParamType("int", "INTEGER"));
        LOG.warn("Oracle does not support 'BIGINT' type, use NUMERIC instead.");
        this.add(new NoParamType("bigint", "NUMERIC"));
       
        this.add(new OptionalPrecisionType("float", "FLOAT", conf));
        this.add(new NoParamType("double", "DOUBLE PRECISION"));
        this.add(new NoParamType("real", "REAL"));
        this.add(new OptionalPrecisionDecimalsType("numeric", "NUMERIC", conf));
        this.add(new OptionalPrecisionDecimalsType("decimal", "DECIMAL", conf));

        // character types
        this.add(new OptionalLengthType("char", "CHAR", conf));
        this.add(new RequiredLengthType("varchar", "VARCHAR2", conf));
        this.add(new NoParamType("longvarchar", "LONG"));
       
        // date and time types
        this.add(new NoParamType("date", "DATE"));
        this.add(new NoParamType("time", "DATE"));
        this.add(new OptionalPrecisionType("timestamp", "TIMESTAMP", conf));
       
        // other types
        LOG.warn("Oracle does not support 'BINARY' type, use BLOB instead.");       
        this.add(new NoParamType("binary", "BLOB"));
        LOG.warn("Oracle does not support 'VARBINARY' type, use BLOB instead.");       
View Full Code Here

        this.add(new NoParamType("smallint", "SMALLINT"));
        this.add(new NoParamType("integer", "INTEGER"));
        this.add(new NoParamType("int", "INTEGER"));
        this.add(new NoParamType("bigint", "BIGINT"));
       
        this.add(new OptionalPrecisionType("float", "FLOAT", conf));
        this.add(new NoParamType("double", "DOUBLE"));
        this.add(new NoParamType("real", "REAL"));
        this.add(new OptionalPrecisionDecimalsType("numeric", "NUMERIC", conf));
        this.add(new OptionalPrecisionDecimalsType("decimal", "DECIMAL", conf));
View Full Code Here

TOP

Related Classes of org.castor.ddlgen.typeinfo.OptionalPrecisionType

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.