Modelcard.java 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. /*
  2. * This file is generated by jOOQ.
  3. */
  4. package jooq.tables;
  5. import java.math.BigDecimal;
  6. import java.util.Arrays;
  7. import java.util.List;
  8. import javax.annotation.Generated;
  9. import jooq.Indexes;
  10. import jooq.Keys;
  11. import jooq.Thmodel;
  12. import jooq.tables.records.ModelcardRecord;
  13. import org.jooq.Field;
  14. import org.jooq.ForeignKey;
  15. import org.jooq.Identity;
  16. import org.jooq.Index;
  17. import org.jooq.Name;
  18. import org.jooq.Record;
  19. import org.jooq.Schema;
  20. import org.jooq.Table;
  21. import org.jooq.TableField;
  22. import org.jooq.UniqueKey;
  23. import org.jooq.impl.DSL;
  24. import org.jooq.impl.TableImpl;
  25. /**
  26. * This class is generated by jOOQ.
  27. */
  28. @Generated(
  29. value = {
  30. "http://www.jooq.org",
  31. "jOOQ version:3.11.5"
  32. },
  33. comments = "This class is generated by jOOQ"
  34. )
  35. @SuppressWarnings({ "all", "unchecked", "rawtypes" })
  36. public class Modelcard extends TableImpl<ModelcardRecord> {
  37. private static final long serialVersionUID = -1004618023;
  38. /**
  39. * The reference instance of <code>thmodel.modelcard</code>
  40. */
  41. public static final Modelcard MODELCARD = new Modelcard();
  42. /**
  43. * The class holding records for this type
  44. */
  45. @Override
  46. public Class<ModelcardRecord> getRecordType() {
  47. return ModelcardRecord.class;
  48. }
  49. /**
  50. * The column <code>thmodel.modelcard.PK</code>.
  51. */
  52. public final TableField<ModelcardRecord, Integer> PK = createField("PK", org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true), this, "");
  53. /**
  54. * The column <code>thmodel.modelcard.CardName</code>.
  55. */
  56. public final TableField<ModelcardRecord, String> CARDNAME = createField("CardName", org.jooq.impl.SQLDataType.VARCHAR(50), this, "");
  57. /**
  58. * The column <code>thmodel.modelcard.Sample</code>.
  59. */
  60. public final TableField<ModelcardRecord, String> SAMPLE = createField("Sample", org.jooq.impl.SQLDataType.VARCHAR(200), this, "");
  61. /**
  62. * The column <code>thmodel.modelcard.URL</code>.
  63. */
  64. public final TableField<ModelcardRecord, String> URL = createField("URL", org.jooq.impl.SQLDataType.VARCHAR(200), this, "");
  65. /**
  66. * The column <code>thmodel.modelcard.Price</code>.
  67. */
  68. public final TableField<ModelcardRecord, BigDecimal> PRICE = createField("Price", org.jooq.impl.SQLDataType.DECIMAL(18, 4), this, "");
  69. /**
  70. * The column <code>thmodel.modelcard.Fee</code>.
  71. */
  72. public final TableField<ModelcardRecord, BigDecimal> FEE = createField("Fee", org.jooq.impl.SQLDataType.DECIMAL(18, 4), this, "");
  73. /**
  74. * Create a <code>thmodel.modelcard</code> table reference
  75. */
  76. public Modelcard() {
  77. this(DSL.name("modelcard"), null);
  78. }
  79. /**
  80. * Create an aliased <code>thmodel.modelcard</code> table reference
  81. */
  82. public Modelcard(String alias) {
  83. this(DSL.name(alias), MODELCARD);
  84. }
  85. /**
  86. * Create an aliased <code>thmodel.modelcard</code> table reference
  87. */
  88. public Modelcard(Name alias) {
  89. this(alias, MODELCARD);
  90. }
  91. private Modelcard(Name alias, Table<ModelcardRecord> aliased) {
  92. this(alias, aliased, null);
  93. }
  94. private Modelcard(Name alias, Table<ModelcardRecord> aliased, Field<?>[] parameters) {
  95. super(alias, null, aliased, parameters, DSL.comment(""));
  96. }
  97. public <O extends Record> Modelcard(Table<O> child, ForeignKey<O, ModelcardRecord> key) {
  98. super(child, key, MODELCARD);
  99. }
  100. /**
  101. * {@inheritDoc}
  102. */
  103. @Override
  104. public Schema getSchema() {
  105. return Thmodel.THMODEL;
  106. }
  107. /**
  108. * {@inheritDoc}
  109. */
  110. @Override
  111. public List<Index> getIndexes() {
  112. return Arrays.<Index>asList(Indexes.MODELCARD_PRIMARY);
  113. }
  114. /**
  115. * {@inheritDoc}
  116. */
  117. @Override
  118. public Identity<ModelcardRecord, Integer> getIdentity() {
  119. return Keys.IDENTITY_MODELCARD;
  120. }
  121. /**
  122. * {@inheritDoc}
  123. */
  124. @Override
  125. public UniqueKey<ModelcardRecord> getPrimaryKey() {
  126. return Keys.KEY_MODELCARD_PRIMARY;
  127. }
  128. /**
  129. * {@inheritDoc}
  130. */
  131. @Override
  132. public List<UniqueKey<ModelcardRecord>> getKeys() {
  133. return Arrays.<UniqueKey<ModelcardRecord>>asList(Keys.KEY_MODELCARD_PRIMARY);
  134. }
  135. /**
  136. * {@inheritDoc}
  137. */
  138. @Override
  139. public Modelcard as(String alias) {
  140. return new Modelcard(DSL.name(alias), this);
  141. }
  142. /**
  143. * {@inheritDoc}
  144. */
  145. @Override
  146. public Modelcard as(Name alias) {
  147. return new Modelcard(alias, this);
  148. }
  149. /**
  150. * Rename this table
  151. */
  152. @Override
  153. public Modelcard rename(String name) {
  154. return new Modelcard(DSL.name(name), null);
  155. }
  156. /**
  157. * Rename this table
  158. */
  159. @Override
  160. public Modelcard rename(Name name) {
  161. return new Modelcard(name, null);
  162. }
  163. }