[#1257] Add CUBRID support - Added dialect, factory, jooq-meta support, demodb generation
This commit is contained in:
parent
3c242dd05d
commit
32b312078e
@ -38,12 +38,14 @@ package org.jooq.util;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.StringReader;
|
||||
import java.math.BigInteger;
|
||||
import java.sql.Connection;
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.SQLDialect;
|
||||
import org.jooq.impl.SQLDataType;
|
||||
import org.jooq.tools.JooqLogger;
|
||||
import org.jooq.tools.csv.CSVReader;
|
||||
import org.jooq.util.jaxb.CustomType;
|
||||
@ -665,4 +667,29 @@ public abstract class AbstractDatabase implements Database {
|
||||
* {@link #getArrays(SchemaDefinition)}
|
||||
*/
|
||||
protected abstract List<ArrayDefinition> getArrays0() throws SQLException;
|
||||
|
||||
/**
|
||||
* Get the data type considering a known max value
|
||||
*/
|
||||
protected final DataTypeDefinition getDataTypeForMAX_VAL(SchemaDefinition schema, BigInteger value) {
|
||||
DataTypeDefinition type;
|
||||
|
||||
if (BigInteger.valueOf(Byte.MAX_VALUE).compareTo(value) >= 0) {
|
||||
type = new DefaultDataTypeDefinition(this, schema, SQLDataType.NUMERIC.getTypeName(), 0, 2, 0);
|
||||
}
|
||||
else if (BigInteger.valueOf(Short.MAX_VALUE).compareTo(value) >= 0) {
|
||||
type = new DefaultDataTypeDefinition(this, schema, SQLDataType.NUMERIC.getTypeName(), 0, 4, 0);
|
||||
}
|
||||
else if (BigInteger.valueOf(Integer.MAX_VALUE).compareTo(value) >= 0) {
|
||||
type = new DefaultDataTypeDefinition(this, schema, SQLDataType.NUMERIC.getTypeName(), 0, 9, 0);
|
||||
}
|
||||
else if (BigInteger.valueOf(Long.MAX_VALUE).compareTo(value) >= 0) {
|
||||
type = new DefaultDataTypeDefinition(this, schema, SQLDataType.NUMERIC.getTypeName(), 0, 18, 0);
|
||||
}
|
||||
else {
|
||||
type = new DefaultDataTypeDefinition(this, schema, SQLDataType.NUMERIC.getTypeName(), 0, 38, 0);
|
||||
}
|
||||
|
||||
return type;
|
||||
}
|
||||
}
|
||||
|
||||
209
jOOQ-meta/src/main/java/org/jooq/util/cubrid/CUBRIDDatabase.java
Normal file
209
jOOQ-meta/src/main/java/org/jooq/util/cubrid/CUBRIDDatabase.java
Normal file
@ -0,0 +1,209 @@
|
||||
/**
|
||||
* Copyright (c) 2009-2012, Lukas Eder, lukas.eder@gmail.com
|
||||
* All rights reserved.
|
||||
*
|
||||
* This software is licensed to you under the Apache License, Version 2.0
|
||||
* (the "License"); You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* . Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
*
|
||||
* . Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* . Neither the name "jOOQ" nor the names of its contributors may be
|
||||
* used to endorse or promote products derived from this software without
|
||||
* specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package org.jooq.util.cubrid;
|
||||
|
||||
import static org.jooq.util.cubrid.dba.Tables.DB_CLASS;
|
||||
import static org.jooq.util.cubrid.dba.Tables.DB_INDEX;
|
||||
import static org.jooq.util.cubrid.dba.Tables.DB_INDEX_KEY;
|
||||
import static org.jooq.util.cubrid.dba.Tables.DB_SERIAL;
|
||||
|
||||
import java.math.BigInteger;
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Result;
|
||||
import org.jooq.impl.Factory;
|
||||
import org.jooq.util.AbstractDatabase;
|
||||
import org.jooq.util.ArrayDefinition;
|
||||
import org.jooq.util.DataTypeDefinition;
|
||||
import org.jooq.util.DefaultRelations;
|
||||
import org.jooq.util.DefaultSequenceDefinition;
|
||||
import org.jooq.util.EnumDefinition;
|
||||
import org.jooq.util.PackageDefinition;
|
||||
import org.jooq.util.RoutineDefinition;
|
||||
import org.jooq.util.SchemaDefinition;
|
||||
import org.jooq.util.SequenceDefinition;
|
||||
import org.jooq.util.TableDefinition;
|
||||
import org.jooq.util.UDTDefinition;
|
||||
|
||||
/**
|
||||
* @author Lukas Eder
|
||||
*/
|
||||
public class CUBRIDDatabase extends AbstractDatabase {
|
||||
|
||||
@Override
|
||||
protected void loadPrimaryKeys(DefaultRelations relations) throws SQLException {
|
||||
for (Record record : fetchKeys(DB_INDEX.IS_UNIQUE.isTrue().and(DB_INDEX.IS_PRIMARY_KEY.isFalse()))) {
|
||||
SchemaDefinition schema = getSchema(record.getValue(DB_CLASS.OWNER_NAME));
|
||||
String key = record.getValue(DB_INDEX.INDEX_NAME);
|
||||
String tableName = record.getValue(DB_CLASS.CLASS_NAME);
|
||||
String columnName = record.getValue(DB_INDEX_KEY.KEY_ATTR_NAME);
|
||||
|
||||
TableDefinition table = getTable(schema, tableName);
|
||||
if (table != null) {
|
||||
relations.addUniqueKey(key, table.getColumn(columnName));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void loadUniqueKeys(DefaultRelations relations) throws SQLException {
|
||||
for (Record record : fetchKeys(DB_INDEX.IS_PRIMARY_KEY.isTrue())) {
|
||||
SchemaDefinition schema = getSchema(record.getValue(DB_CLASS.OWNER_NAME));
|
||||
String key = record.getValue(DB_INDEX.INDEX_NAME);
|
||||
String tableName = record.getValue(DB_CLASS.CLASS_NAME);
|
||||
String columnName = record.getValue(DB_INDEX_KEY.KEY_ATTR_NAME);
|
||||
|
||||
TableDefinition table = getTable(schema, tableName);
|
||||
if (table != null) {
|
||||
relations.addPrimaryKey(key, table.getColumn(columnName));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private Result<Record> fetchKeys(Condition condition) {
|
||||
return
|
||||
create().select(
|
||||
DB_INDEX.INDEX_NAME,
|
||||
DB_INDEX_KEY.KEY_ATTR_NAME,
|
||||
DB_CLASS.CLASS_NAME,
|
||||
DB_CLASS.OWNER_NAME)
|
||||
.from(DB_INDEX)
|
||||
.join(DB_CLASS).on(DB_INDEX.CLASS_NAME.equal(DB_CLASS.CLASS_NAME))
|
||||
.join(DB_INDEX_KEY).on(
|
||||
DB_INDEX_KEY.INDEX_NAME.equal(DB_INDEX.INDEX_NAME).and(
|
||||
DB_INDEX_KEY.CLASS_NAME.equal(DB_INDEX.CLASS_NAME)))
|
||||
.where(condition)
|
||||
.and(DB_CLASS.OWNER_NAME.in(getInputSchemata()))
|
||||
.orderBy(
|
||||
DB_CLASS.OWNER_NAME.asc(),
|
||||
DB_INDEX.INDEX_NAME.asc())
|
||||
.fetch();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void loadForeignKeys(DefaultRelations relations) throws SQLException {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected List<SequenceDefinition> getSequences0() throws SQLException {
|
||||
List<SequenceDefinition> result = new ArrayList<SequenceDefinition>();
|
||||
|
||||
for (Record record : create()
|
||||
.select(
|
||||
DB_SERIAL.NAME,
|
||||
DB_SERIAL.MAX_VAL)
|
||||
.from(DB_SERIAL)
|
||||
.fetch()) {
|
||||
|
||||
// TODO: How to join DB_SERIAL.OWNER?
|
||||
SchemaDefinition schema = getSchema(getInputSchemata().get(0));
|
||||
BigInteger value = record.getValue(DB_SERIAL.MAX_VAL, BigInteger.class, BigInteger.valueOf(Long.MAX_VALUE));
|
||||
DataTypeDefinition type = getDataTypeForMAX_VAL(schema, value);
|
||||
|
||||
result.add(new DefaultSequenceDefinition(
|
||||
schema,
|
||||
record.getValue(DB_SERIAL.NAME),
|
||||
type));
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected List<TableDefinition> getTables0() throws SQLException {
|
||||
List<TableDefinition> result = new ArrayList<TableDefinition>();
|
||||
|
||||
for (Record record : create()
|
||||
.select(
|
||||
DB_CLASS.OWNER_NAME,
|
||||
DB_CLASS.CLASS_NAME)
|
||||
.from(DB_CLASS)
|
||||
.where(DB_CLASS.OWNER_NAME.in(getInputSchemata()))
|
||||
.orderBy(
|
||||
DB_CLASS.OWNER_NAME.asc(),
|
||||
DB_CLASS.CLASS_NAME.asc())
|
||||
.fetch()) {
|
||||
|
||||
SchemaDefinition schema = getSchema(record.getValue(DB_CLASS.OWNER_NAME));
|
||||
String name = record.getValue(DB_CLASS.CLASS_NAME);
|
||||
|
||||
CUBRIDTableDefinition table = new CUBRIDTableDefinition(schema, name, null);
|
||||
result.add(table);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected List<EnumDefinition> getEnums0() throws SQLException {
|
||||
List<EnumDefinition> result = new ArrayList<EnumDefinition>();
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected List<UDTDefinition> getUDTs0() throws SQLException {
|
||||
List<UDTDefinition> result = new ArrayList<UDTDefinition>();
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected List<ArrayDefinition> getArrays0() throws SQLException {
|
||||
List<ArrayDefinition> result = new ArrayList<ArrayDefinition>();
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected List<RoutineDefinition> getRoutines0() throws SQLException {
|
||||
List<RoutineDefinition> result = new ArrayList<RoutineDefinition>();
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected List<PackageDefinition> getPackages0() throws SQLException {
|
||||
List<PackageDefinition> result = new ArrayList<PackageDefinition>();
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Factory create() {
|
||||
return new CUBRIDFactory(getConnection());
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,109 @@
|
||||
/**
|
||||
* Copyright (c) 2009-2012, Lukas Eder, lukas.eder@gmail.com
|
||||
* All rights reserved.
|
||||
*
|
||||
* This software is licensed to you under the Apache License, Version 2.0
|
||||
* (the "License"); You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* . Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
*
|
||||
* . Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* . Neither the name "jOOQ" nor the names of its contributors may be
|
||||
* used to endorse or promote products derived from this software without
|
||||
* specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package org.jooq.util.cubrid;
|
||||
|
||||
import static org.jooq.util.cubrid.dba.Tables.DB_ATTRIBUTE;
|
||||
import static org.jooq.util.cubrid.dba.Tables.DB_SERIAL;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Record;
|
||||
import org.jooq.util.AbstractTableDefinition;
|
||||
import org.jooq.util.ColumnDefinition;
|
||||
import org.jooq.util.DataTypeDefinition;
|
||||
import org.jooq.util.DefaultColumnDefinition;
|
||||
import org.jooq.util.DefaultDataTypeDefinition;
|
||||
import org.jooq.util.SchemaDefinition;
|
||||
|
||||
/**
|
||||
* @author Lukas Eder
|
||||
*/
|
||||
public class CUBRIDTableDefinition extends AbstractTableDefinition {
|
||||
|
||||
public CUBRIDTableDefinition(SchemaDefinition schema, String name, String comment) {
|
||||
super(schema, name, comment);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ColumnDefinition> getElements0() throws SQLException {
|
||||
List<ColumnDefinition> result = new ArrayList<ColumnDefinition>();
|
||||
|
||||
for (Record record : create()
|
||||
.select(
|
||||
DB_ATTRIBUTE.ATTR_NAME,
|
||||
DB_ATTRIBUTE.DEF_ORDER,
|
||||
DB_ATTRIBUTE.DATA_TYPE,
|
||||
DB_ATTRIBUTE.PREC,
|
||||
DB_ATTRIBUTE.SCALE,
|
||||
DB_ATTRIBUTE.IS_NULLABLE,
|
||||
DB_SERIAL.NAME)
|
||||
.from(DB_ATTRIBUTE)
|
||||
.leftOuterJoin(DB_SERIAL).on(
|
||||
DB_ATTRIBUTE.ATTR_NAME.equal(DB_SERIAL.ATT_NAME).and(
|
||||
DB_ATTRIBUTE.CLASS_NAME.equal(DB_SERIAL.CLASS_NAME)))
|
||||
.where(DB_ATTRIBUTE.CLASS_NAME.equal(getName()))
|
||||
.orderBy(DB_ATTRIBUTE.DEF_ORDER)
|
||||
.fetch()) {
|
||||
|
||||
String dataType = record.getValue(DB_ATTRIBUTE.DATA_TYPE);
|
||||
|
||||
DataTypeDefinition type = new DefaultDataTypeDefinition(
|
||||
getDatabase(),
|
||||
getSchema(),
|
||||
dataType,
|
||||
record.getValue(DB_ATTRIBUTE.PREC),
|
||||
record.getValue(DB_ATTRIBUTE.PREC),
|
||||
record.getValue(DB_ATTRIBUTE.SCALE),
|
||||
dataType);
|
||||
|
||||
ColumnDefinition column = new DefaultColumnDefinition(
|
||||
getDatabase().getTable(getSchema(), getName()),
|
||||
record.getValue(DB_ATTRIBUTE.ATTR_NAME),
|
||||
record.getValue(DB_ATTRIBUTE.DEF_ORDER),
|
||||
type,
|
||||
record.getValue(DB_ATTRIBUTE.IS_NULLABLE, boolean.class),
|
||||
record.getValue(DB_SERIAL.NAME) != null,
|
||||
null);
|
||||
|
||||
result.add(column);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
36
jOOQ-meta/src/main/java/org/jooq/util/cubrid/dba/Dba.java
Normal file
36
jOOQ-meta/src/main/java/org/jooq/util/cubrid/dba/Dba.java
Normal file
@ -0,0 +1,36 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.util.cubrid.dba;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.1.0"},
|
||||
comments = "This class is generated by jOOQ")
|
||||
public class Dba extends org.jooq.impl.SchemaImpl {
|
||||
|
||||
private static final long serialVersionUID = 122025387;
|
||||
|
||||
/**
|
||||
* The singleton instance of DBA
|
||||
*/
|
||||
public static final Dba DBA = new Dba();
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Dba() {
|
||||
super("DBA");
|
||||
}
|
||||
|
||||
@Override
|
||||
public final java.util.List<org.jooq.Table<?>> getTables() {
|
||||
return java.util.Arrays.<org.jooq.Table<?>>asList(
|
||||
org.jooq.util.cubrid.dba.tables.DbAttribute.DB_ATTRIBUTE,
|
||||
org.jooq.util.cubrid.dba.tables.DbClass.DB_CLASS,
|
||||
org.jooq.util.cubrid.dba.tables.DbIndex.DB_INDEX,
|
||||
org.jooq.util.cubrid.dba.tables.DbIndexKey.DB_INDEX_KEY,
|
||||
org.jooq.util.cubrid.dba.tables.DbSerial.DB_SERIAL);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.util.cubrid.dba;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.1.0"},
|
||||
comments = "This class is generated by jOOQ")
|
||||
public class DbaFactory extends org.jooq.util.ase.ASEFactory {
|
||||
|
||||
private static final long serialVersionUID = 2132590899;
|
||||
|
||||
/**
|
||||
* Create a factory with a connection
|
||||
*
|
||||
* @param connection The connection to use with objects created from this factory
|
||||
*/
|
||||
public DbaFactory(java.sql.Connection connection) {
|
||||
super(connection);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a connection and some settings
|
||||
*
|
||||
* @param connection The connection to use with objects created from this factory
|
||||
* @param settings The settings to apply to objects created from this factory
|
||||
*/
|
||||
public DbaFactory(java.sql.Connection connection, org.jooq.conf.Settings settings) {
|
||||
super(connection, settings);
|
||||
}
|
||||
}
|
||||
44
jOOQ-meta/src/main/java/org/jooq/util/cubrid/dba/Tables.java
Normal file
44
jOOQ-meta/src/main/java/org/jooq/util/cubrid/dba/Tables.java
Normal file
@ -0,0 +1,44 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.util.cubrid.dba;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*
|
||||
* Convenience access to all tables in DBA
|
||||
*/
|
||||
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.1.0"},
|
||||
comments = "This class is generated by jOOQ")
|
||||
public final class Tables {
|
||||
|
||||
/**
|
||||
* The table DBA.db_attribute
|
||||
*/
|
||||
public static org.jooq.util.cubrid.dba.tables.DbAttribute DB_ATTRIBUTE = org.jooq.util.cubrid.dba.tables.DbAttribute.DB_ATTRIBUTE;
|
||||
|
||||
/**
|
||||
* The table DBA.db_class
|
||||
*/
|
||||
public static org.jooq.util.cubrid.dba.tables.DbClass DB_CLASS = org.jooq.util.cubrid.dba.tables.DbClass.DB_CLASS;
|
||||
|
||||
/**
|
||||
* The table DBA.db_index
|
||||
*/
|
||||
public static org.jooq.util.cubrid.dba.tables.DbIndex DB_INDEX = org.jooq.util.cubrid.dba.tables.DbIndex.DB_INDEX;
|
||||
|
||||
/**
|
||||
* The table DBA.db_index_key
|
||||
*/
|
||||
public static org.jooq.util.cubrid.dba.tables.DbIndexKey DB_INDEX_KEY = org.jooq.util.cubrid.dba.tables.DbIndexKey.DB_INDEX_KEY;
|
||||
|
||||
/**
|
||||
* The table DBA.db_serial
|
||||
*/
|
||||
public static org.jooq.util.cubrid.dba.tables.DbSerial DB_SERIAL = org.jooq.util.cubrid.dba.tables.DbSerial.DB_SERIAL;
|
||||
|
||||
/**
|
||||
* No instances
|
||||
*/
|
||||
private Tables() {}
|
||||
}
|
||||
@ -0,0 +1,116 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.util.cubrid.dba.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.1.0"},
|
||||
comments = "This class is generated by jOOQ")
|
||||
public class DbAttribute extends org.jooq.impl.TableImpl<org.jooq.Record> {
|
||||
|
||||
private static final long serialVersionUID = 1673379172;
|
||||
|
||||
/**
|
||||
* The singleton instance of DBA.db_attribute
|
||||
*/
|
||||
public static final org.jooq.util.cubrid.dba.tables.DbAttribute DB_ATTRIBUTE = new org.jooq.util.cubrid.dba.tables.DbAttribute();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
private static final java.lang.Class<org.jooq.Record> __RECORD_TYPE = org.jooq.Record.class;
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<org.jooq.Record> getRecordType() {
|
||||
return __RECORD_TYPE;
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> ATTR_NAME = createField("attr_name", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> CLASS_NAME = createField("class_name", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> ATTR_TYPE = createField("attr_type", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.Integer> DEF_ORDER = createField("def_order", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> FROM_CLASS_NAME = createField("from_class_name", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> FROM_ATTR_NAME = createField("from_attr_name", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> DATA_TYPE = createField("data_type", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.Integer> PREC = createField("prec", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.Integer> SCALE = createField("scale", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.Integer> CODE_SET = createField("code_set", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> DOMAIN_CLASS_NAME = createField("domain_class_name", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> DEFAULT_VALUE = createField("default_value", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> IS_NULLABLE = createField("is_nullable", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private DbAttribute() {
|
||||
super("db_attribute", org.jooq.util.cubrid.dba.Dba.DBA);
|
||||
}
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private DbAttribute(java.lang.String alias) {
|
||||
super(alias, org.jooq.util.cubrid.dba.Dba.DBA, org.jooq.util.cubrid.dba.tables.DbAttribute.DB_ATTRIBUTE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.jooq.util.cubrid.dba.tables.DbAttribute as(java.lang.String alias) {
|
||||
return new org.jooq.util.cubrid.dba.tables.DbAttribute(alias);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,81 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.util.cubrid.dba.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.1.0"},
|
||||
comments = "This class is generated by jOOQ")
|
||||
public class DbClass extends org.jooq.impl.TableImpl<org.jooq.Record> {
|
||||
|
||||
private static final long serialVersionUID = -742829459;
|
||||
|
||||
/**
|
||||
* The singleton instance of DBA.db_class
|
||||
*/
|
||||
public static final org.jooq.util.cubrid.dba.tables.DbClass DB_CLASS = new org.jooq.util.cubrid.dba.tables.DbClass();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
private static final java.lang.Class<org.jooq.Record> __RECORD_TYPE = org.jooq.Record.class;
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<org.jooq.Record> getRecordType() {
|
||||
return __RECORD_TYPE;
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> CLASS_NAME = createField("class_name", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> OWNER_NAME = createField("owner_name", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> CLASS_TYPE = createField("class_type", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> IS_SYSTEM_CLASS = createField("is_system_class", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> PARTITIONED = createField("partitioned", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> IS_REUSE_OID_CLASS = createField("is_reuse_oid_class", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private DbClass() {
|
||||
super("db_class", org.jooq.util.cubrid.dba.Dba.DBA);
|
||||
}
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private DbClass(java.lang.String alias) {
|
||||
super(alias, org.jooq.util.cubrid.dba.Dba.DBA, org.jooq.util.cubrid.dba.tables.DbClass.DB_CLASS);
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.jooq.util.cubrid.dba.tables.DbClass as(java.lang.String alias) {
|
||||
return new org.jooq.util.cubrid.dba.tables.DbClass(alias);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,86 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.util.cubrid.dba.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.1.0"},
|
||||
comments = "This class is generated by jOOQ")
|
||||
public class DbIndex extends org.jooq.impl.TableImpl<org.jooq.Record> {
|
||||
|
||||
private static final long serialVersionUID = 114806504;
|
||||
|
||||
/**
|
||||
* The singleton instance of DBA.db_index
|
||||
*/
|
||||
public static final org.jooq.util.cubrid.dba.tables.DbIndex DB_INDEX = new org.jooq.util.cubrid.dba.tables.DbIndex();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
private static final java.lang.Class<org.jooq.Record> __RECORD_TYPE = org.jooq.Record.class;
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<org.jooq.Record> getRecordType() {
|
||||
return __RECORD_TYPE;
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> INDEX_NAME = createField("index_name", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> IS_UNIQUE = createField("is_unique", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> IS_REVERSE = createField("is_reverse", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> CLASS_NAME = createField("class_name", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.Integer> KEY_COUNT = createField("key_count", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> IS_PRIMARY_KEY = createField("is_primary_key", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> IS_FOREIGN_KEY = createField("is_foreign_key", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private DbIndex() {
|
||||
super("db_index", org.jooq.util.cubrid.dba.Dba.DBA);
|
||||
}
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private DbIndex(java.lang.String alias) {
|
||||
super(alias, org.jooq.util.cubrid.dba.Dba.DBA, org.jooq.util.cubrid.dba.tables.DbIndex.DB_INDEX);
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.jooq.util.cubrid.dba.tables.DbIndex as(java.lang.String alias) {
|
||||
return new org.jooq.util.cubrid.dba.tables.DbIndex(alias);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,81 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.util.cubrid.dba.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.1.0"},
|
||||
comments = "This class is generated by jOOQ")
|
||||
public class DbIndexKey extends org.jooq.impl.TableImpl<org.jooq.Record> {
|
||||
|
||||
private static final long serialVersionUID = -859845233;
|
||||
|
||||
/**
|
||||
* The singleton instance of DBA.db_index_key
|
||||
*/
|
||||
public static final org.jooq.util.cubrid.dba.tables.DbIndexKey DB_INDEX_KEY = new org.jooq.util.cubrid.dba.tables.DbIndexKey();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
private static final java.lang.Class<org.jooq.Record> __RECORD_TYPE = org.jooq.Record.class;
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<org.jooq.Record> getRecordType() {
|
||||
return __RECORD_TYPE;
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> INDEX_NAME = createField("index_name", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> CLASS_NAME = createField("class_name", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> KEY_ATTR_NAME = createField("key_attr_name", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.Integer> KEY_ORDER = createField("key_order", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> ASC_DESC = createField("asc_desc", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.Integer> KEY_PREFIX_LENGTH = createField("key_prefix_length", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private DbIndexKey() {
|
||||
super("db_index_key", org.jooq.util.cubrid.dba.Dba.DBA);
|
||||
}
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private DbIndexKey(java.lang.String alias) {
|
||||
super(alias, org.jooq.util.cubrid.dba.Dba.DBA, org.jooq.util.cubrid.dba.tables.DbIndexKey.DB_INDEX_KEY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.jooq.util.cubrid.dba.tables.DbIndexKey as(java.lang.String alias) {
|
||||
return new org.jooq.util.cubrid.dba.tables.DbIndexKey(alias);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,111 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.util.cubrid.dba.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = {"http://www.jooq.org", "2.1.0"},
|
||||
comments = "This class is generated by jOOQ")
|
||||
public class DbSerial extends org.jooq.impl.TableImpl<org.jooq.Record> {
|
||||
|
||||
private static final long serialVersionUID = -1925603367;
|
||||
|
||||
/**
|
||||
* The singleton instance of DBA.db_serial
|
||||
*/
|
||||
public static final org.jooq.util.cubrid.dba.tables.DbSerial DB_SERIAL = new org.jooq.util.cubrid.dba.tables.DbSerial();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
private static final java.lang.Class<org.jooq.Record> __RECORD_TYPE = org.jooq.Record.class;
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<org.jooq.Record> getRecordType() {
|
||||
return __RECORD_TYPE;
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> NAME = createField("name", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* The SQL type of this item (OBJECT) could not be mapped.<br/>
|
||||
* Deserialising this field might not work!
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.Object> OWNER = createField("owner", org.jooq.util.cubrid.CUBRIDDataType.getDefaultDataType("OBJECT"), this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.math.BigInteger> CURRENT_VAL = createField("current_val", org.jooq.impl.SQLDataType.DECIMAL_INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.math.BigInteger> INCREMENT_VAL = createField("increment_val", org.jooq.impl.SQLDataType.DECIMAL_INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.math.BigInteger> MAX_VAL = createField("max_val", org.jooq.impl.SQLDataType.DECIMAL_INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.math.BigInteger> MIN_VAL = createField("min_val", org.jooq.impl.SQLDataType.DECIMAL_INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.Integer> CYCLIC = createField("cyclic", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.Integer> STARTED = createField("started", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> CLASS_NAME = createField("class_name", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> ATT_NAME = createField("att_name", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.Integer> CACHED_NUM = createField("cached_num", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private DbSerial() {
|
||||
super("db_serial", org.jooq.util.cubrid.dba.Dba.DBA);
|
||||
}
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private DbSerial(java.lang.String alias) {
|
||||
super(alias, org.jooq.util.cubrid.dba.Dba.DBA, org.jooq.util.cubrid.dba.tables.DbSerial.DB_SERIAL);
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.jooq.util.cubrid.dba.tables.DbSerial as(java.lang.String alias) {
|
||||
return new org.jooq.util.cubrid.dba.tables.DbSerial(alias);
|
||||
}
|
||||
}
|
||||
@ -52,7 +52,6 @@ import java.util.List;
|
||||
|
||||
import org.jooq.Record;
|
||||
import org.jooq.impl.Factory;
|
||||
import org.jooq.impl.SQLDataType;
|
||||
import org.jooq.util.AbstractDatabase;
|
||||
import org.jooq.util.ArrayDefinition;
|
||||
import org.jooq.util.ColumnDefinition;
|
||||
@ -191,29 +190,13 @@ public class OracleDatabase extends AbstractDatabase {
|
||||
ALL_SEQUENCES.SEQUENCE_NAME)
|
||||
.fetch()) {
|
||||
|
||||
DataTypeDefinition type;
|
||||
|
||||
SchemaDefinition schema = getSchema(record.getValue(ALL_SEQUENCES.SEQUENCE_OWNER));
|
||||
BigInteger value = record.getValue(ALL_SEQUENCES.MAX_VALUE, BigInteger.class, BigInteger.valueOf(Long.MAX_VALUE));
|
||||
|
||||
if (BigInteger.valueOf(Byte.MAX_VALUE).compareTo(value) >= 0) {
|
||||
type = new DefaultDataTypeDefinition(this, schema, SQLDataType.NUMERIC.getTypeName(), 0, 2, 0);
|
||||
}
|
||||
else if (BigInteger.valueOf(Short.MAX_VALUE).compareTo(value) >= 0) {
|
||||
type = new DefaultDataTypeDefinition(this, schema, SQLDataType.NUMERIC.getTypeName(), 0, 4, 0);
|
||||
}
|
||||
else if (BigInteger.valueOf(Integer.MAX_VALUE).compareTo(value) >= 0) {
|
||||
type = new DefaultDataTypeDefinition(this, schema, SQLDataType.NUMERIC.getTypeName(), 0, 9, 0);
|
||||
}
|
||||
else if (BigInteger.valueOf(Long.MAX_VALUE).compareTo(value) >= 0) {
|
||||
type = new DefaultDataTypeDefinition(this, schema, SQLDataType.NUMERIC.getTypeName(), 0, 18, 0);
|
||||
}
|
||||
else {
|
||||
type = new DefaultDataTypeDefinition(this, schema, SQLDataType.NUMERIC.getTypeName(), 0, 38, 0);
|
||||
}
|
||||
DataTypeDefinition type = getDataTypeForMAX_VAL(schema, value);
|
||||
|
||||
result.add(new DefaultSequenceDefinition(
|
||||
getSchema(record.getValue(ALL_SEQUENCES.SEQUENCE_OWNER)),
|
||||
schema,
|
||||
record.getValue(ALL_SEQUENCES.SEQUENCE_NAME),
|
||||
type));
|
||||
}
|
||||
|
||||
@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<configuration xmlns="http://www.jooq.org/xsd/jooq-codegen-2.1.0.xsd">
|
||||
<jdbc>
|
||||
<driver>cubrid.jdbc.driver.CUBRIDDriver</driver>
|
||||
<url>jdbc:cubrid:localhost:33000:demodb:::</url>
|
||||
<user>dba</user>
|
||||
<password></password>
|
||||
</jdbc>
|
||||
<generator>
|
||||
<name>org.jooq.util.DefaultGenerator</name>
|
||||
<database>
|
||||
<name>org.jooq.util.cubrid.CUBRIDDatabase</name>
|
||||
<includes>db_class,db_attribute,db_index,db_index_key,db_serial</includes>
|
||||
<excludes></excludes>
|
||||
<inputSchema>DBA</inputSchema>
|
||||
</database>
|
||||
<generate>
|
||||
<deprecated>false</deprecated>
|
||||
<instanceFields>true</instanceFields>
|
||||
<generatedAnnotation>true</generatedAnnotation>
|
||||
<records>false</records>
|
||||
</generate>
|
||||
<target>
|
||||
<packageName>org.jooq.util.cubrid.dba</packageName>
|
||||
<directory>./src/main/java</directory>
|
||||
</target>
|
||||
</generator>
|
||||
</configuration>
|
||||
@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<configuration xmlns="http://www.jooq.org/xsd/jooq-codegen-2.1.0.xsd">
|
||||
<jdbc>
|
||||
<driver>cubrid.jdbc.driver.CUBRIDDriver</driver>
|
||||
<url>jdbc:cubrid:localhost:33000:demodb:::</url>
|
||||
<schema>PUBLIC</schema>
|
||||
<user>dba</user>
|
||||
<password></password>
|
||||
</jdbc>
|
||||
<generator>
|
||||
<name>org.jooq.util.DefaultGenerator</name>
|
||||
<database>
|
||||
<name>org.jooq.util.cubrid.CUBRIDDatabase</name>
|
||||
<includes>.*</includes>
|
||||
<excludes></excludes>
|
||||
<dateAsTimestamp>false</dateAsTimestamp>
|
||||
<unsignedTypes>true</unsignedTypes>
|
||||
</database>
|
||||
<generate>
|
||||
<relations>true</relations>
|
||||
<navigationMethods>true</navigationMethods>
|
||||
<deprecated>true</deprecated>
|
||||
<instanceFields>true</instanceFields>
|
||||
<generatedAnnotation>false</generatedAnnotation>
|
||||
<records>true</records>
|
||||
<pojos>true</pojos>
|
||||
<jpaAnnotations>true</jpaAnnotations>
|
||||
</generate>
|
||||
<target>
|
||||
<packageName>org.jooq.examples.cubrid.demodb</packageName>
|
||||
<directory>./examples</directory>
|
||||
</target>
|
||||
</generator>
|
||||
</configuration>
|
||||
34
jOOQ-test/examples/org/jooq/examples/cubrid/demodb/Keys.java
Normal file
34
jOOQ-test/examples/org/jooq/examples/cubrid/demodb/Keys.java
Normal file
@ -0,0 +1,34 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*
|
||||
* A class modelling foreign key relationships between tables of the PUBLIC schema
|
||||
*/
|
||||
@SuppressWarnings({"unchecked"})
|
||||
public class Keys extends org.jooq.impl.AbstractKeys {
|
||||
|
||||
// IDENTITY definitions
|
||||
public static final org.jooq.Identity<org.jooq.examples.cubrid.demodb.tables.records.AthleteRecord, java.lang.Integer> IDENTITY_ATHLETE = createIdentity(org.jooq.examples.cubrid.demodb.tables.Athlete.ATHLETE, org.jooq.examples.cubrid.demodb.tables.Athlete.ATHLETE.CODE);
|
||||
|
||||
// UNIQUE and PRIMARY KEY definitions
|
||||
public static final org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.AthleteRecord> PK_ATHLETE_CODE = createUniqueKey(org.jooq.examples.cubrid.demodb.tables.Athlete.ATHLETE, org.jooq.examples.cubrid.demodb.tables.Athlete.ATHLETE.CODE);
|
||||
public static final org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.EventRecord> PK_EVENT_CODE = createUniqueKey(org.jooq.examples.cubrid.demodb.tables.Event.EVENT, org.jooq.examples.cubrid.demodb.tables.Event.EVENT.CODE);
|
||||
public static final org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.GameRecord> PK_GAME_HOST_YEAR_EVENT_CODE_ATHLETE_CODE = createUniqueKey(org.jooq.examples.cubrid.demodb.tables.Game.GAME, org.jooq.examples.cubrid.demodb.tables.Game.GAME.HOST_YEAR, org.jooq.examples.cubrid.demodb.tables.Game.GAME.EVENT_CODE, org.jooq.examples.cubrid.demodb.tables.Game.GAME.ATHLETE_CODE);
|
||||
public static final org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.HistoryRecord> PK_HISTORY_EVENT_CODE_ATHLETE = createUniqueKey(org.jooq.examples.cubrid.demodb.tables.History.HISTORY, org.jooq.examples.cubrid.demodb.tables.History.HISTORY.EVENT_CODE, org.jooq.examples.cubrid.demodb.tables.History.HISTORY.ATHLETE);
|
||||
public static final org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.NationRecord> PK_NATION_CODE = createUniqueKey(org.jooq.examples.cubrid.demodb.tables.Nation.NATION, org.jooq.examples.cubrid.demodb.tables.Nation.NATION.CODE);
|
||||
public static final org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.OlympicRecord> PK_OLYMPIC_HOST_YEAR = createUniqueKey(org.jooq.examples.cubrid.demodb.tables.Olympic.OLYMPIC, org.jooq.examples.cubrid.demodb.tables.Olympic.OLYMPIC.HOST_YEAR);
|
||||
public static final org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.ParticipantRecord> PK_PARTICIPANT_HOST_YEAR_NATION_CODE = createUniqueKey(org.jooq.examples.cubrid.demodb.tables.Participant.PARTICIPANT, org.jooq.examples.cubrid.demodb.tables.Participant.PARTICIPANT.HOST_YEAR, org.jooq.examples.cubrid.demodb.tables.Participant.PARTICIPANT.NATION_CODE);
|
||||
public static final org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.RecordRecord> PK_RECORD_HOST_YEAR_EVENT_CODE_ATHLETE_CODE_MEDAL = createUniqueKey(org.jooq.examples.cubrid.demodb.tables.Record.RECORD, org.jooq.examples.cubrid.demodb.tables.Record.RECORD.HOST_YEAR, org.jooq.examples.cubrid.demodb.tables.Record.RECORD.EVENT_CODE, org.jooq.examples.cubrid.demodb.tables.Record.RECORD.ATHLETE_CODE, org.jooq.examples.cubrid.demodb.tables.Record.RECORD.MEDAL);
|
||||
public static final org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.StadiumRecord> PK_STADIUM_CODE = createUniqueKey(org.jooq.examples.cubrid.demodb.tables.Stadium.STADIUM, org.jooq.examples.cubrid.demodb.tables.Stadium.STADIUM.CODE);
|
||||
|
||||
// FOREIGN KEY definitions
|
||||
|
||||
/**
|
||||
* No instances
|
||||
*/
|
||||
private Keys() {}
|
||||
}
|
||||
@ -0,0 +1,47 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
public class Public extends org.jooq.impl.SchemaImpl {
|
||||
|
||||
private static final long serialVersionUID = 1687384670;
|
||||
|
||||
/**
|
||||
* The singleton instance of PUBLIC
|
||||
*/
|
||||
public static final Public PUBLIC = new Public();
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Public() {
|
||||
super("PUBLIC");
|
||||
}
|
||||
|
||||
@Override
|
||||
public final java.util.List<org.jooq.Sequence<?>> getSequences() {
|
||||
return java.util.Arrays.<org.jooq.Sequence<?>>asList(
|
||||
org.jooq.examples.cubrid.demodb.Sequences.EVENT_NO,
|
||||
org.jooq.examples.cubrid.demodb.Sequences.STADIUM_NO,
|
||||
org.jooq.examples.cubrid.demodb.Sequences.ATHLETE_AI_CODE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public final java.util.List<org.jooq.Table<?>> getTables() {
|
||||
return java.util.Arrays.<org.jooq.Table<?>>asList(
|
||||
org.jooq.examples.cubrid.demodb.tables.Athlete.ATHLETE,
|
||||
org.jooq.examples.cubrid.demodb.tables.Code.CODE,
|
||||
org.jooq.examples.cubrid.demodb.tables.Event.EVENT,
|
||||
org.jooq.examples.cubrid.demodb.tables.Game.GAME,
|
||||
org.jooq.examples.cubrid.demodb.tables.History.HISTORY,
|
||||
org.jooq.examples.cubrid.demodb.tables.Nation.NATION,
|
||||
org.jooq.examples.cubrid.demodb.tables.Olympic.OLYMPIC,
|
||||
org.jooq.examples.cubrid.demodb.tables.Participant.PARTICIPANT,
|
||||
org.jooq.examples.cubrid.demodb.tables.Record.RECORD,
|
||||
org.jooq.examples.cubrid.demodb.tables.Stadium.STADIUM);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,41 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
public class PublicFactory extends org.jooq.util.ase.ASEFactory {
|
||||
|
||||
private static final long serialVersionUID = -1645861218;
|
||||
|
||||
/**
|
||||
* Create a factory with a connection
|
||||
*
|
||||
* @param connection The connection to use with objects created from this factory
|
||||
*/
|
||||
public PublicFactory(java.sql.Connection connection) {
|
||||
super(connection);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a connection and a schema mapping
|
||||
*
|
||||
* @deprecated - 2.0.5 - Use {@link #PublicFactory(java.sql.Connection, org.jooq.conf.Settings)} instead
|
||||
*/
|
||||
@Deprecated
|
||||
public PublicFactory(java.sql.Connection connection, org.jooq.SchemaMapping mapping) {
|
||||
super(connection, mapping);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with a connection and some settings
|
||||
*
|
||||
* @param connection The connection to use with objects created from this factory
|
||||
* @param settings The settings to apply to objects created from this factory
|
||||
*/
|
||||
public PublicFactory(java.sql.Connection connection, org.jooq.conf.Settings settings) {
|
||||
super(connection, settings);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*
|
||||
* Convenience access to all sequences in PUBLIC
|
||||
*/
|
||||
public final class Sequences {
|
||||
|
||||
/**
|
||||
* The sequence PUBLIC.event_no
|
||||
*/
|
||||
public static final org.jooq.Sequence<java.math.BigInteger> EVENT_NO = new org.jooq.impl.SequenceImpl<java.math.BigInteger>("event_no", org.jooq.examples.cubrid.demodb.Public.PUBLIC, org.jooq.impl.SQLDataType.DECIMAL_INTEGER);
|
||||
|
||||
/**
|
||||
* The sequence PUBLIC.stadium_no
|
||||
*/
|
||||
public static final org.jooq.Sequence<java.math.BigInteger> STADIUM_NO = new org.jooq.impl.SequenceImpl<java.math.BigInteger>("stadium_no", org.jooq.examples.cubrid.demodb.Public.PUBLIC, org.jooq.impl.SQLDataType.DECIMAL_INTEGER);
|
||||
|
||||
/**
|
||||
* The sequence PUBLIC.athlete_ai_code
|
||||
*/
|
||||
public static final org.jooq.Sequence<java.lang.Integer> ATHLETE_AI_CODE = new org.jooq.impl.SequenceImpl<java.lang.Integer>("athlete_ai_code", org.jooq.examples.cubrid.demodb.Public.PUBLIC, org.jooq.impl.SQLDataType.INTEGER);
|
||||
|
||||
/**
|
||||
* No instances
|
||||
*/
|
||||
private Sequences() {}
|
||||
}
|
||||
@ -0,0 +1,67 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*
|
||||
* Convenience access to all tables in PUBLIC
|
||||
*/
|
||||
public final class Tables {
|
||||
|
||||
/**
|
||||
* The table PUBLIC.athlete
|
||||
*/
|
||||
public static org.jooq.examples.cubrid.demodb.tables.Athlete ATHLETE = org.jooq.examples.cubrid.demodb.tables.Athlete.ATHLETE;
|
||||
|
||||
/**
|
||||
* The table PUBLIC.code
|
||||
*/
|
||||
public static org.jooq.examples.cubrid.demodb.tables.Code CODE = org.jooq.examples.cubrid.demodb.tables.Code.CODE;
|
||||
|
||||
/**
|
||||
* The table PUBLIC.event
|
||||
*/
|
||||
public static org.jooq.examples.cubrid.demodb.tables.Event EVENT = org.jooq.examples.cubrid.demodb.tables.Event.EVENT;
|
||||
|
||||
/**
|
||||
* The table PUBLIC.game
|
||||
*/
|
||||
public static org.jooq.examples.cubrid.demodb.tables.Game GAME = org.jooq.examples.cubrid.demodb.tables.Game.GAME;
|
||||
|
||||
/**
|
||||
* The table PUBLIC.history
|
||||
*/
|
||||
public static org.jooq.examples.cubrid.demodb.tables.History HISTORY = org.jooq.examples.cubrid.demodb.tables.History.HISTORY;
|
||||
|
||||
/**
|
||||
* The table PUBLIC.nation
|
||||
*/
|
||||
public static org.jooq.examples.cubrid.demodb.tables.Nation NATION = org.jooq.examples.cubrid.demodb.tables.Nation.NATION;
|
||||
|
||||
/**
|
||||
* The table PUBLIC.olympic
|
||||
*/
|
||||
public static org.jooq.examples.cubrid.demodb.tables.Olympic OLYMPIC = org.jooq.examples.cubrid.demodb.tables.Olympic.OLYMPIC;
|
||||
|
||||
/**
|
||||
* The table PUBLIC.participant
|
||||
*/
|
||||
public static org.jooq.examples.cubrid.demodb.tables.Participant PARTICIPANT = org.jooq.examples.cubrid.demodb.tables.Participant.PARTICIPANT;
|
||||
|
||||
/**
|
||||
* The table PUBLIC.record
|
||||
*/
|
||||
public static org.jooq.examples.cubrid.demodb.tables.Record RECORD = org.jooq.examples.cubrid.demodb.tables.Record.RECORD;
|
||||
|
||||
/**
|
||||
* The table PUBLIC.stadium
|
||||
*/
|
||||
public static org.jooq.examples.cubrid.demodb.tables.Stadium STADIUM = org.jooq.examples.cubrid.demodb.tables.Stadium.STADIUM;
|
||||
|
||||
/**
|
||||
* No instances
|
||||
*/
|
||||
private Tables() {}
|
||||
}
|
||||
@ -0,0 +1,92 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
public class Athlete extends org.jooq.impl.UpdatableTableImpl<org.jooq.examples.cubrid.demodb.tables.records.AthleteRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1949978925;
|
||||
|
||||
/**
|
||||
* The singleton instance of PUBLIC.athlete
|
||||
*/
|
||||
public static final org.jooq.examples.cubrid.demodb.tables.Athlete ATHLETE = new org.jooq.examples.cubrid.demodb.tables.Athlete();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
private static final java.lang.Class<org.jooq.examples.cubrid.demodb.tables.records.AthleteRecord> __RECORD_TYPE = org.jooq.examples.cubrid.demodb.tables.records.AthleteRecord.class;
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<org.jooq.examples.cubrid.demodb.tables.records.AthleteRecord> getRecordType() {
|
||||
return __RECORD_TYPE;
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.AthleteRecord, java.lang.Integer> CODE = createField("code", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.AthleteRecord, java.lang.String> NAME = createField("name", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.AthleteRecord, java.lang.String> GENDER = createField("gender", org.jooq.impl.SQLDataType.CHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.AthleteRecord, java.lang.String> NATION_CODE = createField("nation_code", org.jooq.impl.SQLDataType.CHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.AthleteRecord, java.lang.String> EVENT = createField("event", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Athlete() {
|
||||
super("athlete", org.jooq.examples.cubrid.demodb.Public.PUBLIC);
|
||||
}
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Athlete(java.lang.String alias) {
|
||||
super(alias, org.jooq.examples.cubrid.demodb.Public.PUBLIC, org.jooq.examples.cubrid.demodb.tables.Athlete.ATHLETE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.jooq.Identity<org.jooq.examples.cubrid.demodb.tables.records.AthleteRecord, java.lang.Integer> getIdentity() {
|
||||
return org.jooq.examples.cubrid.demodb.Keys.IDENTITY_ATHLETE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.AthleteRecord> getMainKey() {
|
||||
return org.jooq.examples.cubrid.demodb.Keys.PK_ATHLETE_CODE;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public java.util.List<org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.AthleteRecord>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.AthleteRecord>>asList(org.jooq.examples.cubrid.demodb.Keys.PK_ATHLETE_CODE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.jooq.examples.cubrid.demodb.tables.Athlete as(java.lang.String alias) {
|
||||
return new org.jooq.examples.cubrid.demodb.tables.Athlete(alias);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,59 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
public class Code extends org.jooq.impl.TableImpl<org.jooq.examples.cubrid.demodb.tables.records.CodeRecord> {
|
||||
|
||||
private static final long serialVersionUID = -1111681184;
|
||||
|
||||
/**
|
||||
* The singleton instance of PUBLIC.code
|
||||
*/
|
||||
public static final org.jooq.examples.cubrid.demodb.tables.Code CODE = new org.jooq.examples.cubrid.demodb.tables.Code();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
private static final java.lang.Class<org.jooq.examples.cubrid.demodb.tables.records.CodeRecord> __RECORD_TYPE = org.jooq.examples.cubrid.demodb.tables.records.CodeRecord.class;
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<org.jooq.examples.cubrid.demodb.tables.records.CodeRecord> getRecordType() {
|
||||
return __RECORD_TYPE;
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.CodeRecord, java.lang.String> S_NAME = createField("s_name", org.jooq.impl.SQLDataType.CHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.CodeRecord, java.lang.String> F_NAME = createField("f_name", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Code() {
|
||||
super("code", org.jooq.examples.cubrid.demodb.Public.PUBLIC);
|
||||
}
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Code(java.lang.String alias) {
|
||||
super(alias, org.jooq.examples.cubrid.demodb.Public.PUBLIC, org.jooq.examples.cubrid.demodb.tables.Code.CODE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.jooq.examples.cubrid.demodb.tables.Code as(java.lang.String alias) {
|
||||
return new org.jooq.examples.cubrid.demodb.tables.Code(alias);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,87 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
public class Event extends org.jooq.impl.UpdatableTableImpl<org.jooq.examples.cubrid.demodb.tables.records.EventRecord> {
|
||||
|
||||
private static final long serialVersionUID = -1544702914;
|
||||
|
||||
/**
|
||||
* The singleton instance of PUBLIC.event
|
||||
*/
|
||||
public static final org.jooq.examples.cubrid.demodb.tables.Event EVENT = new org.jooq.examples.cubrid.demodb.tables.Event();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
private static final java.lang.Class<org.jooq.examples.cubrid.demodb.tables.records.EventRecord> __RECORD_TYPE = org.jooq.examples.cubrid.demodb.tables.records.EventRecord.class;
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<org.jooq.examples.cubrid.demodb.tables.records.EventRecord> getRecordType() {
|
||||
return __RECORD_TYPE;
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.EventRecord, java.lang.Integer> CODE = createField("code", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.EventRecord, java.lang.String> SPORTS = createField("sports", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.EventRecord, java.lang.String> NAME = createField("name", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.EventRecord, java.lang.String> GENDER = createField("gender", org.jooq.impl.SQLDataType.CHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.EventRecord, java.lang.Integer> PLAYERS = createField("players", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Event() {
|
||||
super("event", org.jooq.examples.cubrid.demodb.Public.PUBLIC);
|
||||
}
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Event(java.lang.String alias) {
|
||||
super(alias, org.jooq.examples.cubrid.demodb.Public.PUBLIC, org.jooq.examples.cubrid.demodb.tables.Event.EVENT);
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.EventRecord> getMainKey() {
|
||||
return org.jooq.examples.cubrid.demodb.Keys.PK_EVENT_CODE;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public java.util.List<org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.EventRecord>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.EventRecord>>asList(org.jooq.examples.cubrid.demodb.Keys.PK_EVENT_CODE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.jooq.examples.cubrid.demodb.tables.Event as(java.lang.String alias) {
|
||||
return new org.jooq.examples.cubrid.demodb.tables.Event(alias);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,101 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
public class Game extends org.jooq.impl.UpdatableTableImpl<org.jooq.examples.cubrid.demodb.tables.records.GameRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1253356251;
|
||||
|
||||
/**
|
||||
* The singleton instance of PUBLIC.game
|
||||
*/
|
||||
public static final org.jooq.examples.cubrid.demodb.tables.Game GAME = new org.jooq.examples.cubrid.demodb.tables.Game();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
private static final java.lang.Class<org.jooq.examples.cubrid.demodb.tables.records.GameRecord> __RECORD_TYPE = org.jooq.examples.cubrid.demodb.tables.records.GameRecord.class;
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<org.jooq.examples.cubrid.demodb.tables.records.GameRecord> getRecordType() {
|
||||
return __RECORD_TYPE;
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.GameRecord, java.lang.Integer> HOST_YEAR = createField("host_year", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.GameRecord, java.lang.Integer> EVENT_CODE = createField("event_code", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.GameRecord, java.lang.Integer> ATHLETE_CODE = createField("athlete_code", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.GameRecord, java.lang.Integer> STADIUM_CODE = createField("stadium_code", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.GameRecord, java.lang.String> NATION_CODE = createField("nation_code", org.jooq.impl.SQLDataType.CHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.GameRecord, java.lang.String> MEDAL = createField("medal", org.jooq.impl.SQLDataType.CHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.GameRecord, java.sql.Date> GAME_DATE = createField("game_date", org.jooq.impl.SQLDataType.DATE, this);
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Game() {
|
||||
super("game", org.jooq.examples.cubrid.demodb.Public.PUBLIC);
|
||||
}
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Game(java.lang.String alias) {
|
||||
super(alias, org.jooq.examples.cubrid.demodb.Public.PUBLIC, org.jooq.examples.cubrid.demodb.tables.Game.GAME);
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.GameRecord> getMainKey() {
|
||||
return org.jooq.examples.cubrid.demodb.Keys.PK_GAME_HOST_YEAR_EVENT_CODE_ATHLETE_CODE;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public java.util.List<org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.GameRecord>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.GameRecord>>asList(org.jooq.examples.cubrid.demodb.Keys.PK_GAME_HOST_YEAR_EVENT_CODE_ATHLETE_CODE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.jooq.examples.cubrid.demodb.tables.Game as(java.lang.String alias) {
|
||||
return new org.jooq.examples.cubrid.demodb.tables.Game(alias);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,89 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
public class History extends org.jooq.impl.UpdatableTableImpl<org.jooq.examples.cubrid.demodb.tables.records.HistoryRecord> {
|
||||
|
||||
private static final long serialVersionUID = -217390322;
|
||||
|
||||
/**
|
||||
* The singleton instance of PUBLIC.history
|
||||
*/
|
||||
public static final org.jooq.examples.cubrid.demodb.tables.History HISTORY = new org.jooq.examples.cubrid.demodb.tables.History();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
private static final java.lang.Class<org.jooq.examples.cubrid.demodb.tables.records.HistoryRecord> __RECORD_TYPE = org.jooq.examples.cubrid.demodb.tables.records.HistoryRecord.class;
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<org.jooq.examples.cubrid.demodb.tables.records.HistoryRecord> getRecordType() {
|
||||
return __RECORD_TYPE;
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.HistoryRecord, java.lang.Integer> EVENT_CODE = createField("event_code", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.HistoryRecord, java.lang.String> ATHLETE = createField("athlete", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.HistoryRecord, java.lang.Integer> HOST_YEAR = createField("host_year", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.HistoryRecord, java.lang.String> SCORE = createField("score", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.HistoryRecord, java.lang.String> UNIT = createField("unit", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private History() {
|
||||
super("history", org.jooq.examples.cubrid.demodb.Public.PUBLIC);
|
||||
}
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private History(java.lang.String alias) {
|
||||
super(alias, org.jooq.examples.cubrid.demodb.Public.PUBLIC, org.jooq.examples.cubrid.demodb.tables.History.HISTORY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.HistoryRecord> getMainKey() {
|
||||
return org.jooq.examples.cubrid.demodb.Keys.PK_HISTORY_EVENT_CODE_ATHLETE;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public java.util.List<org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.HistoryRecord>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.HistoryRecord>>asList(org.jooq.examples.cubrid.demodb.Keys.PK_HISTORY_EVENT_CODE_ATHLETE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.jooq.examples.cubrid.demodb.tables.History as(java.lang.String alias) {
|
||||
return new org.jooq.examples.cubrid.demodb.tables.History(alias);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,82 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
public class Nation extends org.jooq.impl.UpdatableTableImpl<org.jooq.examples.cubrid.demodb.tables.records.NationRecord> {
|
||||
|
||||
private static final long serialVersionUID = -480563514;
|
||||
|
||||
/**
|
||||
* The singleton instance of PUBLIC.nation
|
||||
*/
|
||||
public static final org.jooq.examples.cubrid.demodb.tables.Nation NATION = new org.jooq.examples.cubrid.demodb.tables.Nation();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
private static final java.lang.Class<org.jooq.examples.cubrid.demodb.tables.records.NationRecord> __RECORD_TYPE = org.jooq.examples.cubrid.demodb.tables.records.NationRecord.class;
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<org.jooq.examples.cubrid.demodb.tables.records.NationRecord> getRecordType() {
|
||||
return __RECORD_TYPE;
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.NationRecord, java.lang.String> CODE = createField("code", org.jooq.impl.SQLDataType.CHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.NationRecord, java.lang.String> NAME = createField("name", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.NationRecord, java.lang.String> CONTINENT = createField("continent", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.NationRecord, java.lang.String> CAPITAL = createField("capital", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Nation() {
|
||||
super("nation", org.jooq.examples.cubrid.demodb.Public.PUBLIC);
|
||||
}
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Nation(java.lang.String alias) {
|
||||
super(alias, org.jooq.examples.cubrid.demodb.Public.PUBLIC, org.jooq.examples.cubrid.demodb.tables.Nation.NATION);
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.NationRecord> getMainKey() {
|
||||
return org.jooq.examples.cubrid.demodb.Keys.PK_NATION_CODE;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public java.util.List<org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.NationRecord>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.NationRecord>>asList(org.jooq.examples.cubrid.demodb.Keys.PK_NATION_CODE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.jooq.examples.cubrid.demodb.tables.Nation as(java.lang.String alias) {
|
||||
return new org.jooq.examples.cubrid.demodb.tables.Nation(alias);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,102 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
public class Olympic extends org.jooq.impl.UpdatableTableImpl<org.jooq.examples.cubrid.demodb.tables.records.OlympicRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1565507859;
|
||||
|
||||
/**
|
||||
* The singleton instance of PUBLIC.olympic
|
||||
*/
|
||||
public static final org.jooq.examples.cubrid.demodb.tables.Olympic OLYMPIC = new org.jooq.examples.cubrid.demodb.tables.Olympic();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
private static final java.lang.Class<org.jooq.examples.cubrid.demodb.tables.records.OlympicRecord> __RECORD_TYPE = org.jooq.examples.cubrid.demodb.tables.records.OlympicRecord.class;
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<org.jooq.examples.cubrid.demodb.tables.records.OlympicRecord> getRecordType() {
|
||||
return __RECORD_TYPE;
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.OlympicRecord, java.lang.Integer> HOST_YEAR = createField("host_year", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.OlympicRecord, java.lang.String> HOST_NATION = createField("host_nation", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.OlympicRecord, java.lang.String> HOST_CITY = createField("host_city", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.OlympicRecord, java.sql.Date> OPENING_DATE = createField("opening_date", org.jooq.impl.SQLDataType.DATE, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.OlympicRecord, java.sql.Date> CLOSING_DATE = createField("closing_date", org.jooq.impl.SQLDataType.DATE, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.OlympicRecord, java.lang.String> MASCOT = createField("mascot", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.OlympicRecord, java.lang.String> SLOGAN = createField("slogan", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.OlympicRecord, java.lang.String> INTRODUCTION = createField("introduction", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Olympic() {
|
||||
super("olympic", org.jooq.examples.cubrid.demodb.Public.PUBLIC);
|
||||
}
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Olympic(java.lang.String alias) {
|
||||
super(alias, org.jooq.examples.cubrid.demodb.Public.PUBLIC, org.jooq.examples.cubrid.demodb.tables.Olympic.OLYMPIC);
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.OlympicRecord> getMainKey() {
|
||||
return org.jooq.examples.cubrid.demodb.Keys.PK_OLYMPIC_HOST_YEAR;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public java.util.List<org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.OlympicRecord>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.OlympicRecord>>asList(org.jooq.examples.cubrid.demodb.Keys.PK_OLYMPIC_HOST_YEAR);
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.jooq.examples.cubrid.demodb.tables.Olympic as(java.lang.String alias) {
|
||||
return new org.jooq.examples.cubrid.demodb.tables.Olympic(alias);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,89 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
public class Participant extends org.jooq.impl.UpdatableTableImpl<org.jooq.examples.cubrid.demodb.tables.records.ParticipantRecord> {
|
||||
|
||||
private static final long serialVersionUID = -914586083;
|
||||
|
||||
/**
|
||||
* The singleton instance of PUBLIC.participant
|
||||
*/
|
||||
public static final org.jooq.examples.cubrid.demodb.tables.Participant PARTICIPANT = new org.jooq.examples.cubrid.demodb.tables.Participant();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
private static final java.lang.Class<org.jooq.examples.cubrid.demodb.tables.records.ParticipantRecord> __RECORD_TYPE = org.jooq.examples.cubrid.demodb.tables.records.ParticipantRecord.class;
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<org.jooq.examples.cubrid.demodb.tables.records.ParticipantRecord> getRecordType() {
|
||||
return __RECORD_TYPE;
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.ParticipantRecord, java.lang.Integer> HOST_YEAR = createField("host_year", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.ParticipantRecord, java.lang.String> NATION_CODE = createField("nation_code", org.jooq.impl.SQLDataType.CHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.ParticipantRecord, java.lang.Integer> GOLD = createField("gold", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.ParticipantRecord, java.lang.Integer> SILVER = createField("silver", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.ParticipantRecord, java.lang.Integer> BRONZE = createField("bronze", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Participant() {
|
||||
super("participant", org.jooq.examples.cubrid.demodb.Public.PUBLIC);
|
||||
}
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Participant(java.lang.String alias) {
|
||||
super(alias, org.jooq.examples.cubrid.demodb.Public.PUBLIC, org.jooq.examples.cubrid.demodb.tables.Participant.PARTICIPANT);
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.ParticipantRecord> getMainKey() {
|
||||
return org.jooq.examples.cubrid.demodb.Keys.PK_PARTICIPANT_HOST_YEAR_NATION_CODE;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public java.util.List<org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.ParticipantRecord>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.ParticipantRecord>>asList(org.jooq.examples.cubrid.demodb.Keys.PK_PARTICIPANT_HOST_YEAR_NATION_CODE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.jooq.examples.cubrid.demodb.tables.Participant as(java.lang.String alias) {
|
||||
return new org.jooq.examples.cubrid.demodb.tables.Participant(alias);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,98 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
public class Record extends org.jooq.impl.UpdatableTableImpl<org.jooq.examples.cubrid.demodb.tables.records.RecordRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1769435371;
|
||||
|
||||
/**
|
||||
* The singleton instance of PUBLIC.record
|
||||
*/
|
||||
public static final org.jooq.examples.cubrid.demodb.tables.Record RECORD = new org.jooq.examples.cubrid.demodb.tables.Record();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
private static final java.lang.Class<org.jooq.examples.cubrid.demodb.tables.records.RecordRecord> __RECORD_TYPE = org.jooq.examples.cubrid.demodb.tables.records.RecordRecord.class;
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<org.jooq.examples.cubrid.demodb.tables.records.RecordRecord> getRecordType() {
|
||||
return __RECORD_TYPE;
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.RecordRecord, java.lang.Integer> HOST_YEAR = createField("host_year", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.RecordRecord, java.lang.Integer> EVENT_CODE = createField("event_code", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.RecordRecord, java.lang.Integer> ATHLETE_CODE = createField("athlete_code", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.RecordRecord, java.lang.String> MEDAL = createField("medal", org.jooq.impl.SQLDataType.CHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.RecordRecord, java.lang.String> SCORE = createField("score", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.RecordRecord, java.lang.String> UNIT = createField("unit", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Record() {
|
||||
super("record", org.jooq.examples.cubrid.demodb.Public.PUBLIC);
|
||||
}
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Record(java.lang.String alias) {
|
||||
super(alias, org.jooq.examples.cubrid.demodb.Public.PUBLIC, org.jooq.examples.cubrid.demodb.tables.Record.RECORD);
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.RecordRecord> getMainKey() {
|
||||
return org.jooq.examples.cubrid.demodb.Keys.PK_RECORD_HOST_YEAR_EVENT_CODE_ATHLETE_CODE_MEDAL;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public java.util.List<org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.RecordRecord>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.RecordRecord>>asList(org.jooq.examples.cubrid.demodb.Keys.PK_RECORD_HOST_YEAR_EVENT_CODE_ATHLETE_CODE_MEDAL);
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.jooq.examples.cubrid.demodb.tables.Record as(java.lang.String alias) {
|
||||
return new org.jooq.examples.cubrid.demodb.tables.Record(alias);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,92 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
public class Stadium extends org.jooq.impl.UpdatableTableImpl<org.jooq.examples.cubrid.demodb.tables.records.StadiumRecord> {
|
||||
|
||||
private static final long serialVersionUID = 2068855390;
|
||||
|
||||
/**
|
||||
* The singleton instance of PUBLIC.stadium
|
||||
*/
|
||||
public static final org.jooq.examples.cubrid.demodb.tables.Stadium STADIUM = new org.jooq.examples.cubrid.demodb.tables.Stadium();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
private static final java.lang.Class<org.jooq.examples.cubrid.demodb.tables.records.StadiumRecord> __RECORD_TYPE = org.jooq.examples.cubrid.demodb.tables.records.StadiumRecord.class;
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<org.jooq.examples.cubrid.demodb.tables.records.StadiumRecord> getRecordType() {
|
||||
return __RECORD_TYPE;
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.StadiumRecord, java.lang.Integer> CODE = createField("code", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.StadiumRecord, java.lang.String> NATION_CODE = createField("nation_code", org.jooq.impl.SQLDataType.CHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.StadiumRecord, java.lang.String> NAME = createField("name", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.StadiumRecord, java.math.BigDecimal> AREA = createField("area", org.jooq.impl.SQLDataType.DECIMAL, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.StadiumRecord, java.lang.Integer> SEATS = createField("seats", org.jooq.impl.SQLDataType.INTEGER, this);
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.examples.cubrid.demodb.tables.records.StadiumRecord, java.lang.String> ADDRESS = createField("address", org.jooq.impl.SQLDataType.VARCHAR, this);
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Stadium() {
|
||||
super("stadium", org.jooq.examples.cubrid.demodb.Public.PUBLIC);
|
||||
}
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Stadium(java.lang.String alias) {
|
||||
super(alias, org.jooq.examples.cubrid.demodb.Public.PUBLIC, org.jooq.examples.cubrid.demodb.tables.Stadium.STADIUM);
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.StadiumRecord> getMainKey() {
|
||||
return org.jooq.examples.cubrid.demodb.Keys.PK_STADIUM_CODE;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public java.util.List<org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.StadiumRecord>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<org.jooq.examples.cubrid.demodb.tables.records.StadiumRecord>>asList(org.jooq.examples.cubrid.demodb.Keys.PK_STADIUM_CODE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.jooq.examples.cubrid.demodb.tables.Stadium as(java.lang.String alias) {
|
||||
return new org.jooq.examples.cubrid.demodb.tables.Stadium(alias);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,66 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables.pojos;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.persistence.Entity
|
||||
@javax.persistence.Table(name = "athlete", schema = "PUBLIC")
|
||||
public class Athlete implements java.io.Serializable {
|
||||
|
||||
private static final long serialVersionUID = -1286219248;
|
||||
|
||||
private java.lang.Integer code;
|
||||
private java.lang.String name;
|
||||
private java.lang.String gender;
|
||||
private java.lang.String nationCode;
|
||||
private java.lang.String event;
|
||||
|
||||
@javax.persistence.Id
|
||||
@javax.persistence.Column(name = "code", unique = true, nullable = false)
|
||||
public java.lang.Integer getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public void setCode(java.lang.Integer code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "name", nullable = false, precision = 40)
|
||||
public java.lang.String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(java.lang.String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "gender", length = 1)
|
||||
public java.lang.String getGender() {
|
||||
return this.gender;
|
||||
}
|
||||
|
||||
public void setGender(java.lang.String gender) {
|
||||
this.gender = gender;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "nation_code", length = 3)
|
||||
public java.lang.String getNationCode() {
|
||||
return this.nationCode;
|
||||
}
|
||||
|
||||
public void setNationCode(java.lang.String nationCode) {
|
||||
this.nationCode = nationCode;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "event", precision = 30)
|
||||
public java.lang.String getEvent() {
|
||||
return this.event;
|
||||
}
|
||||
|
||||
public void setEvent(java.lang.String event) {
|
||||
this.event = event;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables.pojos;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.persistence.Entity
|
||||
@javax.persistence.Table(name = "code", schema = "PUBLIC")
|
||||
public class Code implements java.io.Serializable {
|
||||
|
||||
private static final long serialVersionUID = -717243519;
|
||||
|
||||
private java.lang.String sName;
|
||||
private java.lang.String fName;
|
||||
|
||||
@javax.persistence.Column(name = "s_name", length = 1)
|
||||
public java.lang.String getSName() {
|
||||
return this.sName;
|
||||
}
|
||||
|
||||
public void setSName(java.lang.String sName) {
|
||||
this.sName = sName;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "f_name", precision = 6)
|
||||
public java.lang.String getFName() {
|
||||
return this.fName;
|
||||
}
|
||||
|
||||
public void setFName(java.lang.String fName) {
|
||||
this.fName = fName;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,66 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables.pojos;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.persistence.Entity
|
||||
@javax.persistence.Table(name = "event", schema = "PUBLIC")
|
||||
public class Event implements java.io.Serializable {
|
||||
|
||||
private static final long serialVersionUID = -1266442252;
|
||||
|
||||
private java.lang.Integer code;
|
||||
private java.lang.String sports;
|
||||
private java.lang.String name;
|
||||
private java.lang.String gender;
|
||||
private java.lang.Integer players;
|
||||
|
||||
@javax.persistence.Id
|
||||
@javax.persistence.Column(name = "code", unique = true, nullable = false)
|
||||
public java.lang.Integer getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public void setCode(java.lang.Integer code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "sports", precision = 50)
|
||||
public java.lang.String getSports() {
|
||||
return this.sports;
|
||||
}
|
||||
|
||||
public void setSports(java.lang.String sports) {
|
||||
this.sports = sports;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "name", precision = 50)
|
||||
public java.lang.String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(java.lang.String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "gender", length = 1)
|
||||
public java.lang.String getGender() {
|
||||
return this.gender;
|
||||
}
|
||||
|
||||
public void setGender(java.lang.String gender) {
|
||||
this.gender = gender;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "players")
|
||||
public java.lang.Integer getPlayers() {
|
||||
return this.players;
|
||||
}
|
||||
|
||||
public void setPlayers(java.lang.Integer players) {
|
||||
this.players = players;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,87 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables.pojos;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.persistence.Entity
|
||||
@javax.persistence.Table(name = "game", schema = "PUBLIC", uniqueConstraints = {
|
||||
@javax.persistence.UniqueConstraint(columnNames = {"host_year", "event_code", "athlete_code"})
|
||||
})
|
||||
public class Game implements java.io.Serializable {
|
||||
|
||||
private static final long serialVersionUID = 709922232;
|
||||
|
||||
private java.lang.Integer hostYear;
|
||||
private java.lang.Integer eventCode;
|
||||
private java.lang.Integer athleteCode;
|
||||
private java.lang.Integer stadiumCode;
|
||||
private java.lang.String nationCode;
|
||||
private java.lang.String medal;
|
||||
private java.sql.Date gameDate;
|
||||
|
||||
@javax.persistence.Column(name = "host_year", nullable = false)
|
||||
public java.lang.Integer getHostYear() {
|
||||
return this.hostYear;
|
||||
}
|
||||
|
||||
public void setHostYear(java.lang.Integer hostYear) {
|
||||
this.hostYear = hostYear;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "event_code", nullable = false)
|
||||
public java.lang.Integer getEventCode() {
|
||||
return this.eventCode;
|
||||
}
|
||||
|
||||
public void setEventCode(java.lang.Integer eventCode) {
|
||||
this.eventCode = eventCode;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "athlete_code", nullable = false)
|
||||
public java.lang.Integer getAthleteCode() {
|
||||
return this.athleteCode;
|
||||
}
|
||||
|
||||
public void setAthleteCode(java.lang.Integer athleteCode) {
|
||||
this.athleteCode = athleteCode;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "stadium_code", nullable = false)
|
||||
public java.lang.Integer getStadiumCode() {
|
||||
return this.stadiumCode;
|
||||
}
|
||||
|
||||
public void setStadiumCode(java.lang.Integer stadiumCode) {
|
||||
this.stadiumCode = stadiumCode;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "nation_code", length = 3)
|
||||
public java.lang.String getNationCode() {
|
||||
return this.nationCode;
|
||||
}
|
||||
|
||||
public void setNationCode(java.lang.String nationCode) {
|
||||
this.nationCode = nationCode;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "medal", length = 1)
|
||||
public java.lang.String getMedal() {
|
||||
return this.medal;
|
||||
}
|
||||
|
||||
public void setMedal(java.lang.String medal) {
|
||||
this.medal = medal;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "game_date")
|
||||
public java.sql.Date getGameDate() {
|
||||
return this.gameDate;
|
||||
}
|
||||
|
||||
public void setGameDate(java.sql.Date gameDate) {
|
||||
this.gameDate = gameDate;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,67 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables.pojos;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.persistence.Entity
|
||||
@javax.persistence.Table(name = "history", schema = "PUBLIC", uniqueConstraints = {
|
||||
@javax.persistence.UniqueConstraint(columnNames = {"event_code", "athlete"})
|
||||
})
|
||||
public class History implements java.io.Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1518631114;
|
||||
|
||||
private java.lang.Integer eventCode;
|
||||
private java.lang.String athlete;
|
||||
private java.lang.Integer hostYear;
|
||||
private java.lang.String score;
|
||||
private java.lang.String unit;
|
||||
|
||||
@javax.persistence.Column(name = "event_code", nullable = false)
|
||||
public java.lang.Integer getEventCode() {
|
||||
return this.eventCode;
|
||||
}
|
||||
|
||||
public void setEventCode(java.lang.Integer eventCode) {
|
||||
this.eventCode = eventCode;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "athlete", nullable = false, precision = 40)
|
||||
public java.lang.String getAthlete() {
|
||||
return this.athlete;
|
||||
}
|
||||
|
||||
public void setAthlete(java.lang.String athlete) {
|
||||
this.athlete = athlete;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "host_year")
|
||||
public java.lang.Integer getHostYear() {
|
||||
return this.hostYear;
|
||||
}
|
||||
|
||||
public void setHostYear(java.lang.Integer hostYear) {
|
||||
this.hostYear = hostYear;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "score", precision = 10)
|
||||
public java.lang.String getScore() {
|
||||
return this.score;
|
||||
}
|
||||
|
||||
public void setScore(java.lang.String score) {
|
||||
this.score = score;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "unit", precision = 5)
|
||||
public java.lang.String getUnit() {
|
||||
return this.unit;
|
||||
}
|
||||
|
||||
public void setUnit(java.lang.String unit) {
|
||||
this.unit = unit;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,56 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables.pojos;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.persistence.Entity
|
||||
@javax.persistence.Table(name = "nation", schema = "PUBLIC")
|
||||
public class Nation implements java.io.Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1194497602;
|
||||
|
||||
private java.lang.String code;
|
||||
private java.lang.String name;
|
||||
private java.lang.String continent;
|
||||
private java.lang.String capital;
|
||||
|
||||
@javax.persistence.Id
|
||||
@javax.persistence.Column(name = "code", unique = true, nullable = false, length = 3)
|
||||
public java.lang.String getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public void setCode(java.lang.String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "name", nullable = false, precision = 40)
|
||||
public java.lang.String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(java.lang.String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "continent", precision = 10)
|
||||
public java.lang.String getContinent() {
|
||||
return this.continent;
|
||||
}
|
||||
|
||||
public void setContinent(java.lang.String continent) {
|
||||
this.continent = continent;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "capital", precision = 30)
|
||||
public java.lang.String getCapital() {
|
||||
return this.capital;
|
||||
}
|
||||
|
||||
public void setCapital(java.lang.String capital) {
|
||||
this.capital = capital;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,96 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables.pojos;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.persistence.Entity
|
||||
@javax.persistence.Table(name = "olympic", schema = "PUBLIC")
|
||||
public class Olympic implements java.io.Serializable {
|
||||
|
||||
private static final long serialVersionUID = -833188373;
|
||||
|
||||
private java.lang.Integer hostYear;
|
||||
private java.lang.String hostNation;
|
||||
private java.lang.String hostCity;
|
||||
private java.sql.Date openingDate;
|
||||
private java.sql.Date closingDate;
|
||||
private java.lang.String mascot;
|
||||
private java.lang.String slogan;
|
||||
private java.lang.String introduction;
|
||||
|
||||
@javax.persistence.Id
|
||||
@javax.persistence.Column(name = "host_year", unique = true, nullable = false)
|
||||
public java.lang.Integer getHostYear() {
|
||||
return this.hostYear;
|
||||
}
|
||||
|
||||
public void setHostYear(java.lang.Integer hostYear) {
|
||||
this.hostYear = hostYear;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "host_nation", nullable = false, precision = 40)
|
||||
public java.lang.String getHostNation() {
|
||||
return this.hostNation;
|
||||
}
|
||||
|
||||
public void setHostNation(java.lang.String hostNation) {
|
||||
this.hostNation = hostNation;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "host_city", nullable = false, precision = 20)
|
||||
public java.lang.String getHostCity() {
|
||||
return this.hostCity;
|
||||
}
|
||||
|
||||
public void setHostCity(java.lang.String hostCity) {
|
||||
this.hostCity = hostCity;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "opening_date", nullable = false)
|
||||
public java.sql.Date getOpeningDate() {
|
||||
return this.openingDate;
|
||||
}
|
||||
|
||||
public void setOpeningDate(java.sql.Date openingDate) {
|
||||
this.openingDate = openingDate;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "closing_date", nullable = false)
|
||||
public java.sql.Date getClosingDate() {
|
||||
return this.closingDate;
|
||||
}
|
||||
|
||||
public void setClosingDate(java.sql.Date closingDate) {
|
||||
this.closingDate = closingDate;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "mascot", precision = 20)
|
||||
public java.lang.String getMascot() {
|
||||
return this.mascot;
|
||||
}
|
||||
|
||||
public void setMascot(java.lang.String mascot) {
|
||||
this.mascot = mascot;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "slogan", precision = 40)
|
||||
public java.lang.String getSlogan() {
|
||||
return this.slogan;
|
||||
}
|
||||
|
||||
public void setSlogan(java.lang.String slogan) {
|
||||
this.slogan = slogan;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "introduction", precision = 1500)
|
||||
public java.lang.String getIntroduction() {
|
||||
return this.introduction;
|
||||
}
|
||||
|
||||
public void setIntroduction(java.lang.String introduction) {
|
||||
this.introduction = introduction;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,67 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables.pojos;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.persistence.Entity
|
||||
@javax.persistence.Table(name = "participant", schema = "PUBLIC", uniqueConstraints = {
|
||||
@javax.persistence.UniqueConstraint(columnNames = {"host_year", "nation_code"})
|
||||
})
|
||||
public class Participant implements java.io.Serializable {
|
||||
|
||||
private static final long serialVersionUID = 80587499;
|
||||
|
||||
private java.lang.Integer hostYear;
|
||||
private java.lang.String nationCode;
|
||||
private java.lang.Integer gold;
|
||||
private java.lang.Integer silver;
|
||||
private java.lang.Integer bronze;
|
||||
|
||||
@javax.persistence.Column(name = "host_year", nullable = false)
|
||||
public java.lang.Integer getHostYear() {
|
||||
return this.hostYear;
|
||||
}
|
||||
|
||||
public void setHostYear(java.lang.Integer hostYear) {
|
||||
this.hostYear = hostYear;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "nation_code", nullable = false, length = 3)
|
||||
public java.lang.String getNationCode() {
|
||||
return this.nationCode;
|
||||
}
|
||||
|
||||
public void setNationCode(java.lang.String nationCode) {
|
||||
this.nationCode = nationCode;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "gold")
|
||||
public java.lang.Integer getGold() {
|
||||
return this.gold;
|
||||
}
|
||||
|
||||
public void setGold(java.lang.Integer gold) {
|
||||
this.gold = gold;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "silver")
|
||||
public java.lang.Integer getSilver() {
|
||||
return this.silver;
|
||||
}
|
||||
|
||||
public void setSilver(java.lang.Integer silver) {
|
||||
this.silver = silver;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "bronze")
|
||||
public java.lang.Integer getBronze() {
|
||||
return this.bronze;
|
||||
}
|
||||
|
||||
public void setBronze(java.lang.Integer bronze) {
|
||||
this.bronze = bronze;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,77 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables.pojos;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.persistence.Entity
|
||||
@javax.persistence.Table(name = "record", schema = "PUBLIC", uniqueConstraints = {
|
||||
@javax.persistence.UniqueConstraint(columnNames = {"host_year", "event_code", "athlete_code", "medal"})
|
||||
})
|
||||
public class Record implements java.io.Serializable {
|
||||
|
||||
private static final long serialVersionUID = 182628481;
|
||||
|
||||
private java.lang.Integer hostYear;
|
||||
private java.lang.Integer eventCode;
|
||||
private java.lang.Integer athleteCode;
|
||||
private java.lang.String medal;
|
||||
private java.lang.String score;
|
||||
private java.lang.String unit;
|
||||
|
||||
@javax.persistence.Column(name = "host_year", nullable = false)
|
||||
public java.lang.Integer getHostYear() {
|
||||
return this.hostYear;
|
||||
}
|
||||
|
||||
public void setHostYear(java.lang.Integer hostYear) {
|
||||
this.hostYear = hostYear;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "event_code", nullable = false)
|
||||
public java.lang.Integer getEventCode() {
|
||||
return this.eventCode;
|
||||
}
|
||||
|
||||
public void setEventCode(java.lang.Integer eventCode) {
|
||||
this.eventCode = eventCode;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "athlete_code", nullable = false)
|
||||
public java.lang.Integer getAthleteCode() {
|
||||
return this.athleteCode;
|
||||
}
|
||||
|
||||
public void setAthleteCode(java.lang.Integer athleteCode) {
|
||||
this.athleteCode = athleteCode;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "medal", nullable = false, length = 1)
|
||||
public java.lang.String getMedal() {
|
||||
return this.medal;
|
||||
}
|
||||
|
||||
public void setMedal(java.lang.String medal) {
|
||||
this.medal = medal;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "score", precision = 20)
|
||||
public java.lang.String getScore() {
|
||||
return this.score;
|
||||
}
|
||||
|
||||
public void setScore(java.lang.String score) {
|
||||
this.score = score;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "unit", precision = 5)
|
||||
public java.lang.String getUnit() {
|
||||
return this.unit;
|
||||
}
|
||||
|
||||
public void setUnit(java.lang.String unit) {
|
||||
this.unit = unit;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,76 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables.pojos;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.persistence.Entity
|
||||
@javax.persistence.Table(name = "stadium", schema = "PUBLIC")
|
||||
public class Stadium implements java.io.Serializable {
|
||||
|
||||
private static final long serialVersionUID = -624213762;
|
||||
|
||||
private java.lang.Integer code;
|
||||
private java.lang.String nationCode;
|
||||
private java.lang.String name;
|
||||
private java.math.BigDecimal area;
|
||||
private java.lang.Integer seats;
|
||||
private java.lang.String address;
|
||||
|
||||
@javax.persistence.Id
|
||||
@javax.persistence.Column(name = "code", unique = true, nullable = false)
|
||||
public java.lang.Integer getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public void setCode(java.lang.Integer code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "nation_code", nullable = false, length = 3)
|
||||
public java.lang.String getNationCode() {
|
||||
return this.nationCode;
|
||||
}
|
||||
|
||||
public void setNationCode(java.lang.String nationCode) {
|
||||
this.nationCode = nationCode;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "name", nullable = false, precision = 50)
|
||||
public java.lang.String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(java.lang.String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "area", precision = 10, scale = 2)
|
||||
public java.math.BigDecimal getArea() {
|
||||
return this.area;
|
||||
}
|
||||
|
||||
public void setArea(java.math.BigDecimal area) {
|
||||
this.area = area;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "seats")
|
||||
public java.lang.Integer getSeats() {
|
||||
return this.seats;
|
||||
}
|
||||
|
||||
public void setSeats(java.lang.Integer seats) {
|
||||
this.seats = seats;
|
||||
}
|
||||
|
||||
@javax.persistence.Column(name = "address", precision = 100)
|
||||
public java.lang.String getAddress() {
|
||||
return this.address;
|
||||
}
|
||||
|
||||
public void setAddress(java.lang.String address) {
|
||||
this.address = address;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,101 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables.records;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.persistence.Entity
|
||||
@javax.persistence.Table(name = "athlete", schema = "PUBLIC")
|
||||
public class AthleteRecord extends org.jooq.impl.UpdatableRecordImpl<org.jooq.examples.cubrid.demodb.tables.records.AthleteRecord> {
|
||||
|
||||
private static final long serialVersionUID = -927949830;
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public void setCode(java.lang.Integer value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Athlete.ATHLETE.CODE, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
@javax.persistence.Id
|
||||
@javax.persistence.Column(name = "code", unique = true, nullable = false)
|
||||
public java.lang.Integer getCode() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Athlete.ATHLETE.CODE);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setName(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Athlete.ATHLETE.NAME, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "name", nullable = false, precision = 40)
|
||||
public java.lang.String getName() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Athlete.ATHLETE.NAME);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setGender(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Athlete.ATHLETE.GENDER, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "gender", length = 1)
|
||||
public java.lang.String getGender() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Athlete.ATHLETE.GENDER);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setNationCode(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Athlete.ATHLETE.NATION_CODE, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "nation_code", length = 3)
|
||||
public java.lang.String getNationCode() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Athlete.ATHLETE.NATION_CODE);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setEvent(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Athlete.ATHLETE.EVENT, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "event", precision = 30)
|
||||
public java.lang.String getEvent() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Athlete.ATHLETE.EVENT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached AthleteRecord
|
||||
*/
|
||||
public AthleteRecord() {
|
||||
super(org.jooq.examples.cubrid.demodb.tables.Athlete.ATHLETE);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,51 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables.records;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.persistence.Entity
|
||||
@javax.persistence.Table(name = "code", schema = "PUBLIC")
|
||||
public class CodeRecord extends org.jooq.impl.TableRecordImpl<org.jooq.examples.cubrid.demodb.tables.records.CodeRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1136850229;
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setSName(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Code.CODE.S_NAME, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "s_name", length = 1)
|
||||
public java.lang.String getSName() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Code.CODE.S_NAME);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setFName(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Code.CODE.F_NAME, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "f_name", precision = 6)
|
||||
public java.lang.String getFName() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Code.CODE.F_NAME);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached CodeRecord
|
||||
*/
|
||||
public CodeRecord() {
|
||||
super(org.jooq.examples.cubrid.demodb.tables.Code.CODE);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,101 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables.records;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.persistence.Entity
|
||||
@javax.persistence.Table(name = "event", schema = "PUBLIC")
|
||||
public class EventRecord extends org.jooq.impl.UpdatableRecordImpl<org.jooq.examples.cubrid.demodb.tables.records.EventRecord> {
|
||||
|
||||
private static final long serialVersionUID = -1891026539;
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public void setCode(java.lang.Integer value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Event.EVENT.CODE, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
@javax.persistence.Id
|
||||
@javax.persistence.Column(name = "code", unique = true, nullable = false)
|
||||
public java.lang.Integer getCode() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Event.EVENT.CODE);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setSports(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Event.EVENT.SPORTS, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "sports", precision = 50)
|
||||
public java.lang.String getSports() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Event.EVENT.SPORTS);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setName(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Event.EVENT.NAME, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "name", precision = 50)
|
||||
public java.lang.String getName() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Event.EVENT.NAME);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setGender(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Event.EVENT.GENDER, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "gender", length = 1)
|
||||
public java.lang.String getGender() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Event.EVENT.GENDER);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setPlayers(java.lang.Integer value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Event.EVENT.PLAYERS, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "players")
|
||||
public java.lang.Integer getPlayers() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Event.EVENT.PLAYERS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached EventRecord
|
||||
*/
|
||||
public EventRecord() {
|
||||
super(org.jooq.examples.cubrid.demodb.tables.Event.EVENT);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,140 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables.records;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.persistence.Entity
|
||||
@javax.persistence.Table(name = "game", schema = "PUBLIC", uniqueConstraints = {
|
||||
@javax.persistence.UniqueConstraint(columnNames = {"host_year", "event_code", "athlete_code"})
|
||||
})
|
||||
public class GameRecord extends org.jooq.impl.UpdatableRecordImpl<org.jooq.examples.cubrid.demodb.tables.records.GameRecord> {
|
||||
|
||||
private static final long serialVersionUID = -118829765;
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public void setHostYear(java.lang.Integer value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Game.GAME.HOST_YEAR, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
@javax.persistence.Column(name = "host_year", nullable = false)
|
||||
public java.lang.Integer getHostYear() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Game.GAME.HOST_YEAR);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public void setEventCode(java.lang.Integer value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Game.GAME.EVENT_CODE, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
@javax.persistence.Column(name = "event_code", nullable = false)
|
||||
public java.lang.Integer getEventCode() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Game.GAME.EVENT_CODE);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public void setAthleteCode(java.lang.Integer value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Game.GAME.ATHLETE_CODE, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
@javax.persistence.Column(name = "athlete_code", nullable = false)
|
||||
public java.lang.Integer getAthleteCode() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Game.GAME.ATHLETE_CODE);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setStadiumCode(java.lang.Integer value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Game.GAME.STADIUM_CODE, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "stadium_code", nullable = false)
|
||||
public java.lang.Integer getStadiumCode() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Game.GAME.STADIUM_CODE);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setNationCode(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Game.GAME.NATION_CODE, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "nation_code", length = 3)
|
||||
public java.lang.String getNationCode() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Game.GAME.NATION_CODE);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setMedal(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Game.GAME.MEDAL, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "medal", length = 1)
|
||||
public java.lang.String getMedal() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Game.GAME.MEDAL);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setGameDate(java.sql.Date value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Game.GAME.GAME_DATE, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "game_date")
|
||||
public java.sql.Date getGameDate() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Game.GAME.GAME_DATE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached GameRecord
|
||||
*/
|
||||
public GameRecord() {
|
||||
super(org.jooq.examples.cubrid.demodb.tables.Game.GAME);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,106 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables.records;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.persistence.Entity
|
||||
@javax.persistence.Table(name = "history", schema = "PUBLIC", uniqueConstraints = {
|
||||
@javax.persistence.UniqueConstraint(columnNames = {"event_code", "athlete"})
|
||||
})
|
||||
public class HistoryRecord extends org.jooq.impl.UpdatableRecordImpl<org.jooq.examples.cubrid.demodb.tables.records.HistoryRecord> {
|
||||
|
||||
private static final long serialVersionUID = 986266930;
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public void setEventCode(java.lang.Integer value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.History.HISTORY.EVENT_CODE, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
@javax.persistence.Column(name = "event_code", nullable = false)
|
||||
public java.lang.Integer getEventCode() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.History.HISTORY.EVENT_CODE);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public void setAthlete(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.History.HISTORY.ATHLETE, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
@javax.persistence.Column(name = "athlete", nullable = false, precision = 40)
|
||||
public java.lang.String getAthlete() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.History.HISTORY.ATHLETE);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setHostYear(java.lang.Integer value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.History.HISTORY.HOST_YEAR, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "host_year")
|
||||
public java.lang.Integer getHostYear() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.History.HISTORY.HOST_YEAR);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setScore(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.History.HISTORY.SCORE, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "score", precision = 10)
|
||||
public java.lang.String getScore() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.History.HISTORY.SCORE);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setUnit(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.History.HISTORY.UNIT, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "unit", precision = 5)
|
||||
public java.lang.String getUnit() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.History.HISTORY.UNIT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached HistoryRecord
|
||||
*/
|
||||
public HistoryRecord() {
|
||||
super(org.jooq.examples.cubrid.demodb.tables.History.HISTORY);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,86 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables.records;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.persistence.Entity
|
||||
@javax.persistence.Table(name = "nation", schema = "PUBLIC")
|
||||
public class NationRecord extends org.jooq.impl.UpdatableRecordImpl<org.jooq.examples.cubrid.demodb.tables.records.NationRecord> {
|
||||
|
||||
private static final long serialVersionUID = -126024393;
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public void setCode(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Nation.NATION.CODE, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
@javax.persistence.Id
|
||||
@javax.persistence.Column(name = "code", unique = true, nullable = false, length = 3)
|
||||
public java.lang.String getCode() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Nation.NATION.CODE);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setName(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Nation.NATION.NAME, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "name", nullable = false, precision = 40)
|
||||
public java.lang.String getName() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Nation.NATION.NAME);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setContinent(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Nation.NATION.CONTINENT, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "continent", precision = 10)
|
||||
public java.lang.String getContinent() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Nation.NATION.CONTINENT);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setCapital(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Nation.NATION.CAPITAL, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "capital", precision = 30)
|
||||
public java.lang.String getCapital() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Nation.NATION.CAPITAL);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached NationRecord
|
||||
*/
|
||||
public NationRecord() {
|
||||
super(org.jooq.examples.cubrid.demodb.tables.Nation.NATION);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,146 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables.records;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.persistence.Entity
|
||||
@javax.persistence.Table(name = "olympic", schema = "PUBLIC")
|
||||
public class OlympicRecord extends org.jooq.impl.UpdatableRecordImpl<org.jooq.examples.cubrid.demodb.tables.records.OlympicRecord> {
|
||||
|
||||
private static final long serialVersionUID = -57913018;
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public void setHostYear(java.lang.Integer value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Olympic.OLYMPIC.HOST_YEAR, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
@javax.persistence.Id
|
||||
@javax.persistence.Column(name = "host_year", unique = true, nullable = false)
|
||||
public java.lang.Integer getHostYear() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Olympic.OLYMPIC.HOST_YEAR);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setHostNation(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Olympic.OLYMPIC.HOST_NATION, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "host_nation", nullable = false, precision = 40)
|
||||
public java.lang.String getHostNation() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Olympic.OLYMPIC.HOST_NATION);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setHostCity(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Olympic.OLYMPIC.HOST_CITY, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "host_city", nullable = false, precision = 20)
|
||||
public java.lang.String getHostCity() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Olympic.OLYMPIC.HOST_CITY);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setOpeningDate(java.sql.Date value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Olympic.OLYMPIC.OPENING_DATE, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "opening_date", nullable = false)
|
||||
public java.sql.Date getOpeningDate() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Olympic.OLYMPIC.OPENING_DATE);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setClosingDate(java.sql.Date value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Olympic.OLYMPIC.CLOSING_DATE, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "closing_date", nullable = false)
|
||||
public java.sql.Date getClosingDate() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Olympic.OLYMPIC.CLOSING_DATE);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setMascot(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Olympic.OLYMPIC.MASCOT, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "mascot", precision = 20)
|
||||
public java.lang.String getMascot() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Olympic.OLYMPIC.MASCOT);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setSlogan(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Olympic.OLYMPIC.SLOGAN, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "slogan", precision = 40)
|
||||
public java.lang.String getSlogan() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Olympic.OLYMPIC.SLOGAN);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setIntroduction(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Olympic.OLYMPIC.INTRODUCTION, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "introduction", precision = 1500)
|
||||
public java.lang.String getIntroduction() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Olympic.OLYMPIC.INTRODUCTION);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached OlympicRecord
|
||||
*/
|
||||
public OlympicRecord() {
|
||||
super(org.jooq.examples.cubrid.demodb.tables.Olympic.OLYMPIC);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,106 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables.records;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.persistence.Entity
|
||||
@javax.persistence.Table(name = "participant", schema = "PUBLIC", uniqueConstraints = {
|
||||
@javax.persistence.UniqueConstraint(columnNames = {"host_year", "nation_code"})
|
||||
})
|
||||
public class ParticipantRecord extends org.jooq.impl.UpdatableRecordImpl<org.jooq.examples.cubrid.demodb.tables.records.ParticipantRecord> {
|
||||
|
||||
private static final long serialVersionUID = 934168601;
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public void setHostYear(java.lang.Integer value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Participant.PARTICIPANT.HOST_YEAR, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
@javax.persistence.Column(name = "host_year", nullable = false)
|
||||
public java.lang.Integer getHostYear() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Participant.PARTICIPANT.HOST_YEAR);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public void setNationCode(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Participant.PARTICIPANT.NATION_CODE, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
@javax.persistence.Column(name = "nation_code", nullable = false, length = 3)
|
||||
public java.lang.String getNationCode() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Participant.PARTICIPANT.NATION_CODE);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setGold(java.lang.Integer value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Participant.PARTICIPANT.GOLD, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "gold")
|
||||
public java.lang.Integer getGold() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Participant.PARTICIPANT.GOLD);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setSilver(java.lang.Integer value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Participant.PARTICIPANT.SILVER, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "silver")
|
||||
public java.lang.Integer getSilver() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Participant.PARTICIPANT.SILVER);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setBronze(java.lang.Integer value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Participant.PARTICIPANT.BRONZE, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "bronze")
|
||||
public java.lang.Integer getBronze() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Participant.PARTICIPANT.BRONZE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached ParticipantRecord
|
||||
*/
|
||||
public ParticipantRecord() {
|
||||
super(org.jooq.examples.cubrid.demodb.tables.Participant.PARTICIPANT);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,129 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables.records;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.persistence.Entity
|
||||
@javax.persistence.Table(name = "record", schema = "PUBLIC", uniqueConstraints = {
|
||||
@javax.persistence.UniqueConstraint(columnNames = {"host_year", "event_code", "athlete_code", "medal"})
|
||||
})
|
||||
public class RecordRecord extends org.jooq.impl.UpdatableRecordImpl<org.jooq.examples.cubrid.demodb.tables.records.RecordRecord> {
|
||||
|
||||
private static final long serialVersionUID = 373569526;
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public void setHostYear(java.lang.Integer value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.HOST_YEAR, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
@javax.persistence.Column(name = "host_year", nullable = false)
|
||||
public java.lang.Integer getHostYear() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.HOST_YEAR);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public void setEventCode(java.lang.Integer value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.EVENT_CODE, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
@javax.persistence.Column(name = "event_code", nullable = false)
|
||||
public java.lang.Integer getEventCode() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.EVENT_CODE);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public void setAthleteCode(java.lang.Integer value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.ATHLETE_CODE, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
@javax.persistence.Column(name = "athlete_code", nullable = false)
|
||||
public java.lang.Integer getAthleteCode() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.ATHLETE_CODE);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public void setMedal(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.MEDAL, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
@javax.persistence.Column(name = "medal", nullable = false, length = 1)
|
||||
public java.lang.String getMedal() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.MEDAL);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setScore(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.SCORE, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "score", precision = 20)
|
||||
public java.lang.String getScore() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.SCORE);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setUnit(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.UNIT, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "unit", precision = 5)
|
||||
public java.lang.String getUnit() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.UNIT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached RecordRecord
|
||||
*/
|
||||
public RecordRecord() {
|
||||
super(org.jooq.examples.cubrid.demodb.tables.Record.RECORD);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,116 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.examples.cubrid.demodb.tables.records;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.persistence.Entity
|
||||
@javax.persistence.Table(name = "stadium", schema = "PUBLIC")
|
||||
public class StadiumRecord extends org.jooq.impl.UpdatableRecordImpl<org.jooq.examples.cubrid.demodb.tables.records.StadiumRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1748878530;
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
public void setCode(java.lang.Integer value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Stadium.STADIUM.CODE, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*
|
||||
* PRIMARY KEY
|
||||
*/
|
||||
@javax.persistence.Id
|
||||
@javax.persistence.Column(name = "code", unique = true, nullable = false)
|
||||
public java.lang.Integer getCode() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Stadium.STADIUM.CODE);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setNationCode(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Stadium.STADIUM.NATION_CODE, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "nation_code", nullable = false, length = 3)
|
||||
public java.lang.String getNationCode() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Stadium.STADIUM.NATION_CODE);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setName(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Stadium.STADIUM.NAME, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "name", nullable = false, precision = 50)
|
||||
public java.lang.String getName() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Stadium.STADIUM.NAME);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setArea(java.math.BigDecimal value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Stadium.STADIUM.AREA, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "area", precision = 10, scale = 2)
|
||||
public java.math.BigDecimal getArea() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Stadium.STADIUM.AREA);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setSeats(java.lang.Integer value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Stadium.STADIUM.SEATS, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "seats")
|
||||
public java.lang.Integer getSeats() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Stadium.STADIUM.SEATS);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
public void setAddress(java.lang.String value) {
|
||||
setValue(org.jooq.examples.cubrid.demodb.tables.Stadium.STADIUM.ADDRESS, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* An uncommented item
|
||||
*/
|
||||
@javax.persistence.Column(name = "address", precision = 100)
|
||||
public java.lang.String getAddress() {
|
||||
return getValue(org.jooq.examples.cubrid.demodb.tables.Stadium.STADIUM.ADDRESS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached StadiumRecord
|
||||
*/
|
||||
public StadiumRecord() {
|
||||
super(org.jooq.examples.cubrid.demodb.tables.Stadium.STADIUM);
|
||||
}
|
||||
}
|
||||
33
jOOQ-test/launch/GenerationTool CUBRID demodb.launch
Normal file
33
jOOQ-test/launch/GenerationTool CUBRID demodb.launch
Normal file
File diff suppressed because one or more lines are too long
31
jOOQ-test/launch/Meta-Generate CUBRID dba.launch
Normal file
31
jOOQ-test/launch/Meta-Generate CUBRID dba.launch
Normal file
@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
|
||||
<stringAttribute key="bad_container_name" value="/jOOQ-codegen/launch"/>
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
||||
<listEntry value="/jOOQ-codegen/src/main/java/org/jooq/util/GenerationTool.java"/>
|
||||
</listAttribute>
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||
<listEntry value="1"/>
|
||||
</listAttribute>
|
||||
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
|
||||
<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
|
||||
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
|
||||
</listAttribute>
|
||||
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
|
||||
<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry containerPath="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6" javaProject="jOOQ-codegen" path="1" type="4"/> "/>
|
||||
<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry path="3" projectName="jOOU" type="1"/> "/>
|
||||
<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry path="3" projectName="jOOQ" type="1"/> "/>
|
||||
<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry path="3" projectName="jOOQ-codegen" type="1"/> "/>
|
||||
<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry path="3" projectName="jOOQ-test" type="1"/> "/>
|
||||
<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry path="3" projectName="jOOQ-meta" type="1"/> "/>
|
||||
<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry internalArchive="/jOOQ-test/lib/JDBC-8.4.1.1018-cubrid.jar" path="3" type="2"/> "/>
|
||||
<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry internalArchive="/jOOQ-test/lib/log4j-1.2.16.jar" path="3" type="2"/> "/>
|
||||
</listAttribute>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.maven.ide.eclipse.launchconfig.classpathProvider"/>
|
||||
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.jooq.util.GenerationTool"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="/org/jooq/configuration/${env_var:USERNAME}/cubrid/dba.xml"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="jOOQ-codegen"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.maven.ide.eclipse.launchconfig.sourcepathProvider"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:jOOQ-meta}"/>
|
||||
</launchConfiguration>
|
||||
BIN
jOOQ-test/lib/JDBC-8.4.1.1018-cubrid.jar
Normal file
BIN
jOOQ-test/lib/JDBC-8.4.1.1018-cubrid.jar
Normal file
Binary file not shown.
@ -38,6 +38,7 @@ package org.jooq;
|
||||
|
||||
import org.jooq.impl.Factory;
|
||||
import org.jooq.util.ase.ASEFactory;
|
||||
import org.jooq.util.cubrid.CUBRIDFactory;
|
||||
import org.jooq.util.db2.DB2Factory;
|
||||
import org.jooq.util.derby.DerbyFactory;
|
||||
import org.jooq.util.h2.H2Factory;
|
||||
@ -70,6 +71,11 @@ public enum SQLDialect {
|
||||
*/
|
||||
ASE("ASE", ASEFactory.class),
|
||||
|
||||
/**
|
||||
* The CUBRID SQL dialect
|
||||
*/
|
||||
CUBRID("CUBRID", CUBRIDFactory.class),
|
||||
|
||||
/**
|
||||
* The IBM DB2 SQL dialect
|
||||
*/
|
||||
|
||||
@ -81,6 +81,7 @@ import org.jooq.tools.unsigned.UShort;
|
||||
import org.jooq.types.DayToSecond;
|
||||
import org.jooq.types.YearToMonth;
|
||||
import org.jooq.util.ase.ASEDataType;
|
||||
import org.jooq.util.cubrid.CUBRIDDataType;
|
||||
import org.jooq.util.db2.DB2DataType;
|
||||
import org.jooq.util.derby.DerbyDataType;
|
||||
import org.jooq.util.h2.H2DataType;
|
||||
@ -820,6 +821,8 @@ public final class FieldTypeHelper {
|
||||
switch (dialect) {
|
||||
case ASE:
|
||||
return ASEDataType.getDataType(type);
|
||||
case CUBRID:
|
||||
return CUBRIDDataType.getDataType(type);
|
||||
case DB2:
|
||||
return DB2DataType.getDataType(type);
|
||||
case DERBY:
|
||||
|
||||
@ -52,6 +52,7 @@ import org.jooq.tools.unsigned.UShort;
|
||||
import org.jooq.types.DayToSecond;
|
||||
import org.jooq.types.YearToMonth;
|
||||
import org.jooq.util.ase.ASEDataType;
|
||||
import org.jooq.util.cubrid.CUBRIDDataType;
|
||||
import org.jooq.util.db2.DB2DataType;
|
||||
import org.jooq.util.derby.DerbyDataType;
|
||||
import org.jooq.util.h2.H2DataType;
|
||||
@ -309,6 +310,7 @@ public final class SQLDataType<T> extends AbstractDataType<T> {
|
||||
|
||||
try {
|
||||
Class.forName(ASEDataType.class.getName());
|
||||
Class.forName(CUBRIDDataType.class.getName());
|
||||
Class.forName(DB2DataType.class.getName());
|
||||
Class.forName(DerbyDataType.class.getName());
|
||||
Class.forName(H2DataType.class.getName());
|
||||
|
||||
141
jOOQ/src/main/java/org/jooq/util/cubrid/CUBRIDDataType.java
Normal file
141
jOOQ/src/main/java/org/jooq/util/cubrid/CUBRIDDataType.java
Normal file
@ -0,0 +1,141 @@
|
||||
/**
|
||||
* Copyright (c) 2009-2012, Lukas Eder, lukas.eder@gmail.com
|
||||
* All rights reserved.
|
||||
*
|
||||
* This software is licensed to you under the Apache License, Version 2.0
|
||||
* (the "License"); You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* . Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
*
|
||||
* . Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* . Neither the name "jOOQ" nor the names of its contributors may be
|
||||
* used to endorse or promote products derived from this software without
|
||||
* specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package org.jooq.util.cubrid;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
import java.sql.Date;
|
||||
import java.sql.Time;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import org.jooq.DataType;
|
||||
import org.jooq.SQLDialect;
|
||||
import org.jooq.impl.AbstractDataType;
|
||||
import org.jooq.impl.SQLDataType;
|
||||
|
||||
/**
|
||||
* Supported data types for the {@link SQLDialect#CUBRID} dialect
|
||||
*
|
||||
* @author Lukas Eder
|
||||
*/
|
||||
public class CUBRIDDataType<T> extends AbstractDataType<T> {
|
||||
|
||||
/**
|
||||
* Generated UID
|
||||
*/
|
||||
private static final long serialVersionUID = -5677365115109672781L;
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Default SQL data types and synonyms thereof
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
public static final CUBRIDDataType<Integer> INT = new CUBRIDDataType<Integer>(SQLDataType.INTEGER, "int");
|
||||
public static final CUBRIDDataType<Integer> INTEGER = new CUBRIDDataType<Integer>(SQLDataType.INTEGER, "integer");
|
||||
public static final CUBRIDDataType<Short> SHORT = new CUBRIDDataType<Short>(SQLDataType.SMALLINT, "short");
|
||||
public static final CUBRIDDataType<Short> SMALLINT = new CUBRIDDataType<Short>(SQLDataType.SMALLINT, "smallint");
|
||||
public static final CUBRIDDataType<Long> BIGINT = new CUBRIDDataType<Long>(SQLDataType.BIGINT, "bigint");
|
||||
public static final CUBRIDDataType<BigDecimal> DECIMAL = new CUBRIDDataType<BigDecimal>(SQLDataType.DECIMAL, "decimal");
|
||||
public static final CUBRIDDataType<BigDecimal> DEC = new CUBRIDDataType<BigDecimal>(SQLDataType.DECIMAL, "dec");
|
||||
public static final CUBRIDDataType<BigDecimal> NUMERIC = new CUBRIDDataType<BigDecimal>(SQLDataType.DECIMAL, "numeric");
|
||||
public static final CUBRIDDataType<Float> FLOAT = new CUBRIDDataType<Float>(SQLDataType.REAL, "float");
|
||||
public static final CUBRIDDataType<Float> REAL = new CUBRIDDataType<Float>(SQLDataType.REAL, "real");
|
||||
public static final CUBRIDDataType<Double> DOUBLE = new CUBRIDDataType<Double>(SQLDataType.DOUBLE, "double");
|
||||
public static final CUBRIDDataType<Double> DOUBLEPRECISION = new CUBRIDDataType<Double>(SQLDataType.DOUBLE, "double precision");
|
||||
|
||||
public static final CUBRIDDataType<String> VARCHAR = new CUBRIDDataType<String>(SQLDataType.VARCHAR, "varchar");
|
||||
public static final CUBRIDDataType<String> CHARVARYING = new CUBRIDDataType<String>(SQLDataType.VARCHAR, "char varying");
|
||||
public static final CUBRIDDataType<String> CHARACTERVARYING = new CUBRIDDataType<String>(SQLDataType.VARCHAR, "character varying");
|
||||
public static final CUBRIDDataType<String> CHAR = new CUBRIDDataType<String>(SQLDataType.CHAR, "char");
|
||||
public static final CUBRIDDataType<String> CHARACTER = new CUBRIDDataType<String>(SQLDataType.CHAR, "character");
|
||||
public static final CUBRIDDataType<String> STRING = new CUBRIDDataType<String>(SQLDataType.VARCHAR, "string");
|
||||
public static final CUBRIDDataType<String> NCHAR = new CUBRIDDataType<String>(SQLDataType.NCHAR, "nchar");
|
||||
public static final CUBRIDDataType<String> NCHARVARYING = new CUBRIDDataType<String>(SQLDataType.NVARCHAR, "nchar varying");
|
||||
public static final CUBRIDDataType<String> NATIONALCHARVARYING = new CUBRIDDataType<String>(SQLDataType.NVARCHAR, "national char varying");
|
||||
public static final CUBRIDDataType<String> NATIONALCHARACTERVARYING = new CUBRIDDataType<String>(SQLDataType.NVARCHAR, "national character varying");
|
||||
public static final CUBRIDDataType<String> CLOB = new CUBRIDDataType<String>(SQLDataType.CLOB, "clob");
|
||||
|
||||
public static final CUBRIDDataType<Date> DATE = new CUBRIDDataType<Date>(SQLDataType.DATE, "date");
|
||||
public static final CUBRIDDataType<Time> TIME = new CUBRIDDataType<Time>(SQLDataType.TIME, "time");
|
||||
public static final CUBRIDDataType<Timestamp> DATETIME = new CUBRIDDataType<Timestamp>(SQLDataType.TIMESTAMP, "datetime");
|
||||
public static final CUBRIDDataType<Timestamp> TIMESTAMP = new CUBRIDDataType<Timestamp>(SQLDataType.TIMESTAMP, "timestamp");
|
||||
|
||||
public static final CUBRIDDataType<byte[]> BITVARYING = new CUBRIDDataType<byte[]>(SQLDataType.VARBINARY, "bitvarying");
|
||||
public static final CUBRIDDataType<byte[]> BIT = new CUBRIDDataType<byte[]>(SQLDataType.BINARY, "bit");
|
||||
public static final CUBRIDDataType<byte[]> BLOB = new CUBRIDDataType<byte[]>(SQLDataType.BLOB, "blob");
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Compatibility types for supported SQLDataTypes
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
protected static final CUBRIDDataType<Boolean> __BOOL = new CUBRIDDataType<Boolean>(SQLDataType.BOOLEAN, "bit", "bit(1)");
|
||||
protected static final CUBRIDDataType<Boolean> __BIT = new CUBRIDDataType<Boolean>(SQLDataType.BIT, "bit", "bit(1)");
|
||||
protected static final CUBRIDDataType<String> __LONGNVARCHAR = new CUBRIDDataType<String>(SQLDataType.LONGNVARCHAR, "nvarchar");
|
||||
protected static final CUBRIDDataType<String> __NCLOB = new CUBRIDDataType<String>(SQLDataType.NCLOB, "clob");
|
||||
protected static final CUBRIDDataType<String> __LONGVARCHAR = new CUBRIDDataType<String>(SQLDataType.LONGVARCHAR, "varchar");
|
||||
protected static final CUBRIDDataType<byte[]> __LONGVARBINARY = new CUBRIDDataType<byte[]>(SQLDataType.LONGVARBINARY, "blob");
|
||||
protected static final CUBRIDDataType<Byte> __TINYINT = new CUBRIDDataType<Byte>(SQLDataType.TINYINT, "smallint");
|
||||
protected static final CUBRIDDataType<Double> __FLOAT = new CUBRIDDataType<Double>(SQLDataType.DOUBLE, "double");
|
||||
protected static final CUBRIDDataType<BigDecimal> __NUMERIC = new CUBRIDDataType<BigDecimal>(SQLDataType.NUMERIC, "decimal");
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Compatibility types for supported Java types
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
protected static final CUBRIDDataType<BigInteger> __BIGINTEGER = new CUBRIDDataType<BigInteger>(SQLDataType.DECIMAL_INTEGER, "decimal", "decimal");
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Dialect-specific data types and synonyms thereof
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
public static final CUBRIDDataType<Double> MONETARY = new CUBRIDDataType<Double>(SQLDataType.DOUBLE, "monetary");
|
||||
|
||||
private CUBRIDDataType(SQLDataType<T> sqlDataType, String typeName) {
|
||||
super(SQLDialect.CUBRID, sqlDataType, sqlDataType.getType(), typeName);
|
||||
}
|
||||
|
||||
private CUBRIDDataType(SQLDataType<T> sqlDataType, String typeName, String castTypeName) {
|
||||
super(SQLDialect.CUBRID, sqlDataType, sqlDataType.getType(), typeName, castTypeName);
|
||||
}
|
||||
|
||||
public static <T> DataType<T> getDataType(Class<? extends T> type) {
|
||||
return getDataType(SQLDialect.CUBRID, type);
|
||||
}
|
||||
|
||||
public static DataType<Object> getDefaultDataType(String typeName) {
|
||||
return getDefaultDataType(SQLDialect.CUBRID, typeName);
|
||||
}
|
||||
}
|
||||
72
jOOQ/src/main/java/org/jooq/util/cubrid/CUBRIDFactory.java
Normal file
72
jOOQ/src/main/java/org/jooq/util/cubrid/CUBRIDFactory.java
Normal file
@ -0,0 +1,72 @@
|
||||
/**
|
||||
* Copyright (c) 2009-2012, Lukas Eder, lukas.eder@gmail.com
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* . Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
*
|
||||
* . Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* . Neither the name of the "jOOQ" nor the names of its contributors may be
|
||||
* used to endorse or promote products derived from this software without
|
||||
* specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package org.jooq.util.cubrid;
|
||||
|
||||
import java.sql.Connection;
|
||||
|
||||
import org.jooq.SQLDialect;
|
||||
import org.jooq.conf.Settings;
|
||||
import org.jooq.impl.Factory;
|
||||
|
||||
/**
|
||||
* A {@link SQLDialect#CUBRID} specific factory
|
||||
*
|
||||
* @author Lukas Eder
|
||||
*/
|
||||
public class CUBRIDFactory extends Factory {
|
||||
|
||||
/**
|
||||
* Generated UID
|
||||
*/
|
||||
private static final long serialVersionUID = 6530433807914995633L;
|
||||
|
||||
/**
|
||||
* Create a factory with connection and a settings configured
|
||||
*
|
||||
* @param connection The connection to use with objects created from this
|
||||
* factory
|
||||
* @param settings The runtime settings to apply to objects created from
|
||||
* this factory
|
||||
*/
|
||||
public CUBRIDFactory(Connection connection, Settings settings) {
|
||||
super(connection, SQLDialect.CUBRID, settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a factory with connection
|
||||
*
|
||||
* @param connection The connection to use with objects created from this
|
||||
* factory
|
||||
*/
|
||||
public CUBRIDFactory(Connection connection) {
|
||||
super(connection, SQLDialect.CUBRID);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user