[#3597] Generate table and column comments also for PostgreSQL
This commit is contained in:
parent
4a5105d405
commit
bc2be8b61d
@ -61,6 +61,7 @@ import static org.jooq.util.postgres.information_schema.Tables.SEQUENCES;
|
||||
import static org.jooq.util.postgres.information_schema.Tables.TABLES;
|
||||
import static org.jooq.util.postgres.information_schema.Tables.TABLE_CONSTRAINTS;
|
||||
import static org.jooq.util.postgres.pg_catalog.Tables.PG_CLASS;
|
||||
import static org.jooq.util.postgres.pg_catalog.Tables.PG_DESCRIPTION;
|
||||
import static org.jooq.util.postgres.pg_catalog.Tables.PG_ENUM;
|
||||
import static org.jooq.util.postgres.pg_catalog.Tables.PG_INHERITS;
|
||||
import static org.jooq.util.postgres.pg_catalog.Tables.PG_NAMESPACE;
|
||||
@ -253,8 +254,17 @@ public class PostgresDatabase extends AbstractDatabase {
|
||||
TABLES.TABLE_SCHEMA,
|
||||
TABLES.TABLE_NAME,
|
||||
TABLES.TABLE_NAME.as("specific_name"),
|
||||
inline(false).as("table_valued_function"))
|
||||
inline(false).as("table_valued_function"),
|
||||
PG_DESCRIPTION.DESCRIPTION)
|
||||
.from(TABLES)
|
||||
.join(PG_NAMESPACE)
|
||||
.on(TABLES.TABLE_SCHEMA.eq(PG_NAMESPACE.NSPNAME))
|
||||
.join(PG_CLASS)
|
||||
.on(PG_CLASS.RELNAME.eq(TABLES.TABLE_NAME))
|
||||
.and(PG_CLASS.RELNAMESPACE.eq(oid(PG_NAMESPACE)))
|
||||
.leftOuterJoin(PG_DESCRIPTION)
|
||||
.on(PG_DESCRIPTION.OBJOID.eq(oid(PG_CLASS)))
|
||||
.and(PG_DESCRIPTION.OBJSUBID.eq(0))
|
||||
.where(TABLES.TABLE_SCHEMA.in(getInputSchemata()))
|
||||
|
||||
// [#3375] Include table-valued functions in the set of tables
|
||||
@ -263,7 +273,8 @@ public class PostgresDatabase extends AbstractDatabase {
|
||||
ROUTINES.ROUTINE_SCHEMA,
|
||||
ROUTINES.ROUTINE_NAME,
|
||||
ROUTINES.SPECIFIC_NAME,
|
||||
inline(true).as("table_valued_function"))
|
||||
inline(true).as("table_valued_function"),
|
||||
inline(""))
|
||||
.from(ROUTINES)
|
||||
.join(PG_NAMESPACE).on(ROUTINES.SPECIFIC_SCHEMA.eq(PG_NAMESPACE.NSPNAME))
|
||||
.join(PG_PROC).on(PG_PROC.PRONAMESPACE.eq(oid(PG_NAMESPACE)))
|
||||
@ -277,7 +288,7 @@ public class PostgresDatabase extends AbstractDatabase {
|
||||
SchemaDefinition schema = getSchema(record.getValue(TABLES.TABLE_SCHEMA));
|
||||
String name = record.getValue(TABLES.TABLE_NAME);
|
||||
boolean tableValuedFunction = record.getValue("table_valued_function", boolean.class);
|
||||
String comment = "";
|
||||
String comment = record.getValue(PG_DESCRIPTION.DESCRIPTION, String.class);
|
||||
|
||||
if (tableValuedFunction) {
|
||||
result.add(new PostgresTableValuedFunction(schema, name, record.getValue(ROUTINES.SPECIFIC_NAME), comment));
|
||||
|
||||
@ -42,7 +42,11 @@
|
||||
package org.jooq.util.postgres;
|
||||
|
||||
import static org.jooq.tools.StringUtils.defaultString;
|
||||
import static org.jooq.util.postgres.PostgresDSL.oid;
|
||||
import static org.jooq.util.postgres.information_schema.Tables.COLUMNS;
|
||||
import static org.jooq.util.postgres.pg_catalog.Tables.PG_CLASS;
|
||||
import static org.jooq.util.postgres.pg_catalog.Tables.PG_DESCRIPTION;
|
||||
import static org.jooq.util.postgres.pg_catalog.Tables.PG_NAMESPACE;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
@ -78,8 +82,17 @@ public class PostgresTableDefinition extends AbstractTableDefinition {
|
||||
COLUMNS.NUMERIC_SCALE,
|
||||
COLUMNS.IS_NULLABLE,
|
||||
COLUMNS.COLUMN_DEFAULT,
|
||||
COLUMNS.UDT_NAME)
|
||||
COLUMNS.UDT_NAME,
|
||||
PG_DESCRIPTION.DESCRIPTION)
|
||||
.from(COLUMNS)
|
||||
.join(PG_NAMESPACE)
|
||||
.on(COLUMNS.TABLE_SCHEMA.eq(PG_NAMESPACE.NSPNAME))
|
||||
.join(PG_CLASS)
|
||||
.on(PG_CLASS.RELNAME.eq(COLUMNS.TABLE_NAME))
|
||||
.and(PG_CLASS.RELNAMESPACE.eq(oid(PG_NAMESPACE)))
|
||||
.leftOuterJoin(PG_DESCRIPTION)
|
||||
.on(PG_DESCRIPTION.OBJOID.eq(oid(PG_CLASS)))
|
||||
.and(PG_DESCRIPTION.OBJSUBID.eq(COLUMNS.ORDINAL_POSITION))
|
||||
.where(COLUMNS.TABLE_SCHEMA.equal(getSchema().getName()))
|
||||
.and(COLUMNS.TABLE_NAME.equal(getName()))
|
||||
.orderBy(COLUMNS.ORDINAL_POSITION)
|
||||
@ -103,7 +116,7 @@ public class PostgresTableDefinition extends AbstractTableDefinition {
|
||||
record.getValue(COLUMNS.ORDINAL_POSITION, int.class),
|
||||
type,
|
||||
defaultString(record.getValue(COLUMNS.COLUMN_DEFAULT)).startsWith("nextval"),
|
||||
null
|
||||
record.getValue(PG_DESCRIPTION.DESCRIPTION)
|
||||
);
|
||||
|
||||
result.add(column);
|
||||
|
||||
@ -6,12 +6,12 @@ package org.jooq.util.postgres.pg_catalog;
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.0" },
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "jOOQ version:3.5.0" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class PgCatalog extends org.jooq.impl.SchemaImpl {
|
||||
|
||||
private static final long serialVersionUID = 1879929305;
|
||||
private static final long serialVersionUID = -547042235;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>pg_catalog</code>
|
||||
@ -36,6 +36,8 @@ public class PgCatalog extends org.jooq.impl.SchemaImpl {
|
||||
return java.util.Arrays.<org.jooq.Table<?>>asList(
|
||||
org.jooq.util.postgres.pg_catalog.tables.PgAttribute.PG_ATTRIBUTE,
|
||||
org.jooq.util.postgres.pg_catalog.tables.PgClass.PG_CLASS,
|
||||
org.jooq.util.postgres.pg_catalog.tables.PgCursor.PG_CURSOR,
|
||||
org.jooq.util.postgres.pg_catalog.tables.PgDescription.PG_DESCRIPTION,
|
||||
org.jooq.util.postgres.pg_catalog.tables.PgEnum.PG_ENUM,
|
||||
org.jooq.util.postgres.pg_catalog.tables.PgInherits.PG_INHERITS,
|
||||
org.jooq.util.postgres.pg_catalog.tables.PgNamespace.PG_NAMESPACE,
|
||||
|
||||
@ -8,59 +8,38 @@ package org.jooq.util.postgres.pg_catalog;
|
||||
*
|
||||
* Convenience access to all stored procedures and functions in pg_catalog
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.0" },
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "jOOQ version:3.5.0" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Routines {
|
||||
|
||||
/**
|
||||
* Call <code>pg_catalog.count</code>
|
||||
* Get <code>pg_catalog.count</code> as a field
|
||||
*/
|
||||
public static java.lang.Long count1(org.jooq.Configuration configuration, java.lang.Object __1) {
|
||||
public static org.jooq.AggregateFunction<java.lang.Long> count1(java.lang.Object __1) {
|
||||
org.jooq.util.postgres.pg_catalog.routines.Count1 f = new org.jooq.util.postgres.pg_catalog.routines.Count1();
|
||||
f.set__1(__1);
|
||||
|
||||
f.execute(configuration);
|
||||
return f.getReturnValue();
|
||||
return f.asAggregateFunction();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get <code>pg_catalog.count</code> as a field
|
||||
*/
|
||||
public static org.jooq.Field<java.lang.Long> count1(java.lang.Object __1) {
|
||||
public static org.jooq.AggregateFunction<java.lang.Long> count1(org.jooq.Field<java.lang.Object> __1) {
|
||||
org.jooq.util.postgres.pg_catalog.routines.Count1 f = new org.jooq.util.postgres.pg_catalog.routines.Count1();
|
||||
f.set__1(__1);
|
||||
|
||||
return f.asField();
|
||||
return f.asAggregateFunction();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get <code>pg_catalog.count</code> as a field
|
||||
*/
|
||||
public static org.jooq.Field<java.lang.Long> count1(org.jooq.Field<java.lang.Object> __1) {
|
||||
org.jooq.util.postgres.pg_catalog.routines.Count1 f = new org.jooq.util.postgres.pg_catalog.routines.Count1();
|
||||
f.set__1(__1);
|
||||
|
||||
return f.asField();
|
||||
}
|
||||
|
||||
/**
|
||||
* Call <code>pg_catalog.count</code>
|
||||
*/
|
||||
public static java.lang.Long count2(org.jooq.Configuration configuration) {
|
||||
public static org.jooq.AggregateFunction<java.lang.Long> count2() {
|
||||
org.jooq.util.postgres.pg_catalog.routines.Count2 f = new org.jooq.util.postgres.pg_catalog.routines.Count2();
|
||||
|
||||
f.execute(configuration);
|
||||
return f.getReturnValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get <code>pg_catalog.count</code> as a field
|
||||
*/
|
||||
public static org.jooq.Field<java.lang.Long> count2() {
|
||||
org.jooq.util.postgres.pg_catalog.routines.Count2 f = new org.jooq.util.postgres.pg_catalog.routines.Count2();
|
||||
|
||||
return f.asField();
|
||||
return f.asAggregateFunction();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -98,12 +77,9 @@ public class Routines {
|
||||
}
|
||||
|
||||
/**
|
||||
* Call <code>pg_catalog.pg_cursor</code>
|
||||
* Get <code>pg_catalog.pg_cursor</code> as a field
|
||||
*/
|
||||
public static org.jooq.util.postgres.pg_catalog.routines.PgCursor pgCursor(org.jooq.Configuration configuration) {
|
||||
org.jooq.util.postgres.pg_catalog.routines.PgCursor p = new org.jooq.util.postgres.pg_catalog.routines.PgCursor();
|
||||
|
||||
p.execute(configuration);
|
||||
return p;
|
||||
public static org.jooq.util.postgres.pg_catalog.tables.PgCursor pgCursor() {
|
||||
return org.jooq.util.postgres.pg_catalog.tables.PgCursor.PG_CURSOR.call();
|
||||
}
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ package org.jooq.util.postgres.pg_catalog;
|
||||
*
|
||||
* Convenience access to all tables in pg_catalog
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.0" },
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "jOOQ version:3.5.0" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Tables {
|
||||
@ -23,6 +23,16 @@ public class Tables {
|
||||
*/
|
||||
public static final org.jooq.util.postgres.pg_catalog.tables.PgClass PG_CLASS = org.jooq.util.postgres.pg_catalog.tables.PgClass.PG_CLASS;
|
||||
|
||||
/**
|
||||
* The table pg_catalog.pg_cursor
|
||||
*/
|
||||
public static final org.jooq.util.postgres.pg_catalog.tables.PgCursor PG_CURSOR = org.jooq.util.postgres.pg_catalog.tables.PgCursor.PG_CURSOR;
|
||||
|
||||
/**
|
||||
* The table pg_catalog.pg_description
|
||||
*/
|
||||
public static final org.jooq.util.postgres.pg_catalog.tables.PgDescription PG_DESCRIPTION = org.jooq.util.postgres.pg_catalog.tables.PgDescription.PG_DESCRIPTION;
|
||||
|
||||
/**
|
||||
* The table pg_catalog.pg_enum
|
||||
*/
|
||||
|
||||
@ -6,12 +6,12 @@ package org.jooq.util.postgres.pg_catalog.routines;
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.0" },
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "jOOQ version:3.5.0" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Count1 extends org.jooq.impl.AbstractRoutine<java.lang.Long> {
|
||||
|
||||
private static final long serialVersionUID = 1836057659;
|
||||
private static final long serialVersionUID = 208079261;
|
||||
|
||||
/**
|
||||
* The parameter <code>pg_catalog.count.RETURN_VALUE</code>.
|
||||
|
||||
@ -6,12 +6,12 @@ package org.jooq.util.postgres.pg_catalog.routines;
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.0" },
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "jOOQ version:3.5.0" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Count2 extends org.jooq.impl.AbstractRoutine<java.lang.Long> {
|
||||
|
||||
private static final long serialVersionUID = -547864034;
|
||||
private static final long serialVersionUID = -1317511552;
|
||||
|
||||
/**
|
||||
* The parameter <code>pg_catalog.count.RETURN_VALUE</code>.
|
||||
|
||||
@ -6,12 +6,12 @@ package org.jooq.util.postgres.pg_catalog.routines;
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.0" },
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "jOOQ version:3.5.0" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class FormatType extends org.jooq.impl.AbstractRoutine<java.lang.String> {
|
||||
|
||||
private static final long serialVersionUID = 1736331958;
|
||||
private static final long serialVersionUID = -763218796;
|
||||
|
||||
/**
|
||||
* The parameter <code>pg_catalog.format_type.RETURN_VALUE</code>.
|
||||
|
||||
@ -6,12 +6,12 @@ package org.jooq.util.postgres.pg_catalog.tables;
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.0" },
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "jOOQ version:3.5.0" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class PgAttribute extends org.jooq.impl.TableImpl<org.jooq.Record> {
|
||||
|
||||
private static final long serialVersionUID = 1552103127;
|
||||
private static final long serialVersionUID = 622630497;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>pg_catalog.pg_attribute</code>
|
||||
|
||||
@ -6,12 +6,12 @@ package org.jooq.util.postgres.pg_catalog.tables;
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.0" },
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "jOOQ version:3.5.0" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class PgClass extends org.jooq.impl.TableImpl<org.jooq.Record> {
|
||||
|
||||
private static final long serialVersionUID = -1433095935;
|
||||
private static final long serialVersionUID = -554390261;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>pg_catalog.pg_class</code>
|
||||
|
||||
@ -0,0 +1,102 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.util.postgres.pg_catalog.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "jOOQ version:3.5.0" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class PgCursor extends org.jooq.impl.TableImpl<org.jooq.Record> {
|
||||
|
||||
private static final long serialVersionUID = 1972650578;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>pg_catalog.pg_cursor</code>
|
||||
*/
|
||||
public static final org.jooq.util.postgres.pg_catalog.tables.PgCursor PG_CURSOR = new org.jooq.util.postgres.pg_catalog.tables.PgCursor();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<org.jooq.Record> getRecordType() {
|
||||
return org.jooq.Record.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>pg_catalog.pg_cursor.name</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> NAME = createField("name", org.jooq.impl.SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>pg_catalog.pg_cursor.statement</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> STATEMENT = createField("statement", org.jooq.impl.SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>pg_catalog.pg_cursor.is_holdable</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.Boolean> IS_HOLDABLE = createField("is_holdable", org.jooq.impl.SQLDataType.BOOLEAN, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>pg_catalog.pg_cursor.is_binary</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.Boolean> IS_BINARY = createField("is_binary", org.jooq.impl.SQLDataType.BOOLEAN, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>pg_catalog.pg_cursor.is_scrollable</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.Boolean> IS_SCROLLABLE = createField("is_scrollable", org.jooq.impl.SQLDataType.BOOLEAN, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>pg_catalog.pg_cursor.creation_time</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.sql.Timestamp> CREATION_TIME = createField("creation_time", org.jooq.impl.SQLDataType.TIMESTAMP, this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>pg_catalog.pg_cursor</code> table reference
|
||||
*/
|
||||
public PgCursor() {
|
||||
this("pg_cursor", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>pg_catalog.pg_cursor</code> table reference
|
||||
*/
|
||||
public PgCursor(java.lang.String alias) {
|
||||
this(alias, org.jooq.util.postgres.pg_catalog.tables.PgCursor.PG_CURSOR);
|
||||
}
|
||||
|
||||
private PgCursor(java.lang.String alias, org.jooq.Table<org.jooq.Record> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private PgCursor(java.lang.String alias, org.jooq.Table<org.jooq.Record> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, org.jooq.util.postgres.pg_catalog.PgCatalog.PG_CATALOG, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.util.postgres.pg_catalog.tables.PgCursor as(java.lang.String alias) {
|
||||
return new org.jooq.util.postgres.pg_catalog.tables.PgCursor(alias, this, parameters);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public org.jooq.util.postgres.pg_catalog.tables.PgCursor rename(java.lang.String name) {
|
||||
return new org.jooq.util.postgres.pg_catalog.tables.PgCursor(name, null, parameters);
|
||||
}
|
||||
|
||||
/**
|
||||
* Call this table-valued function
|
||||
*/
|
||||
public org.jooq.util.postgres.pg_catalog.tables.PgCursor call() {
|
||||
return new org.jooq.util.postgres.pg_catalog.tables.PgCursor(getName(), null, new org.jooq.Field[] { });
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,85 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.util.postgres.pg_catalog.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "jOOQ version:3.5.0" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class PgDescription extends org.jooq.impl.TableImpl<org.jooq.Record> {
|
||||
|
||||
private static final long serialVersionUID = -1078340299;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>pg_catalog.pg_description</code>
|
||||
*/
|
||||
public static final org.jooq.util.postgres.pg_catalog.tables.PgDescription PG_DESCRIPTION = new org.jooq.util.postgres.pg_catalog.tables.PgDescription();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<org.jooq.Record> getRecordType() {
|
||||
return org.jooq.Record.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>pg_catalog.pg_description.objoid</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.Long> OBJOID = createField("objoid", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>pg_catalog.pg_description.classoid</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.Long> CLASSOID = createField("classoid", org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>pg_catalog.pg_description.objsubid</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.Integer> OBJSUBID = createField("objsubid", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>pg_catalog.pg_description.description</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.Record, java.lang.String> DESCRIPTION = createField("description", org.jooq.impl.SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>pg_catalog.pg_description</code> table reference
|
||||
*/
|
||||
public PgDescription() {
|
||||
this("pg_description", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>pg_catalog.pg_description</code> table reference
|
||||
*/
|
||||
public PgDescription(java.lang.String alias) {
|
||||
this(alias, org.jooq.util.postgres.pg_catalog.tables.PgDescription.PG_DESCRIPTION);
|
||||
}
|
||||
|
||||
private PgDescription(java.lang.String alias, org.jooq.Table<org.jooq.Record> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private PgDescription(java.lang.String alias, org.jooq.Table<org.jooq.Record> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, org.jooq.util.postgres.pg_catalog.PgCatalog.PG_CATALOG, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.util.postgres.pg_catalog.tables.PgDescription as(java.lang.String alias) {
|
||||
return new org.jooq.util.postgres.pg_catalog.tables.PgDescription(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public org.jooq.util.postgres.pg_catalog.tables.PgDescription rename(java.lang.String name) {
|
||||
return new org.jooq.util.postgres.pg_catalog.tables.PgDescription(name, null);
|
||||
}
|
||||
}
|
||||
@ -6,12 +6,12 @@ package org.jooq.util.postgres.pg_catalog.tables;
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.0" },
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "jOOQ version:3.5.0" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class PgEnum extends org.jooq.impl.TableImpl<org.jooq.Record> {
|
||||
|
||||
private static final long serialVersionUID = 207772735;
|
||||
private static final long serialVersionUID = 1493557577;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>pg_catalog.pg_enum</code>
|
||||
|
||||
@ -6,12 +6,12 @@ package org.jooq.util.postgres.pg_catalog.tables;
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.0" },
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "jOOQ version:3.5.0" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class PgInherits extends org.jooq.impl.TableImpl<org.jooq.Record> {
|
||||
|
||||
private static final long serialVersionUID = 99292399;
|
||||
private static final long serialVersionUID = 2110502137;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>pg_catalog.pg_inherits</code>
|
||||
|
||||
@ -6,12 +6,12 @@ package org.jooq.util.postgres.pg_catalog.tables;
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.0" },
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "jOOQ version:3.5.0" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class PgNamespace extends org.jooq.impl.TableImpl<org.jooq.Record> {
|
||||
|
||||
private static final long serialVersionUID = -393640334;
|
||||
private static final long serialVersionUID = -238235012;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>pg_catalog.pg_namespace</code>
|
||||
|
||||
@ -6,12 +6,12 @@ package org.jooq.util.postgres.pg_catalog.tables;
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.0" },
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "jOOQ version:3.5.0" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class PgProc extends org.jooq.impl.TableImpl<org.jooq.Record> {
|
||||
|
||||
private static final long serialVersionUID = -610308514;
|
||||
private static final long serialVersionUID = -2023687916;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>pg_catalog.pg_proc</code>
|
||||
|
||||
@ -6,12 +6,12 @@ package org.jooq.util.postgres.pg_catalog.tables;
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.0" },
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "jOOQ version:3.5.0" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class PgType extends org.jooq.impl.TableImpl<org.jooq.Record> {
|
||||
|
||||
private static final long serialVersionUID = -526211898;
|
||||
private static final long serialVersionUID = 1535427324;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>pg_catalog.pg_type</code>
|
||||
|
||||
@ -3058,7 +3058,7 @@
|
||||
<name>org.jooq.util.DefaultGenerator</name>
|
||||
<database>
|
||||
<name>org.jooq.util.postgres.PostgresDatabase</name>
|
||||
<includes>pg_attribute|pg_class|pg_cursor|pg_enum|pg_inherits|pg_namespace|pg_proc|pg_type|format_type|count</includes>
|
||||
<includes>pg_attribute|pg_class|pg_cursor|pg_description|pg_enum|pg_inherits|pg_namespace|pg_proc|pg_type|format_type|count</includes>
|
||||
<excludes></excludes>
|
||||
<recordVersionFields></recordVersionFields>
|
||||
<recordTimestampFields></recordTimestampFields>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user