/** Master Information */
@javax.annotation.Generated(
    value = {"http://www.jooq.org", "jOOQ version:3.5.4"},
    comments = "This class is generated by jOOQ")
@java.lang.SuppressWarnings({"all", "unchecked", "rawtypes"})
public class SlaveMasterInfo
    extends org.jooq.impl.TableImpl<
        com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord> {

  private static final long serialVersionUID = -1917844042;

  /** The reference instance of <code>mysql.slave_master_info</code> */
  public static final com.davidm.mykindlenews.generated.jooq.mysql.tables.SlaveMasterInfo
      SLAVE_MASTER_INFO = new com.davidm.mykindlenews.generated.jooq.mysql.tables.SlaveMasterInfo();

  /** The class holding records for this type */
  @Override
  public java.lang.Class<
          com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord>
      getRecordType() {
    return com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord.class;
  }

  /**
   * The column <code>mysql.slave_master_info.Number_of_lines</code>. Number of lines in the file.
   */
  public final org.jooq.TableField<
          com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord,
          org.jooq.types.UInteger>
      NUMBER_OF_LINES =
          createField(
              "Number_of_lines",
              org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false),
              this,
              "Number of lines in the file.");

  /**
   * The column <code>mysql.slave_master_info.Master_log_name</code>. The name of the master binary
   * log currently being read from the master.
   */
  public final org.jooq.TableField<
          com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord,
          java.lang.String>
      MASTER_LOG_NAME =
          createField(
              "Master_log_name",
              org.jooq.impl.SQLDataType.CLOB.length(65535).nullable(false),
              this,
              "The name of the master binary log currently being read from the master.");

  /**
   * The column <code>mysql.slave_master_info.Master_log_pos</code>. The master log position of the
   * last read event.
   */
  public final org.jooq.TableField<
          com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord,
          org.jooq.types.ULong>
      MASTER_LOG_POS =
          createField(
              "Master_log_pos",
              org.jooq.impl.SQLDataType.BIGINTUNSIGNED.nullable(false),
              this,
              "The master log position of the last read event.");

  /** The column <code>mysql.slave_master_info.Host</code>. The host name of the master. */
  public final org.jooq.TableField<
          com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord,
          java.lang.String>
      HOST =
          createField(
              "Host",
              org.jooq.impl.SQLDataType.CHAR.length(255).nullable(false).defaulted(true),
              this,
              "The host name of the master.");

  /**
   * The column <code>mysql.slave_master_info.User_name</code>. The user name used to connect to the
   * master.
   */
  public final org.jooq.TableField<
          com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord,
          java.lang.String>
      USER_NAME =
          createField(
              "User_name",
              org.jooq.impl.SQLDataType.CLOB.length(65535),
              this,
              "The user name used to connect to the master.");

  /**
   * The column <code>mysql.slave_master_info.User_password</code>. The password used to connect to
   * the master.
   */
  public final org.jooq.TableField<
          com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord,
          java.lang.String>
      USER_PASSWORD =
          createField(
              "User_password",
              org.jooq.impl.SQLDataType.CLOB.length(65535),
              this,
              "The password used to connect to the master.");

  /**
   * The column <code>mysql.slave_master_info.Port</code>. The network port used to connect to the
   * master.
   */
  public final org.jooq.TableField<
          com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord,
          org.jooq.types.UInteger>
      PORT =
          createField(
              "Port",
              org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false),
              this,
              "The network port used to connect to the master.");

  /**
   * The column <code>mysql.slave_master_info.Connect_retry</code>. The period (in seconds) that the
   * slave will wait before trying to reconnect to the master.
   */
  public final org.jooq.TableField<
          com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord,
          org.jooq.types.UInteger>
      CONNECT_RETRY =
          createField(
              "Connect_retry",
              org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false),
              this,
              "The period (in seconds) that the slave will wait before trying to reconnect to the master.");

  /**
   * The column <code>mysql.slave_master_info.Enabled_ssl</code>. Indicates whether the server
   * supports SSL connections.
   */
  public final org.jooq.TableField<
          com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord,
          java.lang.Byte>
      ENABLED_SSL =
          createField(
              "Enabled_ssl",
              org.jooq.impl.SQLDataType.TINYINT.nullable(false),
              this,
              "Indicates whether the server supports SSL connections.");

  /**
   * The column <code>mysql.slave_master_info.Ssl_ca</code>. The file used for the Certificate
   * Authority (CA) certificate.
   */
  public final org.jooq.TableField<
          com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord,
          java.lang.String>
      SSL_CA =
          createField(
              "Ssl_ca",
              org.jooq.impl.SQLDataType.CLOB.length(65535),
              this,
              "The file used for the Certificate Authority (CA) certificate.");

  /**
   * The column <code>mysql.slave_master_info.Ssl_capath</code>. The path to the Certificate
   * Authority (CA) certificates.
   */
  public final org.jooq.TableField<
          com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord,
          java.lang.String>
      SSL_CAPATH =
          createField(
              "Ssl_capath",
              org.jooq.impl.SQLDataType.CLOB.length(65535),
              this,
              "The path to the Certificate Authority (CA) certificates.");

  /**
   * The column <code>mysql.slave_master_info.Ssl_cert</code>. The name of the SSL certificate file.
   */
  public final org.jooq.TableField<
          com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord,
          java.lang.String>
      SSL_CERT =
          createField(
              "Ssl_cert",
              org.jooq.impl.SQLDataType.CLOB.length(65535),
              this,
              "The name of the SSL certificate file.");

  /**
   * The column <code>mysql.slave_master_info.Ssl_cipher</code>. The name of the cipher in use for
   * the SSL connection.
   */
  public final org.jooq.TableField<
          com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord,
          java.lang.String>
      SSL_CIPHER =
          createField(
              "Ssl_cipher",
              org.jooq.impl.SQLDataType.CLOB.length(65535),
              this,
              "The name of the cipher in use for the SSL connection.");

  /** The column <code>mysql.slave_master_info.Ssl_key</code>. The name of the SSL key file. */
  public final org.jooq.TableField<
          com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord,
          java.lang.String>
      SSL_KEY =
          createField(
              "Ssl_key",
              org.jooq.impl.SQLDataType.CLOB.length(65535),
              this,
              "The name of the SSL key file.");

  /**
   * The column <code>mysql.slave_master_info.Ssl_verify_server_cert</code>. Whether to verify the
   * server certificate.
   */
  public final org.jooq.TableField<
          com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord,
          java.lang.Byte>
      SSL_VERIFY_SERVER_CERT =
          createField(
              "Ssl_verify_server_cert",
              org.jooq.impl.SQLDataType.TINYINT.nullable(false),
              this,
              "Whether to verify the server certificate.");

  /** The column <code>mysql.slave_master_info.Heartbeat</code>. */
  public final org.jooq.TableField<
          com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord,
          java.lang.Double>
      HEARTBEAT =
          createField("Heartbeat", org.jooq.impl.SQLDataType.FLOAT.nullable(false), this, "");

  /**
   * The column <code>mysql.slave_master_info.Bind</code>. Displays which interface is employed when
   * connecting to the MySQL server
   */
  public final org.jooq.TableField<
          com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord,
          java.lang.String>
      BIND =
          createField(
              "Bind",
              org.jooq.impl.SQLDataType.CLOB.length(65535),
              this,
              "Displays which interface is employed when connecting to the MySQL server");

  /**
   * The column <code>mysql.slave_master_info.Ignored_server_ids</code>. The number of server IDs to
   * be ignored, followed by the actual server IDs
   */
  public final org.jooq.TableField<
          com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord,
          java.lang.String>
      IGNORED_SERVER_IDS =
          createField(
              "Ignored_server_ids",
              org.jooq.impl.SQLDataType.CLOB.length(65535),
              this,
              "The number of server IDs to be ignored, followed by the actual server IDs");

  /** The column <code>mysql.slave_master_info.Uuid</code>. The master server uuid. */
  public final org.jooq.TableField<
          com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord,
          java.lang.String>
      UUID =
          createField(
              "Uuid",
              org.jooq.impl.SQLDataType.CLOB.length(65535),
              this,
              "The master server uuid.");

  /**
   * The column <code>mysql.slave_master_info.Retry_count</code>. Number of reconnect attempts, to
   * the master, before giving up.
   */
  public final org.jooq.TableField<
          com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord,
          org.jooq.types.ULong>
      RETRY_COUNT =
          createField(
              "Retry_count",
              org.jooq.impl.SQLDataType.BIGINTUNSIGNED.nullable(false),
              this,
              "Number of reconnect attempts, to the master, before giving up.");

  /**
   * The column <code>mysql.slave_master_info.Ssl_crl</code>. The file used for the Certificate
   * Revocation List (CRL)
   */
  public final org.jooq.TableField<
          com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord,
          java.lang.String>
      SSL_CRL =
          createField(
              "Ssl_crl",
              org.jooq.impl.SQLDataType.CLOB.length(65535),
              this,
              "The file used for the Certificate Revocation List (CRL)");

  /**
   * The column <code>mysql.slave_master_info.Ssl_crlpath</code>. The path used for Certificate
   * Revocation List (CRL) files
   */
  public final org.jooq.TableField<
          com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord,
          java.lang.String>
      SSL_CRLPATH =
          createField(
              "Ssl_crlpath",
              org.jooq.impl.SQLDataType.CLOB.length(65535),
              this,
              "The path used for Certificate Revocation List (CRL) files");

  /**
   * The column <code>mysql.slave_master_info.Enabled_auto_position</code>. Indicates whether GTIDs
   * will be used to retrieve events from the master.
   */
  public final org.jooq.TableField<
          com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord,
          java.lang.Byte>
      ENABLED_AUTO_POSITION =
          createField(
              "Enabled_auto_position",
              org.jooq.impl.SQLDataType.TINYINT.nullable(false),
              this,
              "Indicates whether GTIDs will be used to retrieve events from the master.");

  /** Create a <code>mysql.slave_master_info</code> table reference */
  public SlaveMasterInfo() {
    this("slave_master_info", null);
  }

  /** Create an aliased <code>mysql.slave_master_info</code> table reference */
  public SlaveMasterInfo(java.lang.String alias) {
    this(
        alias,
        com.davidm.mykindlenews.generated.jooq.mysql.tables.SlaveMasterInfo.SLAVE_MASTER_INFO);
  }

  private SlaveMasterInfo(
      java.lang.String alias,
      org.jooq.Table<
              com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord>
          aliased) {
    this(alias, aliased, null);
  }

  private SlaveMasterInfo(
      java.lang.String alias,
      org.jooq.Table<
              com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord>
          aliased,
      org.jooq.Field<?>[] parameters) {
    super(
        alias,
        com.davidm.mykindlenews.generated.jooq.mysql.Mysql.MYSQL,
        aliased,
        parameters,
        "Master Information");
  }

  /** {@inheritDoc} */
  @Override
  public org.jooq.UniqueKey<
          com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord>
      getPrimaryKey() {
    return com.davidm.mykindlenews.generated.jooq.mysql.Keys.KEY_SLAVE_MASTER_INFO_PRIMARY;
  }

  /** {@inheritDoc} */
  @Override
  public java.util.List<
          org.jooq.UniqueKey<
              com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord>>
      getKeys() {
    return java.util.Arrays
        .<org.jooq.UniqueKey<
                com.davidm.mykindlenews.generated.jooq.mysql.tables.records.SlaveMasterInfoRecord>>
            asList(com.davidm.mykindlenews.generated.jooq.mysql.Keys.KEY_SLAVE_MASTER_INFO_PRIMARY);
  }

  /** {@inheritDoc} */
  @Override
  public com.davidm.mykindlenews.generated.jooq.mysql.tables.SlaveMasterInfo as(
      java.lang.String alias) {
    return new com.davidm.mykindlenews.generated.jooq.mysql.tables.SlaveMasterInfo(alias, this);
  }

  /** Rename this table */
  public com.davidm.mykindlenews.generated.jooq.mysql.tables.SlaveMasterInfo rename(
      java.lang.String name) {
    return new com.davidm.mykindlenews.generated.jooq.mysql.tables.SlaveMasterInfo(name, null);
  }
}
示例#2
0
/** This class is generated by jOOQ. */
@Generated(
    value = {"http://www.jooq.org", "jOOQ version:3.7.3"},
    comments = "This class is generated by jOOQ")
