Interface ImportedId

All Known Implementing Classes:
ImportedIdEmbedded, ImportedIdSimple

public interface ImportedId
Represents a imported property.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    int
    bind(int position, io.ebean.SqlUpdate update, io.ebean.bean.EntityBean bean)
    Bind the imported Id value to the SqlUpdate.
    bind(io.ebeaninternal.server.persist.dmlbind.BindableRequest request, io.ebean.bean.EntityBean bean)
    Bind the value from the bean.
    void
    bindImport(io.ebean.SqlUpdate sql, io.ebean.bean.EntityBean other)
    Bind values to the intersection SqlUpdate.
    void
    Add DB columns to the intersection builder.
    void
    buildImport(IntersectionRow row, io.ebean.bean.EntityBean other)
    For inserting into ManyToMany intersection.
    void
    dmlAppend(io.ebeaninternal.server.persist.dml.GenerateDmlRequest request)
    Append to the DML statement.
    findMatchImport(String matchDbColumn)
    Used to derive a missing concatenated key from multiple imported keys.
    For scalar id return the related single db column.
    Return the set importedId clause.
    boolean
    Return true if this id is a simple single scalar value.
    void
    Append the the SQL query statement.
  • Method Details

    • addFkeys

      void addFkeys(String name)
    • isScalar

      boolean isScalar()
      Return true if this id is a simple single scalar value. False if it is a compound id (embedded or multiple).
    • getDbColumn

      String getDbColumn()
      For scalar id return the related single db column.

      This is essentially the imported foreign key column (where there is only one).

    • sqlAppend

      void sqlAppend(DbSqlContext ctx)
      Append the the SQL query statement.
    • dmlAppend

      void dmlAppend(io.ebeaninternal.server.persist.dml.GenerateDmlRequest request)
      Append to the DML statement.
    • bind

      Object bind(io.ebeaninternal.server.persist.dmlbind.BindableRequest request, io.ebean.bean.EntityBean bean) throws SQLException
      Bind the value from the bean.
      Throws:
      SQLException
    • bind

      int bind(int position, io.ebean.SqlUpdate update, io.ebean.bean.EntityBean bean)
      Bind the imported Id value to the SqlUpdate.
    • buildImport

      void buildImport(IntersectionRow row, io.ebean.bean.EntityBean other)
      For inserting into ManyToMany intersection.
    • findMatchImport

      BeanProperty findMatchImport(String matchDbColumn)
      Used to derive a missing concatenated key from multiple imported keys.
    • importedIdClause

      String importedIdClause()
      Return the set importedId clause.
    • buildImport

      void buildImport(IntersectionBuilder row)
      Add DB columns to the intersection builder.
    • bindImport

      void bindImport(io.ebean.SqlUpdate sql, io.ebean.bean.EntityBean other)
      Bind values to the intersection SqlUpdate.