/jOOQ-meta/src/main/java/org/jooq/meta/h2/information_schema/tables/TypeInfo.java

http://github.com/jOOQ/jOOQ · Java · 175 lines · 74 code · 32 blank · 69 comment · 0 complexity · 2c456d2a707b207e3685f1108ad5548d MD5 · raw file

  1. /*
  2. * This file is generated by jOOQ.
  3. */
  4. package org.jooq.meta.h2.information_schema.tables;
  5. import org.jooq.Field;
  6. import org.jooq.ForeignKey;
  7. import org.jooq.Name;
  8. import org.jooq.Record;
  9. import org.jooq.Schema;
  10. import org.jooq.Table;
  11. import org.jooq.TableField;
  12. import org.jooq.TableOptions;
  13. import org.jooq.impl.DSL;
  14. import org.jooq.impl.SQLDataType;
  15. import org.jooq.impl.TableImpl;
  16. import org.jooq.meta.h2.information_schema.InformationSchema;
  17. /**
  18. * This class is generated by jOOQ.
  19. */
  20. @SuppressWarnings({ "all", "unchecked", "rawtypes" })
  21. public class TypeInfo extends TableImpl<Record> {
  22. private static final long serialVersionUID = 1262659550;
  23. /**
  24. * The reference instance of <code>INFORMATION_SCHEMA.TYPE_INFO</code>
  25. */
  26. public static final TypeInfo TYPE_INFO = new TypeInfo();
  27. /**
  28. * The class holding records for this type
  29. */
  30. @Override
  31. public Class<Record> getRecordType() {
  32. return Record.class;
  33. }
  34. /**
  35. * The column <code>INFORMATION_SCHEMA.TYPE_INFO.TYPE_NAME</code>.
  36. */
  37. public final TableField<Record, String> TYPE_NAME = createField(DSL.name("TYPE_NAME"), SQLDataType.VARCHAR(2147483647), this, "");
  38. /**
  39. * The column <code>INFORMATION_SCHEMA.TYPE_INFO.DATA_TYPE</code>.
  40. */
  41. public final TableField<Record, Integer> DATA_TYPE = createField(DSL.name("DATA_TYPE"), SQLDataType.INTEGER, this, "");
  42. /**
  43. * The column <code>INFORMATION_SCHEMA.TYPE_INFO.PRECISION</code>.
  44. */
  45. public final TableField<Record, Integer> PRECISION = createField(DSL.name("PRECISION"), SQLDataType.INTEGER, this, "");
  46. /**
  47. * The column <code>INFORMATION_SCHEMA.TYPE_INFO.PREFIX</code>.
  48. */
  49. public final TableField<Record, String> PREFIX = createField(DSL.name("PREFIX"), SQLDataType.VARCHAR(2147483647), this, "");
  50. /**
  51. * The column <code>INFORMATION_SCHEMA.TYPE_INFO.SUFFIX</code>.
  52. */
  53. public final TableField<Record, String> SUFFIX = createField(DSL.name("SUFFIX"), SQLDataType.VARCHAR(2147483647), this, "");
  54. /**
  55. * The column <code>INFORMATION_SCHEMA.TYPE_INFO.PARAMS</code>.
  56. */
  57. public final TableField<Record, String> PARAMS = createField(DSL.name("PARAMS"), SQLDataType.VARCHAR(2147483647), this, "");
  58. /**
  59. * The column <code>INFORMATION_SCHEMA.TYPE_INFO.AUTO_INCREMENT</code>.
  60. */
  61. public final TableField<Record, Boolean> AUTO_INCREMENT = createField(DSL.name("AUTO_INCREMENT"), SQLDataType.BOOLEAN, this, "");
  62. /**
  63. * The column <code>INFORMATION_SCHEMA.TYPE_INFO.MINIMUM_SCALE</code>.
  64. */
  65. public final TableField<Record, Short> MINIMUM_SCALE = createField(DSL.name("MINIMUM_SCALE"), SQLDataType.SMALLINT, this, "");
  66. /**
  67. * The column <code>INFORMATION_SCHEMA.TYPE_INFO.MAXIMUM_SCALE</code>.
  68. */
  69. public final TableField<Record, Short> MAXIMUM_SCALE = createField(DSL.name("MAXIMUM_SCALE"), SQLDataType.SMALLINT, this, "");
  70. /**
  71. * The column <code>INFORMATION_SCHEMA.TYPE_INFO.RADIX</code>.
  72. */
  73. public final TableField<Record, Integer> RADIX = createField(DSL.name("RADIX"), SQLDataType.INTEGER, this, "");
  74. /**
  75. * The column <code>INFORMATION_SCHEMA.TYPE_INFO.POS</code>.
  76. */
  77. public final TableField<Record, Integer> POS = createField(DSL.name("POS"), SQLDataType.INTEGER, this, "");
  78. /**
  79. * The column <code>INFORMATION_SCHEMA.TYPE_INFO.CASE_SENSITIVE</code>.
  80. */
  81. public final TableField<Record, Boolean> CASE_SENSITIVE = createField(DSL.name("CASE_SENSITIVE"), SQLDataType.BOOLEAN, this, "");
  82. /**
  83. * The column <code>INFORMATION_SCHEMA.TYPE_INFO.NULLABLE</code>.
  84. */
  85. public final TableField<Record, Short> NULLABLE = createField(DSL.name("NULLABLE"), SQLDataType.SMALLINT, this, "");
  86. /**
  87. * The column <code>INFORMATION_SCHEMA.TYPE_INFO.SEARCHABLE</code>.
  88. */
  89. public final TableField<Record, Short> SEARCHABLE = createField(DSL.name("SEARCHABLE"), SQLDataType.SMALLINT, this, "");
  90. private TypeInfo(Name alias, Table<Record> aliased) {
  91. this(alias, aliased, null);
  92. }
  93. private TypeInfo(Name alias, Table<Record> aliased, Field<?>[] parameters) {
  94. super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
  95. }
  96. /**
  97. * Create an aliased <code>INFORMATION_SCHEMA.TYPE_INFO</code> table reference
  98. */
  99. public TypeInfo(String alias) {
  100. this(DSL.name(alias), TYPE_INFO);
  101. }
  102. /**
  103. * Create an aliased <code>INFORMATION_SCHEMA.TYPE_INFO</code> table reference
  104. */
  105. public TypeInfo(Name alias) {
  106. this(alias, TYPE_INFO);
  107. }
  108. /**
  109. * Create a <code>INFORMATION_SCHEMA.TYPE_INFO</code> table reference
  110. */
  111. public TypeInfo() {
  112. this(DSL.name("TYPE_INFO"), null);
  113. }
  114. public <O extends Record> TypeInfo(Table<O> child, ForeignKey<O, Record> key) {
  115. super(child, key, TYPE_INFO);
  116. }
  117. @Override
  118. public Schema getSchema() {
  119. return InformationSchema.INFORMATION_SCHEMA;
  120. }
  121. @Override
  122. public TypeInfo as(String alias) {
  123. return new TypeInfo(DSL.name(alias), this);
  124. }
  125. @Override
  126. public TypeInfo as(Name alias) {
  127. return new TypeInfo(alias, this);
  128. }
  129. /**
  130. * Rename this table
  131. */
  132. @Override
  133. public TypeInfo rename(String name) {
  134. return new TypeInfo(DSL.name(name), null);
  135. }
  136. /**
  137. * Rename this table
  138. */
  139. @Override
  140. public TypeInfo rename(Name name) {
  141. return new TypeInfo(name, null);
  142. }
  143. }