@SuppressWarnings({"all", "unchecked", "rawtypes"})
public class TeachingMaterialHead extends TableImpl<TeachingMaterialHeadRecord> {

  private static final long serialVersionUID = -136738086;

  /** The reference instance of <code>cbis.teaching_material_head</code> */
  public static final TeachingMaterialHead TEACHING_MATERIAL_HEAD = new TeachingMaterialHead();

  /** The class holding records for this type */
  @Override
  public Class<TeachingMaterialHeadRecord> getRecordType() {
    return TeachingMaterialHeadRecord.class;
  }

  /** The column <code>cbis.teaching_material_head.id</code>. */
  public final TableField<TeachingMaterialHeadRecord, Integer> ID =
      createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");

  /** The column <code>cbis.teaching_material_head.title</code>. */
  public final TableField<TeachingMaterialHeadRecord, String> TITLE =
      createField("title", org.jooq.impl.SQLDataType.VARCHAR.length(50).nullable(false), this, "");

  /** The column <code>cbis.teaching_material_head.title_variable</code>. */
  public final TableField<TeachingMaterialHeadRecord, String> TITLE_VARIABLE =
      createField(
          "title_variable", org.jooq.impl.SQLDataType.VARCHAR.length(50).nullable(false), this, "");

  /** The column <code>cbis.teaching_material_head.teach_task_title_id</code>. */
  public final TableField<TeachingMaterialHeadRecord, Integer> TEACH_TASK_TITLE_ID =
      createField("teach_task_title_id", org.jooq.impl.SQLDataType.INTEGER, this, "");

