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.
/*
* 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.h2;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Date;
import java.sql.Time;
import java.sql.Timestamp;
import java.time.OffsetDateTime;
import java.util.UUID;
import org.jooq.DataType;
import org.jooq.Record;
import org.jooq.Result;
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#H2} dialect
*
* @author Lukas Eder
* @see http://www.h2database.com/html/datatypes.html
*/
public class H2DataType {
// -------------------------------------------------------------------------
// Default SQL data types and synonyms thereof
// -------------------------------------------------------------------------
public static final DataType TINYINT = new DefaultDataType(SQLDialect.H2, SQLDataType.TINYINT, "tinyint");
public static final DataType SMALLINT = new DefaultDataType(SQLDialect.H2, SQLDataType.SMALLINT, "smallint");
public static final DataType INT2 = new DefaultDataType(SQLDialect.H2, SQLDataType.SMALLINT, "int2");
public static final DataType INT = new DefaultDataType(SQLDialect.H2, SQLDataType.INTEGER, "int");
public static final DataType INTEGER = new DefaultDataType(SQLDialect.H2, SQLDataType.INTEGER, "integer");
public static final DataType MEDIUMINT = new DefaultDataType(SQLDialect.H2, SQLDataType.INTEGER, "mediumint");
public static final DataType INT4 = new DefaultDataType(SQLDialect.H2, SQLDataType.INTEGER, "int4");
public static final DataType SIGNED = new DefaultDataType(SQLDialect.H2, SQLDataType.INTEGER, "signed");
public static final DataType BOOLEAN = new DefaultDataType(SQLDialect.H2, SQLDataType.BOOLEAN, "boolean");
public static final DataType BOOL = new DefaultDataType(SQLDialect.H2, SQLDataType.BOOLEAN, "bool");
public static final DataType BIT = new DefaultDataType(SQLDialect.H2, SQLDataType.BIT, "bit");
public static final DataType BIGINT = new DefaultDataType(SQLDialect.H2, SQLDataType.BIGINT, "bigint");
public static final DataType INT8 = new DefaultDataType(SQLDialect.H2, SQLDataType.BIGINT, "int8");
public static final DataType DECIMAL = new DefaultDataType(SQLDialect.H2, SQLDataType.DECIMAL, "decimal");
public static final DataType DEC = new DefaultDataType(SQLDialect.H2, SQLDataType.DECIMAL, "dec");
public static final DataType NUMBER = new DefaultDataType(SQLDialect.H2, SQLDataType.NUMERIC, "number");
public static final DataType NUMERIC = new DefaultDataType(SQLDialect.H2, SQLDataType.NUMERIC, "numeric");
public static final DataType DOUBLE = new DefaultDataType(SQLDialect.H2, SQLDataType.DOUBLE, "double");
public static final DataType FLOAT = new DefaultDataType(SQLDialect.H2, SQLDataType.FLOAT, "float");
public static final DataType FLOAT4 = new DefaultDataType(SQLDialect.H2, SQLDataType.FLOAT, "float4");
public static final DataType FLOAT8 = new DefaultDataType(SQLDialect.H2, SQLDataType.FLOAT, "float8");
public static final DataType REAL = new DefaultDataType(SQLDialect.H2, SQLDataType.REAL, "real");
public static final DataType