- All Known Implementing Classes:
ImportedIdEmbedded,ImportedIdSimple
public interface ImportedId
Represents a imported property.
-
Method Summary
Modifier and TypeMethodDescriptionvoidintbind(int position, SqlUpdate update, EntityBean bean) Bind the imported Id value to the SqlUpdate.bind(io.ebeaninternal.server.persist.dmlbind.BindableRequest request, EntityBean bean) Bind the value from the bean.voidbindImport(SqlUpdate sql, EntityBean other) Bind values to the intersection SqlUpdate.voidAdd DB columns to the intersection builder.voidbuildImport(IntersectionRow row, EntityBean other) For inserting into ManyToMany intersection.voiddmlAppend(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.booleanisScalar()Return true if this id is a simple single scalar value.voidsqlAppend(DbSqlContext ctx) Append the the SQL query statement.
-
Method Details
-
addFkeys
-
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
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
Bind the imported Id value to the SqlUpdate. -
buildImport
For inserting into ManyToMany intersection. -
findMatchImport
Used to derive a missing concatenated key from multiple imported keys. -
importedIdClause
String importedIdClause()Return the set importedId clause. -
buildImport
Add DB columns to the intersection builder. -
bindImport
Bind values to the intersection SqlUpdate.
-