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 Summary
ConstructorsConstructorDescriptionImportedIdSimple(BeanPropertyAssoc<?> owner, String localDbColumn, String localSqlFormula, BeanProperty foreignProperty, int position) ImportedIdSimple(BeanPropertyAssoc<?> owner, String localDbColumn, String localSqlFormula, BeanProperty foreignProperty, int position, boolean insertable, boolean updateable) -
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.intcompareTo(ImportedIdSimple other) voiddmlAppend(io.ebeaninternal.server.persist.dml.GenerateDmlRequest request) Append to the DML statement.booleanfindMatchImport(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.static ImportedIdSimple[]sort(List<ImportedIdSimple> list) Return the list as an array sorted into the same order as the Bean Properties.voidsqlAppend(DbSqlContext ctx) Append the the SQL query statement.
-
Constructor Details
-
ImportedIdSimple
public ImportedIdSimple(BeanPropertyAssoc<?> owner, String localDbColumn, String localSqlFormula, BeanProperty foreignProperty, int position, boolean insertable, boolean updateable) -
ImportedIdSimple
public ImportedIdSimple(BeanPropertyAssoc<?> owner, String localDbColumn, String localSqlFormula, BeanProperty foreignProperty, int position)
-
-
Method Details
-
sort
Return the list as an array sorted into the same order as the Bean Properties. -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<ImportedIdSimple>
-
addFkeys
- Specified by:
addFkeysin interfaceImportedId
-
isScalar
public boolean isScalar()Description copied from interface:ImportedIdReturn true if this id is a simple single scalar value. False if it is a compound id (embedded or multiple).- Specified by:
isScalarin interfaceImportedId
-
getDbColumn
Description copied from interface:ImportedIdFor scalar id return the related single db column.This is essentially the imported foreign key column (where there is only one).
- Specified by:
getDbColumnin interfaceImportedId
-
buildImport
Description copied from interface:ImportedIdAdd DB columns to the intersection builder.- Specified by:
buildImportin interfaceImportedId
-
bindImport
Description copied from interface:ImportedIdBind values to the intersection SqlUpdate.- Specified by:
bindImportin interfaceImportedId
-
buildImport
Description copied from interface:ImportedIdFor inserting into ManyToMany intersection.- Specified by:
buildImportin interfaceImportedId
-
sqlAppend
Description copied from interface:ImportedIdAppend the the SQL query statement.- Specified by:
sqlAppendin interfaceImportedId
-
dmlAppend
public void dmlAppend(io.ebeaninternal.server.persist.dml.GenerateDmlRequest request) Description copied from interface:ImportedIdAppend to the DML statement.- Specified by:
dmlAppendin interfaceImportedId
-
importedIdClause
Description copied from interface:ImportedIdReturn the set importedId clause.- Specified by:
importedIdClausein interfaceImportedId
-
bind
Description copied from interface:ImportedIdBind the imported Id value to the SqlUpdate.- Specified by:
bindin interfaceImportedId
-
bind
public Object bind(io.ebeaninternal.server.persist.dmlbind.BindableRequest request, EntityBean bean) throws SQLException Description copied from interface:ImportedIdBind the value from the bean.- Specified by:
bindin interfaceImportedId- Throws:
SQLException
-
findMatchImport
Description copied from interface:ImportedIdUsed to derive a missing concatenated key from multiple imported keys.- Specified by:
findMatchImportin interfaceImportedId
-