  /** The column <code>cbis.teaching_material_head.teaching_material_template_id</code>. */
  public final TableField<TeachingMaterialHeadRecord, Integer> TEACHING_MATERIAL_TEMPLATE_ID =
      createField(
          "teaching_material_template_id",
          org.jooq.impl.SQLDataType.INTEGER.nullable(false),
          this,
          "");

  /** The column <code>cbis.teaching_material_head.is_assignment</code>. */
  public final TableField<TeachingMaterialHeadRecord, Byte> IS_ASSIGNMENT =
      createField("is_assignment", org.jooq.impl.SQLDataType.TINYINT.nullable(false), this, "");

  /** The column <code>cbis.teaching_material_head.sort</code>. */
  public final TableField<TeachingMaterialHeadRecord, Integer> SORT =
      createField("sort", org.jooq.impl.SQLDataType.INTEGER, this, "");

  /** Create a <code>cbis.teaching_material_head</code> table reference */
  public TeachingMaterialHead() {
    this("teaching_material_head", null);
  }

  /** Create an aliased <code>cbis.teaching_material_head</code> table reference */
  public TeachingMaterialHead(String alias) {
    this(alias, TEACHING_MATERIAL_HEAD);
  }

  private TeachingMaterialHead(String alias, Table<TeachingMaterialHeadRecord> aliased) {
    this(alias, aliased, null);
  }

