Class ImportedIdSimple

java.lang.Object
io.ebeaninternal.server.deploy.id.ImportedIdSimple
All Implemented Interfaces:
ImportedId, Comparable<ImportedIdSimple>

public final class ImportedIdSimple extends Object implements ImportedId, Comparable<ImportedIdSimple>
Single scalar imported id.
  • Constructor Details

  • Method Details

    • sort

      public static ImportedIdSimple[] sort(List<ImportedIdSimple> list)
      Return the list as an array sorted into the same order as the Bean Properties.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(ImportedIdSimple other)
      Specified by:
      compareTo in interface Comparable<ImportedIdSimple>
    • 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
    • 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
    • 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
    • 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
    • findMatchImport

      public BeanProperty findMatchImport(String matchDbColumn)
      Description copied from interface: ImportedId
      Used to derive a missing concatenated key from multiple imported keys.
      Specified by:
      findMatchImport in interface ImportedId