Interface ImportedId

All Known Implementing Classes:
ImportedIdEmbedded, ImportedIdSimple

public interface ImportedId
Represents a imported property.
  • 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, EntityBean bean) throws SQLException
      Bind the value from the bean.
      Throws:
      SQLException
    • bind

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

      void buildImport(IntersectionRow row, 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(SqlUpdate sql, EntityBean other)
      Bind values to the intersection SqlUpdate.