  private TeachingMaterialHead(
      String alias, Table<TeachingMaterialHeadRecord> aliased, Field<?>[] parameters) {
    super(alias, Cbis.CBIS, aliased, parameters, "");
  }

  /** {@inheritDoc} */
  @Override
  public Identity<TeachingMaterialHeadRecord, Integer> getIdentity() {
    return Keys.IDENTITY_TEACHING_MATERIAL_HEAD;
  }

  /** {@inheritDoc} */
  @Override
  public UniqueKey<TeachingMaterialHeadRecord> getPrimaryKey() {
    return Keys.KEY_TEACHING_MATERIAL_HEAD_PRIMARY;
  }

  /** {@inheritDoc} */
  @Override
  public List<UniqueKey<TeachingMaterialHeadRecord>> getKeys() {
    return Arrays.<UniqueKey<TeachingMaterialHeadRecord>>asList(
        Keys.KEY_TEACHING_MATERIAL_HEAD_PRIMARY);
  }

  /** {@inheritDoc} */
  @Override
  public List<ForeignKey<TeachingMaterialHeadRecord, ?>> getReferences() {
    return Arrays.<ForeignKey<TeachingMaterialHeadRecord, ?>>asList(
        Keys.TEACHING_MATERIAL_HEAD_IBFK_1);
  }

  /** {@inheritDoc} */
  @Override
  public TeachingMaterialHead as(String alias) {
    return new TeachingMaterialHead(alias, this);
  }

