Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/**
* Copyright (c) 2009-2016, Data Geekery GmbH (http://www.datageekery.com)
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Other licenses:
* -----------------------------------------------------------------------------
* Commercial licenses for this work are available. These replace the above
* ASL 2.0 and offer limited warranties, support, maintenance, and commercial
* database integrations.
*
* For more information, please visit: http://www.jooq.org/licenses
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package org.jooq.util.derby;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Date;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.UUID;
import org.jooq.DataType;
import org.jooq.SQLDialect;
import org.jooq.impl.DefaultDataType;
import org.jooq.impl.SQLDataType;
import org.jooq.types.UByte;
import org.jooq.types.UInteger;
import org.jooq.types.ULong;
import org.jooq.types.UShort;
/**
* Supported data types for the {@link SQLDialect#DERBY} dialect
*
* @author Lukas Eder
* @see http://db.apache.org/derby/docs/10.7/ref/crefsqlj31068.html
*/
public class DerbyDataType {
// -------------------------------------------------------------------------
// Default SQL data types and synonyms thereof
// -------------------------------------------------------------------------
public static final DataType SMALLINT = new DefaultDataType(SQLDialect.DERBY, SQLDataType.SMALLINT, "smallint");
public static final DataType INT = new DefaultDataType(SQLDialect.DERBY, SQLDataType.INTEGER, "int");
public static final DataType INTEGER = new DefaultDataType(SQLDialect.DERBY, SQLDataType.INTEGER, "integer");
public static final DataType BIGINT = new DefaultDataType(SQLDialect.DERBY, SQLDataType.BIGINT, "bigint");
public static final DataType DOUBLE = new DefaultDataType(SQLDialect.DERBY, SQLDataType.DOUBLE, "double");
public static final DataType DOUBLEPRECISION = new DefaultDataType(SQLDialect.DERBY, SQLDataType.DOUBLE, "double precision");
public static final DataType FLOAT = new DefaultDataType(SQLDialect.DERBY, SQLDataType.FLOAT, "float");
public static final DataType REAL = new DefaultDataType(SQLDialect.DERBY, SQLDataType.REAL, "real");
public static final DataType DECIMAL = new DefaultDataType(SQLDialect.DERBY, SQLDataType.DECIMAL, "decimal");
public static final DataType DEC = new DefaultDataType(SQLDialect.DERBY, SQLDataType.DECIMAL, "dec");
public static final DataType NUMERIC = new DefaultDataType(SQLDialect.DERBY, SQLDataType.NUMERIC, "numeric");
public static final DataType VARCHAR = new DefaultDataType(SQLDialect.DERBY, SQLDataType.VARCHAR, "varchar", "varchar(32672)");
public static final DataType LONGVARCHAR = new DefaultDataType(SQLDialect.DERBY, SQLDataType.LONGVARCHAR, "long varchar");
public static final DataType CHAR = new DefaultDataType(SQLDialect.DERBY, SQLDataType.CHAR, "char", "varchar(32672)");
public static final DataType CHARACTER = new DefaultDataType(SQLDialect.DERBY, SQLDataType.CHAR, "character", "varchar(32672)");
public static final DataType CLOB = new DefaultDataType(SQLDialect.DERBY, SQLDataType.CLOB, "clob");
public static final DataType CHARACTERLARGEOBJECT = new DefaultDataType(SQLDialect.DERBY, SQLDataType.CLOB, "character large object");
public static final DataType CHARVARYING = new DefaultDataType(SQLDialect.DERBY, SQLDataType.VARCHAR, "char varying", "char varying(32672)");
public static final DataType CHARACTERVARYING = new DefaultDataType(SQLDialect.DERBY, SQLDataType.VARCHAR, "character varying", "character varying(32672)");
public static final DataType BOOLEAN = new DefaultDataType(SQLDialect.DERBY, SQLDataType.BOOLEAN, "boolean");
public static final DataType DATE = new DefaultDataType(SQLDialect.DERBY, SQLDataType.DATE, "date");
public static final DataType