Class ImportedIdEmbedded

java.lang.Object
io.ebeaninternal.server.deploy.id.ImportedIdEmbedded
All Implemented Interfaces:
ImportedId

public final class ImportedIdEmbedded extends Object implements ImportedId
Imported Embedded id.
  • Constructor Details

  • Method Details

    • addFkeys

      public void addFkeys(String name)
      Specified by:
      addFkeys in interface ImportedId
    • isScalar

      public boolean isScalar()
      Description copied from interface: ImportedId
      Return true if this id is a simple single scalar value. False if it is a compound id (embedded or multiple).
      Specified by:
      isScalar in interface ImportedId
    • getDbColumn

      public String getDbColumn()
      Description copied from interface: ImportedId
      For scalar id return the related single db column.

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

      Specified by:
      getDbColumn in interface ImportedId
    • sqlAppend

      public void sqlAppend(DbSqlContext ctx)
      Description copied from interface: ImportedId
      Append the the SQL query statement.
      Specified by:
      sqlAppend in interface ImportedId
    • dmlAppend

      public void dmlAppend(io.ebeaninternal.server.persist.dml.GenerateDmlRequest request)
      Description copied from interface: ImportedId
      Append to the DML statement.
      Specified by:
      dmlAppend in interface ImportedId
    • importedIdClause

      public String importedIdClause()
      Description copied from interface: ImportedId
      Return the set importedId clause.
      Specified by:
      importedIdClause in interface ImportedId
    • bind

      public int bind(int position, io.ebean.SqlUpdate update, io.ebean.bean.EntityBean bean)
      Description copied from interface: ImportedId
      Bind the imported Id value to the SqlUpdate.
      Specified by:
      bind in interface ImportedId
    • bind

      public Object bind(io.ebeaninternal.server.persist.dmlbind.BindableRequest request, io.ebean.bean.EntityBean bean) throws SQLException
      Description copied from interface: ImportedId
      Bind the value from the bean.
      Specified by:
      bind in interface ImportedId
      Throws:
      SQLException
    • buildImport

      public void buildImport(IntersectionRow row, io.ebean.bean.EntityBean other)
      Description copied from interface: ImportedId
      For inserting into ManyToMany intersection.
      Specified by:
      buildImport in interface ImportedId
    • buildImport

      public void buildImport(IntersectionBuilder row)
      Description copied from interface: ImportedId
      Add DB columns to the intersection builder.
      Specified by:
      buildImport in interface ImportedId
    • bindImport

      public void bindImport(io.ebean.SqlUpdate sql, io.ebean.bean.EntityBean other)
      Description copied from interface: ImportedId
      Bind values to the intersection SqlUpdate.
      Specified by:
      bindImport in interface ImportedId
    • findMatchImport

      public BeanProperty findMatchImport(String matchDbColumn)
      Not supported for embedded id.
      Specified by:
      findMatchImport in interface ImportedId