  /** Rename this table */
  public TeachingMaterialHead rename(String name) {
    return new TeachingMaterialHead(name, null);
  }
}
/** 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 Coupons
    extends org.jooq.impl.TableImpl<
        org.killbill.billing.plugin.coupon.dao.gen.tables.records.CouponsRecord> {

  private static final long serialVersionUID = -2146926277;

  /** The reference instance of <code>killbill.coupons</code> */
  public static final org.killbill.billing.plugin.coupon.dao.gen.tables.Coupons COUPONS =
      new org.killbill.billing.plugin.coupon.dao.gen.tables.Coupons();

  /** The class holding records for this type */
  @Override
  public java.lang.Class<org.killbill.billing.plugin.coupon.dao.gen.tables.records.CouponsRecord>
      getRecordType() {
    return org.killbill.billing.plugin.coupon.dao.gen.tables.records.CouponsRecord.class;
  }

  /** The column <code>killbill.coupons.record_id</code>. */
  public final org.jooq.TableField<
          org.killbill.billing.plugin.coupon.dao.gen.tables.records.CouponsRecord,
          org.jooq.types.UInteger>
      RECORD_ID =
          createField(
              "record_id", org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, "");

  /** The column <code>killbill.coupons.coupon_code</code>. */
  public final org.jooq.TableField<
          org.killbill.billing.plugin.coupon.dao.gen.tables.records.CouponsRecord, java.lang.String>
      COUPON_CODE =
          createField(
              "coupon_code",
              org.jooq.impl.SQLDataType.VARCHAR.length(36).nullable(false),
              this,
              "");

  /** The column <code>killbill.coupons.coupon_name</code>. */
  public final org.jooq.TableField<
          org.killbill.billing.plugin.coupon.dao.gen.tables.records.CouponsRecord, java.lang.String>
      COUPON_NAME =
          createField(
              "coupon_name",
              org.jooq.impl.SQLDataType.VARCHAR.length(100).nullable(false),
              this,
              "");

  /** The column <code>killbill.coupons.discount_type</code>. */
  public final org.jooq.TableField<
          org.killbill.billing.plugin.coupon.dao.gen.tables.records.CouponsRecord, java.lang.String>
      DISCOUNT_TYPE =
          createField(
              "discount_type",
              org.jooq.impl.SQLDataType.VARCHAR.length(15).nullable(false),
              this,
              "");

  /** The column <code>killbill.coupons.percentage_discount</code>. */
  public final org.jooq.TableField<
          org.killbill.billing.plugin.coupon.dao.gen.tables.records.CouponsRecord, java.lang.Double>
      PERCENTAGE_DISCOUNT =
          createField(
              "percentage_discount", org.jooq.impl.SQLDataType.FLOAT.defaulted(true), this, "");

  /** The column <code>killbill.coupons.amount_discount</code>. */
  public final org.jooq.TableField<
          org.killbill.billing.plugin.coupon.dao.gen.tables.records.CouponsRecord, java.lang.Double>
      AMOUNT_DISCOUNT =
          createField("amount_discount", org.jooq.impl.SQLDataType.FLOAT.defaulted(true), this, "");

  /** The column <code>killbill.coupons.amount_currency</code>. */
  public final org.jooq.TableField<
          org.killbill.billing.plugin.coupon.dao.gen.tables.records.CouponsRecord, java.lang.String>
      AMOUNT_CURRENCY =
          createField("amount_currency", org.jooq.impl.SQLDataType.VARCHAR.length(3), this, "");

  /** The column <code>killbill.coupons.is_active</code>. */
  public final org.jooq.TableField<
          org.killbill.billing.plugin.coupon.dao.gen.tables.records.CouponsRecord, java.lang.Byte>
      IS_ACTIVE =
          createField(
              "is_active",
              org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true),
              this,
              "");

  /** The column <code>killbill.coupons.duration</code>. */
  public final org.jooq.TableField<
          org.killbill.billing.plugin.coupon.dao.gen.tables.records.CouponsRecord, java.lang.String>
      DURATION =
          createField(
              "duration", org.jooq.impl.SQLDataType.VARCHAR.length(15).nullable(false), this, "");

  /** The column <code>killbill.coupons.number_of_invoices</code>. */
  public final org.jooq.TableField<
          org.killbill.billing.plugin.coupon.dao.gen.tables.records.CouponsRecord,
          java.lang.Integer>
      NUMBER_OF_INVOICES =
          createField(
              "number_of_invoices", org.jooq.impl.SQLDataType.INTEGER.defaulted(true), this, "");

  /** The column <code>killbill.coupons.start_date</code>. */
  public final org.jooq.TableField<
          org.killbill.billing.plugin.coupon.dao.gen.tables.records.CouponsRecord, java.sql.Date>
      START_DATE =
          createField("start_date", org.jooq.impl.SQLDataType.DATE.nullable(false), this, "");

  /** The column <code>killbill.coupons.expiration_date</code>. */
  public final org.jooq.TableField<
          org.killbill.billing.plugin.coupon.dao.gen.tables.records.CouponsRecord, java.sql.Date>
      EXPIRATION_DATE = createField("expiration_date", org.jooq.impl.SQLDataType.DATE, this, "");

  /** The column <code>killbill.coupons.max_redemptions</code>. */
  public final org.jooq.TableField<
          org.killbill.billing.plugin.coupon.dao.gen.tables.records.CouponsRecord,
          java.lang.Integer>
      MAX_REDEMPTIONS =
          createField(
              "max_redemptions", org.jooq.impl.SQLDataType.INTEGER.defaulted(true), this, "");

  /** The column <code>killbill.coupons.kb_tenant_id</code>. */
  public final org.jooq.TableField<
          org.killbill.billing.plugin.coupon.dao.gen.tables.records.CouponsRecord, java.lang.String>
      KB_TENANT_ID =
          createField(
              "kb_tenant_id", org.jooq.impl.SQLDataType.CHAR.length(36).nullable(false), this, "");

  /** Create a <code>killbill.coupons</code> table reference */
  public Coupons() {
    this("coupons", null);
  }

  /** Create an aliased <code>killbill.coupons</code> table reference */
  public Coupons(java.lang.String alias) {
    this(alias, org.killbill.billing.plugin.coupon.dao.gen.tables.Coupons.COUPONS);
  }

  private Coupons(
      java.lang.String alias,
      org.jooq.Table<org.killbill.billing.plugin.coupon.dao.gen.tables.records.CouponsRecord>
          aliased) {
    this(alias, aliased, null);
  }

  private Coupons(
      java.lang.String alias,
      org.jooq.Table<org.killbill.billing.plugin.coupon.dao.gen.tables.records.CouponsRecord>
          aliased,
      org.jooq.Field<?>[] parameters) {
    super(
        alias,
        org.killbill.billing.plugin.coupon.dao.gen.Killbill.KILLBILL,
        aliased,
        parameters,
        "");
  }

  /** {@inheritDoc} */
  @Override
  public org.jooq.Identity<
          org.killbill.billing.plugin.coupon.dao.gen.tables.records.CouponsRecord,
          org.jooq.types.UInteger>
      getIdentity() {
    return org.killbill.billing.plugin.coupon.dao.gen.Keys.IDENTITY_COUPONS;
  }

  /** {@inheritDoc} */
  @Override
  public org.jooq.UniqueKey<org.killbill.billing.plugin.coupon.dao.gen.tables.records.CouponsRecord>
      getPrimaryKey() {
    return org.killbill.billing.plugin.coupon.dao.gen.Keys.KEY_COUPONS_PRIMARY;
  }

  /** {@inheritDoc} */
  @Override
  public java.util.List<
          org.jooq.UniqueKey<
              org.killbill.billing.plugin.coupon.dao.gen.tables.records.CouponsRecord>>
      getKeys() {
    return java.util.Arrays
        .<org.jooq.UniqueKey<
                org.killbill.billing.plugin.coupon.dao.gen.tables.records.CouponsRecord>>
            asList(
                org.killbill.billing.plugin.coupon.dao.gen.Keys.KEY_COUPONS_PRIMARY,
                org.killbill.billing.plugin.coupon.dao.gen.Keys.KEY_COUPONS_COUPONS_CODE);
  }

  /** {@inheritDoc} */
  @Override
  public org.killbill.billing.plugin.coupon.dao.gen.tables.Coupons as(java.lang.String alias) {
    return new org.killbill.billing.plugin.coupon.dao.gen.tables.Coupons(alias, this);
  }

  /** Rename this table */
  public org.killbill.billing.plugin.coupon.dao.gen.tables.Coupons rename(java.lang.String name) {
    return new org.killbill.billing.plugin.coupon.dao.gen.tables.Coupons(name, null);
  }
}
示例#4
0
/** This class is generated by jOOQ. */
@Generated(
    value = {"http://www.jooq.org", "jOOQ version:3.8.1"},
    comments = "This class is generated by jOOQ")
