java.lang.Object
io.ebeaninternal.server.deploy.id.ImportedIdEmbedded
- All Implemented Interfaces:
ImportedId
Imported Embedded id.
-
Constructor Summary
ConstructorsConstructorDescriptionImportedIdEmbedded(BeanPropertyAssoc<?> owner, BeanPropertyAssocOne<?> foreignAssocOne, ImportedIdSimple[] imported) -
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) Not supported for embedded id.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.
-
Constructor Details
-
ImportedIdEmbedded
public ImportedIdEmbedded(BeanPropertyAssoc<?> owner, BeanPropertyAssocOne<?> foreignAssocOne, ImportedIdSimple[] imported)
-
-
Method Details
-
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
-
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
-
buildImport
Description copied from interface:ImportedIdFor inserting into ManyToMany intersection.- Specified by:
buildImportin 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
-
findMatchImport
Not supported for embedded id.- Specified by:
findMatchImportin interfaceImportedId
-