[#2486] Allow to specify precision, scale, length for type-rewrites in <forcedType/> - Regenerated test database

This commit is contained in:
Lukas Eder 2014-07-29 16:32:38 +02:00
parent 818bebeecb
commit 261745b88c
6 changed files with 809 additions and 1 deletions

View File

@ -9,7 +9,7 @@ package org.jooq.test.h2.generatedclasses;
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Public extends org.jooq.impl.SchemaImpl {
private static final long serialVersionUID = 149547916;
private static final long serialVersionUID = -616927962;
/**
* The singleton instance of <code>PUBLIC</code>
@ -56,6 +56,7 @@ public class Public extends org.jooq.impl.SchemaImpl {
org.jooq.test.h2.generatedclasses.tables.T_725LobTest.T_725_LOB_TEST,
org.jooq.test.h2.generatedclasses.tables.T_785.T_785,
org.jooq.test.h2.generatedclasses.tables.T_877.T_877,
org.jooq.test.h2.generatedclasses.tables.T_2486.T_2486,
org.jooq.test.h2.generatedclasses.tables.T_2698.T_2698,
org.jooq.test.h2.generatedclasses.tables.T_2718.T_2718,
org.jooq.test.h2.generatedclasses.tables.TAuthor.T_AUTHOR,

View File

@ -66,6 +66,11 @@ public class Tables {
*/
public static final org.jooq.test.h2.generatedclasses.tables.T_877 T_877 = org.jooq.test.h2.generatedclasses.tables.T_877.T_877;
/**
* The table PUBLIC.T_2486
*/
public static final org.jooq.test.h2.generatedclasses.tables.T_2486 T_2486 = org.jooq.test.h2.generatedclasses.tables.T_2486.T_2486;
/**
* The table PUBLIC.T_2698
*/

View File

@ -0,0 +1,103 @@
/**
* This class is generated by jOOQ
*/
package org.jooq.test.h2.generatedclasses.tables;
/**
* This class is generated by jOOQ.
*/
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class T_2486 extends org.jooq.impl.TableImpl<org.jooq.test.h2.generatedclasses.tables.records.T_2486Record> {
private static final long serialVersionUID = -2058148667;
/**
* The singleton instance of <code>PUBLIC.T_2486</code>
*/
public static final org.jooq.test.h2.generatedclasses.tables.T_2486 T_2486 = new org.jooq.test.h2.generatedclasses.tables.T_2486();
/**
* The class holding records for this type
*/
@Override
public java.lang.Class<org.jooq.test.h2.generatedclasses.tables.records.T_2486Record> getRecordType() {
return org.jooq.test.h2.generatedclasses.tables.records.T_2486Record.class;
}
/**
* The column <code>PUBLIC.T_2486.VAL1</code>.
*/
public final org.jooq.TableField<org.jooq.test.h2.generatedclasses.tables.records.T_2486Record, java.math.BigDecimal> VAL1 = createField("VAL1", org.jooq.impl.SQLDataType.DECIMAL, this, "");
/**
* The column <code>PUBLIC.T_2486.VAL2</code>.
*/
public final org.jooq.TableField<org.jooq.test.h2.generatedclasses.tables.records.T_2486Record, java.math.BigDecimal> VAL2 = createField("VAL2", org.jooq.impl.SQLDataType.DECIMAL.precision(21, 4), this, "");
/**
* The column <code>PUBLIC.T_2486.VAL3</code>.
*/
public final org.jooq.TableField<org.jooq.test.h2.generatedclasses.tables.records.T_2486Record, java.math.BigDecimal> VAL3 = createField("VAL3", org.jooq.impl.SQLDataType.DECIMAL, this, "");
/**
* The column <code>PUBLIC.T_2486.VAL4</code>.
*/
public final org.jooq.TableField<org.jooq.test.h2.generatedclasses.tables.records.T_2486Record, java.math.BigDecimal> VAL4 = createField("VAL4", org.jooq.impl.SQLDataType.DECIMAL.precision(21, 4), this, "");
/**
* The column <code>PUBLIC.T_2486.VAL5</code>.
*/
public final org.jooq.TableField<org.jooq.test.h2.generatedclasses.tables.records.T_2486Record, java.math.BigDecimal> VAL5 = createField("VAL5", org.jooq.impl.SQLDataType.DECIMAL, this, "");
/**
* The column <code>PUBLIC.T_2486.VAL6</code>.
*/
public final org.jooq.TableField<org.jooq.test.h2.generatedclasses.tables.records.T_2486Record, java.math.BigDecimal> VAL6 = createField("VAL6", org.jooq.impl.SQLDataType.DECIMAL.precision(21, 4), this, "");
/**
* The column <code>PUBLIC.T_2486.VAL7</code>.
*/
public final org.jooq.TableField<org.jooq.test.h2.generatedclasses.tables.records.T_2486Record, java.math.BigInteger> VAL7 = createField("VAL7", org.jooq.impl.SQLDataType.DECIMAL_INTEGER.precision(20), this, "");
/**
* The column <code>PUBLIC.T_2486.VAL8</code>.
*/
public final org.jooq.TableField<org.jooq.test.h2.generatedclasses.tables.records.T_2486Record, java.math.BigInteger> VAL8 = createField("VAL8", org.jooq.impl.SQLDataType.DECIMAL_INTEGER.precision(20), this, "");
/**
* Create a <code>PUBLIC.T_2486</code> table reference
*/
public T_2486() {
this("T_2486", null);
}
/**
* Create an aliased <code>PUBLIC.T_2486</code> table reference
*/
public T_2486(java.lang.String alias) {
this(alias, org.jooq.test.h2.generatedclasses.tables.T_2486.T_2486);
}
private T_2486(java.lang.String alias, org.jooq.Table<org.jooq.test.h2.generatedclasses.tables.records.T_2486Record> aliased) {
this(alias, aliased, null);
}
private T_2486(java.lang.String alias, org.jooq.Table<org.jooq.test.h2.generatedclasses.tables.records.T_2486Record> aliased, org.jooq.Field<?>[] parameters) {
super(alias, org.jooq.test.h2.generatedclasses.Public.PUBLIC, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.test.h2.generatedclasses.tables.T_2486 as(java.lang.String alias) {
return new org.jooq.test.h2.generatedclasses.tables.T_2486(alias, this);
}
/**
* Rename this table
*/
public org.jooq.test.h2.generatedclasses.tables.T_2486 rename(java.lang.String name) {
return new org.jooq.test.h2.generatedclasses.tables.T_2486(name, null);
}
}

View File

@ -0,0 +1,105 @@
/**
* This class is generated by jOOQ
*/
package org.jooq.test.h2.generatedclasses.tables.interfaces;
/**
* This class is generated by jOOQ.
*/
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
public interface IT_2486 extends java.io.Serializable {
/**
* Setter for <code>PUBLIC.T_2486.VAL1</code>.
*/
public IT_2486 setVal1(java.math.BigDecimal value);
/**
* Getter for <code>PUBLIC.T_2486.VAL1</code>.
*/
public java.math.BigDecimal getVal1();
/**
* Setter for <code>PUBLIC.T_2486.VAL2</code>.
*/
public IT_2486 setVal2(java.math.BigDecimal value);
/**
* Getter for <code>PUBLIC.T_2486.VAL2</code>.
*/
public java.math.BigDecimal getVal2();
/**
* Setter for <code>PUBLIC.T_2486.VAL3</code>.
*/
public IT_2486 setVal3(java.math.BigDecimal value);
/**
* Getter for <code>PUBLIC.T_2486.VAL3</code>.
*/
public java.math.BigDecimal getVal3();
/**
* Setter for <code>PUBLIC.T_2486.VAL4</code>.
*/
public IT_2486 setVal4(java.math.BigDecimal value);
/**
* Getter for <code>PUBLIC.T_2486.VAL4</code>.
*/
public java.math.BigDecimal getVal4();
/**
* Setter for <code>PUBLIC.T_2486.VAL5</code>.
*/
public IT_2486 setVal5(java.math.BigDecimal value);
/**
* Getter for <code>PUBLIC.T_2486.VAL5</code>.
*/
public java.math.BigDecimal getVal5();
/**
* Setter for <code>PUBLIC.T_2486.VAL6</code>.
*/
public IT_2486 setVal6(java.math.BigDecimal value);
/**
* Getter for <code>PUBLIC.T_2486.VAL6</code>.
*/
public java.math.BigDecimal getVal6();
/**
* Setter for <code>PUBLIC.T_2486.VAL7</code>.
*/
public IT_2486 setVal7(java.math.BigInteger value);
/**
* Getter for <code>PUBLIC.T_2486.VAL7</code>.
*/
public java.math.BigInteger getVal7();
/**
* Setter for <code>PUBLIC.T_2486.VAL8</code>.
*/
public IT_2486 setVal8(java.math.BigInteger value);
/**
* Getter for <code>PUBLIC.T_2486.VAL8</code>.
*/
public java.math.BigInteger getVal8();
// -------------------------------------------------------------------------
// FROM and INTO
// -------------------------------------------------------------------------
/**
* Load data from another generated Record/POJO implementing the common interface IT_2486
*/
public void from(org.jooq.test.h2.generatedclasses.tables.interfaces.IT_2486 from);
/**
* Copy data into another generated Record/POJO implementing the common interface IT_2486
*/
public <E extends org.jooq.test.h2.generatedclasses.tables.interfaces.IT_2486> E into(E into);
}

View File

@ -0,0 +1,162 @@
/**
* This class is generated by jOOQ
*/
package org.jooq.test.h2.generatedclasses.tables.pojos;
/**
* This is a POJO for table T_2486.
*/
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class T_2486 implements org.jooq.test.h2.generatedclasses.tables.interfaces.IT_2486 {
private static final long serialVersionUID = 2055802023;
private java.math.BigDecimal val1;
private java.math.BigDecimal val2;
private java.math.BigDecimal val3;
private java.math.BigDecimal val4;
private java.math.BigDecimal val5;
private java.math.BigDecimal val6;
private java.math.BigInteger val7;
private java.math.BigInteger val8;
public T_2486() {}
public T_2486(
java.math.BigDecimal val1,
java.math.BigDecimal val2,
java.math.BigDecimal val3,
java.math.BigDecimal val4,
java.math.BigDecimal val5,
java.math.BigDecimal val6,
java.math.BigInteger val7,
java.math.BigInteger val8
) {
this.val1 = val1;
this.val2 = val2;
this.val3 = val3;
this.val4 = val4;
this.val5 = val5;
this.val6 = val6;
this.val7 = val7;
this.val8 = val8;
}
@Override
public java.math.BigDecimal getVal1() {
return this.val1;
}
@Override
public T_2486 setVal1(java.math.BigDecimal val1) {
this.val1 = val1;
return this;
}
@Override
public java.math.BigDecimal getVal2() {
return this.val2;
}
@Override
public T_2486 setVal2(java.math.BigDecimal val2) {
this.val2 = val2;
return this;
}
@Override
public java.math.BigDecimal getVal3() {
return this.val3;
}
@Override
public T_2486 setVal3(java.math.BigDecimal val3) {
this.val3 = val3;
return this;
}
@Override
public java.math.BigDecimal getVal4() {
return this.val4;
}
@Override
public T_2486 setVal4(java.math.BigDecimal val4) {
this.val4 = val4;
return this;
}
@Override
public java.math.BigDecimal getVal5() {
return this.val5;
}
@Override
public T_2486 setVal5(java.math.BigDecimal val5) {
this.val5 = val5;
return this;
}
@Override
public java.math.BigDecimal getVal6() {
return this.val6;
}
@Override
public T_2486 setVal6(java.math.BigDecimal val6) {
this.val6 = val6;
return this;
}
@Override
public java.math.BigInteger getVal7() {
return this.val7;
}
@Override
public T_2486 setVal7(java.math.BigInteger val7) {
this.val7 = val7;
return this;
}
@Override
public java.math.BigInteger getVal8() {
return this.val8;
}
@Override
public T_2486 setVal8(java.math.BigInteger val8) {
this.val8 = val8;
return this;
}
// -------------------------------------------------------------------------
// FROM and INTO
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public void from(org.jooq.test.h2.generatedclasses.tables.interfaces.IT_2486 from) {
setVal1(from.getVal1());
setVal2(from.getVal2());
setVal3(from.getVal3());
setVal4(from.getVal4());
setVal5(from.getVal5());
setVal6(from.getVal6());
setVal7(from.getVal7());
setVal8(from.getVal8());
}
/**
* {@inheritDoc}
*/
@Override
public <E extends org.jooq.test.h2.generatedclasses.tables.interfaces.IT_2486> E into(E into) {
into.from(this);
return into;
}
// Here, a toString() method could be generated
}

View File

@ -0,0 +1,432 @@
/**
* This class is generated by jOOQ
*/
package org.jooq.test.h2.generatedclasses.tables.records;
/**
* This class is generated by jOOQ.
*/
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class T_2486Record extends org.jooq.impl.TableRecordImpl<org.jooq.test.h2.generatedclasses.tables.records.T_2486Record> implements org.jooq.Record8<java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigInteger, java.math.BigInteger>, org.jooq.test.h2.generatedclasses.tables.interfaces.IT_2486 {
private static final long serialVersionUID = -608718121;
/**
* Setter for <code>PUBLIC.T_2486.VAL1</code>.
*/
@Override
public T_2486Record setVal1(java.math.BigDecimal value) {
setValue(0, value);
return this;
}
/**
* Getter for <code>PUBLIC.T_2486.VAL1</code>.
*/
@Override
public java.math.BigDecimal getVal1() {
return (java.math.BigDecimal) getValue(0);
}
/**
* Setter for <code>PUBLIC.T_2486.VAL2</code>.
*/
@Override
public T_2486Record setVal2(java.math.BigDecimal value) {
setValue(1, value);
return this;
}
/**
* Getter for <code>PUBLIC.T_2486.VAL2</code>.
*/
@Override
public java.math.BigDecimal getVal2() {
return (java.math.BigDecimal) getValue(1);
}
/**
* Setter for <code>PUBLIC.T_2486.VAL3</code>.
*/
@Override
public T_2486Record setVal3(java.math.BigDecimal value) {
setValue(2, value);
return this;
}
/**
* Getter for <code>PUBLIC.T_2486.VAL3</code>.
*/
@Override
public java.math.BigDecimal getVal3() {
return (java.math.BigDecimal) getValue(2);
}
/**
* Setter for <code>PUBLIC.T_2486.VAL4</code>.
*/
@Override
public T_2486Record setVal4(java.math.BigDecimal value) {
setValue(3, value);
return this;
}
/**
* Getter for <code>PUBLIC.T_2486.VAL4</code>.
*/
@Override
public java.math.BigDecimal getVal4() {
return (java.math.BigDecimal) getValue(3);
}
/**
* Setter for <code>PUBLIC.T_2486.VAL5</code>.
*/
@Override
public T_2486Record setVal5(java.math.BigDecimal value) {
setValue(4, value);
return this;
}
/**
* Getter for <code>PUBLIC.T_2486.VAL5</code>.
*/
@Override
public java.math.BigDecimal getVal5() {
return (java.math.BigDecimal) getValue(4);
}
/**
* Setter for <code>PUBLIC.T_2486.VAL6</code>.
*/
@Override
public T_2486Record setVal6(java.math.BigDecimal value) {
setValue(5, value);
return this;
}
/**
* Getter for <code>PUBLIC.T_2486.VAL6</code>.
*/
@Override
public java.math.BigDecimal getVal6() {
return (java.math.BigDecimal) getValue(5);
}
/**
* Setter for <code>PUBLIC.T_2486.VAL7</code>.
*/
@Override
public T_2486Record setVal7(java.math.BigInteger value) {
setValue(6, value);
return this;
}
/**
* Getter for <code>PUBLIC.T_2486.VAL7</code>.
*/
@Override
public java.math.BigInteger getVal7() {
return (java.math.BigInteger) getValue(6);
}
/**
* Setter for <code>PUBLIC.T_2486.VAL8</code>.
*/
@Override
public T_2486Record setVal8(java.math.BigInteger value) {
setValue(7, value);
return this;
}
/**
* Getter for <code>PUBLIC.T_2486.VAL8</code>.
*/
@Override
public java.math.BigInteger getVal8() {
return (java.math.BigInteger) getValue(7);
}
// -------------------------------------------------------------------------
// Record8 type implementation
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Row8<java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigInteger, java.math.BigInteger> fieldsRow() {
return (org.jooq.Row8) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Row8<java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigInteger, java.math.BigInteger> valuesRow() {
return (org.jooq.Row8) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.math.BigDecimal> field1() {
return org.jooq.test.h2.generatedclasses.tables.T_2486.T_2486.VAL1;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.math.BigDecimal> field2() {
return org.jooq.test.h2.generatedclasses.tables.T_2486.T_2486.VAL2;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.math.BigDecimal> field3() {
return org.jooq.test.h2.generatedclasses.tables.T_2486.T_2486.VAL3;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.math.BigDecimal> field4() {
return org.jooq.test.h2.generatedclasses.tables.T_2486.T_2486.VAL4;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.math.BigDecimal> field5() {
return org.jooq.test.h2.generatedclasses.tables.T_2486.T_2486.VAL5;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.math.BigDecimal> field6() {
return org.jooq.test.h2.generatedclasses.tables.T_2486.T_2486.VAL6;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.math.BigInteger> field7() {
return org.jooq.test.h2.generatedclasses.tables.T_2486.T_2486.VAL7;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.math.BigInteger> field8() {
return org.jooq.test.h2.generatedclasses.tables.T_2486.T_2486.VAL8;
}
/**
* {@inheritDoc}
*/
@Override
public java.math.BigDecimal value1() {
return getVal1();
}
/**
* {@inheritDoc}
*/
@Override
public java.math.BigDecimal value2() {
return getVal2();
}
/**
* {@inheritDoc}
*/
@Override
public java.math.BigDecimal value3() {
return getVal3();
}
/**
* {@inheritDoc}
*/
@Override
public java.math.BigDecimal value4() {
return getVal4();
}
/**
* {@inheritDoc}
*/
@Override
public java.math.BigDecimal value5() {
return getVal5();
}
/**
* {@inheritDoc}
*/
@Override
public java.math.BigDecimal value6() {
return getVal6();
}
/**
* {@inheritDoc}
*/
@Override
public java.math.BigInteger value7() {
return getVal7();
}
/**
* {@inheritDoc}
*/
@Override
public java.math.BigInteger value8() {
return getVal8();
}
/**
* {@inheritDoc}
*/
@Override
public T_2486Record value1(java.math.BigDecimal value) {
setVal1(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public T_2486Record value2(java.math.BigDecimal value) {
setVal2(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public T_2486Record value3(java.math.BigDecimal value) {
setVal3(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public T_2486Record value4(java.math.BigDecimal value) {
setVal4(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public T_2486Record value5(java.math.BigDecimal value) {
setVal5(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public T_2486Record value6(java.math.BigDecimal value) {
setVal6(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public T_2486Record value7(java.math.BigInteger value) {
setVal7(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public T_2486Record value8(java.math.BigInteger value) {
setVal8(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public T_2486Record values(java.math.BigDecimal value1, java.math.BigDecimal value2, java.math.BigDecimal value3, java.math.BigDecimal value4, java.math.BigDecimal value5, java.math.BigDecimal value6, java.math.BigInteger value7, java.math.BigInteger value8) {
return this;
}
// -------------------------------------------------------------------------
// FROM and INTO
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public void from(org.jooq.test.h2.generatedclasses.tables.interfaces.IT_2486 from) {
setVal1(from.getVal1());
setVal2(from.getVal2());
setVal3(from.getVal3());
setVal4(from.getVal4());
setVal5(from.getVal5());
setVal6(from.getVal6());
setVal7(from.getVal7());
setVal8(from.getVal8());
}
/**
* {@inheritDoc}
*/
@Override
public <E extends org.jooq.test.h2.generatedclasses.tables.interfaces.IT_2486> E into(E into) {
into.from(this);
return into;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached T_2486Record
*/
public T_2486Record() {
super(org.jooq.test.h2.generatedclasses.tables.T_2486.T_2486);
}
/**
* Create a detached, initialised T_2486Record
*/
public T_2486Record(java.math.BigDecimal val1, java.math.BigDecimal val2, java.math.BigDecimal val3, java.math.BigDecimal val4, java.math.BigDecimal val5, java.math.BigDecimal val6, java.math.BigInteger val7, java.math.BigInteger val8) {
super(org.jooq.test.h2.generatedclasses.tables.T_2486.T_2486);
setValue(0, val1);
setValue(1, val2);
setValue(2, val3);
setValue(3, val4);
setValue(4, val5);
setValue(5, val6);
setValue(6, val7);
setValue(7, val8);
}
}