@SuppressWarnings({"all", "unchecked", "rawtypes"})
public class SchemaVersion extends TableImpl<SchemaVersionRecord> {

  private static final long serialVersionUID = -1827404851;

  /** The reference instance of <code>lifetime.schema_version</code> */
  public static final SchemaVersion SCHEMA_VERSION = new SchemaVersion();

  /** The class holding records for this type */
  @Override
  public Class<SchemaVersionRecord> getRecordType() {
    return SchemaVersionRecord.class;
  }

  /** The column <code>lifetime.schema_version.installed_rank</code>. */
  public final TableField<SchemaVersionRecord, Integer> INSTALLED_RANK =
      createField("installed_rank", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");

  /** The column <code>lifetime.schema_version.version</code>. */
  public final TableField<SchemaVersionRecord, String> VERSION =
      createField("version", org.jooq.impl.SQLDataType.VARCHAR.length(50), this, "");

  /** The column <code>lifetime.schema_version.description</code>. */
  public final TableField<SchemaVersionRecord, String> DESCRIPTION =
      createField(
          "description", org.jooq.impl.SQLDataType.VARCHAR.length(200).nullable(false), this, "");

  /** The column <code>lifetime.schema_version.type</code>. */
  public final TableField<SchemaVersionRecord, String> TYPE =
      createField("type", org.jooq.impl.SQLDataType.VARCHAR.length(20).nullable(false), this, "");

  /** The column <code>lifetime.schema_version.script</code>. */
  public final TableField<SchemaVersionRecord, String> SCRIPT =
      createField(
          "script", org.jooq.impl.SQLDataType.VARCHAR.length(1000).nullable(false), this, "");

  /** The column <code>lifetime.schema_version.checksum</code>. */
  public final TableField<SchemaVersionRecord, Integer> CHECKSUM =
      createField("checksum", org.jooq.impl.SQLDataType.INTEGER, this, "");

  /** The column <code>lifetime.schema_version.installed_by</code>. */
  public final TableField<SchemaVersionRecord, String> INSTALLED_BY =
      createField(
          "installed_by", org.jooq.impl.SQLDataType.VARCHAR.length(100).nullable(false), this, "");

  /** The column <code>lifetime.schema_version.installed_on</code>. */
  public final TableField<SchemaVersionRecord, Timestamp> INSTALLED_ON =
      createField(
          "installed_on",
          org.jooq.impl.SQLDataType.TIMESTAMP
              .nullable(false)
              .defaultValue(
                  org.jooq.impl.DSL.field(
                      "CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)),
          this,
          "");

  /** The column <code>lifetime.schema_version.execution_time</code>. */
  public final TableField<SchemaVersionRecord, Integer> EXECUTION_TIME =
      createField("execution_time", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");

  /** The column <code>lifetime.schema_version.success</code>. */
  public final TableField<SchemaVersionRecord, Byte> SUCCESS =
      createField("success", org.jooq.impl.SQLDataType.TINYINT.nullable(false), this, "");

  /** Create a <code>lifetime.schema_version</code> table reference */
  public SchemaVersion() {
    this("schema_version", null);
  }

  /** Create an aliased <code>lifetime.schema_version</code> table reference */
  public SchemaVersion(String alias) {
    this(alias, SCHEMA_VERSION);
  }

  private SchemaVersion(String alias, Table<SchemaVersionRecord> aliased) {
    this(alias, aliased, null);
  }

  private SchemaVersion(String alias, Table<SchemaVersionRecord> aliased, Field<?>[] parameters) {
    super(alias, null, aliased, parameters, "");
  }

  /** {@inheritDoc} */
  @Override
  public Schema getSchema() {
    return Lifetime.LIFETIME;
  }

  /** {@inheritDoc} */
  @Override
  public UniqueKey<SchemaVersionRecord> getPrimaryKey() {
    return Keys.KEY_SCHEMA_VERSION_PRIMARY;
  }

  /** {@inheritDoc} */
  @Override
  public List<UniqueKey<SchemaVersionRecord>> getKeys() {
    return Arrays.<UniqueKey<SchemaVersionRecord>>asList(Keys.KEY_SCHEMA_VERSION_PRIMARY);
  }

  /** {@inheritDoc} */
  @Override
  public SchemaVersion as(String alias) {
    return new SchemaVersion(alias, this);
  }

  /** Rename this table */
  public SchemaVersion rename(String name) {
    return new SchemaVersion(name, null);
  }
}