Class ImportedIdEmbedded
- java.lang.Object
-
- io.ebeaninternal.server.deploy.id.ImportedIdEmbedded
-
- All Implemented Interfaces:
ImportedId
public class ImportedIdEmbedded extends Object implements ImportedId
Imported Embedded id.
-
-
Constructor Summary
Constructors Constructor Description ImportedIdEmbedded(BeanPropertyAssoc<?> owner, BeanPropertyAssocOne<?> foreignAssocOne, ImportedIdSimple[] imported)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFkeys(String name)
int
bind(int position, SqlUpdate update, EntityBean bean)
Bind the imported Id value to the SqlUpdate.Object
bind(BindableRequest request, EntityBean bean)
Bind the value from the bean.void
bindImport(SqlUpdate sql, EntityBean other)
Bind values to the intersection SqlUpdate.void
buildImport(IntersectionBuilder row)
Add DB columns to the intersection builder.void
buildImport(IntersectionRow row, EntityBean other)
For inserting into ManyToMany intersection.void
dmlAppend(GenerateDmlRequest request)
Append to the DML statement.BeanProperty
findMatchImport(String matchDbColumn)
Not supported for embedded id.String
getDbColumn()
For scalar id return the related single db column.String
importedIdClause()
Return the set importedId clause.boolean
isScalar()
Return true if this id is a simple single scalar value.void
sqlAppend(DbSqlContext ctx)
Append the the SQL query statement.
-
-
-
Constructor Detail
-
ImportedIdEmbedded
public ImportedIdEmbedded(BeanPropertyAssoc<?> owner, BeanPropertyAssocOne<?> foreignAssocOne, ImportedIdSimple[] imported)
-
-
Method Detail
-
addFkeys
public void addFkeys(String name)
- Specified by:
addFkeys
in interfaceImportedId
-
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 interfaceImportedId
-
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 interfaceImportedId
-
sqlAppend
public void sqlAppend(DbSqlContext ctx)
Description copied from interface:ImportedId
Append the the SQL query statement.- Specified by:
sqlAppend
in interfaceImportedId
-
dmlAppend
public void dmlAppend(GenerateDmlRequest request)
Description copied from interface:ImportedId
Append to the DML statement.- Specified by:
dmlAppend
in interfaceImportedId
-
importedIdClause
public String importedIdClause()
Description copied from interface:ImportedId
Return the set importedId clause.- Specified by:
importedIdClause
in interfaceImportedId
-
bind
public int bind(int position, SqlUpdate update, EntityBean bean)
Description copied from interface:ImportedId
Bind the imported Id value to the SqlUpdate.- Specified by:
bind
in interfaceImportedId
-
bind
public Object bind(BindableRequest request, EntityBean bean) throws SQLException
Description copied from interface:ImportedId
Bind the value from the bean.- Specified by:
bind
in interfaceImportedId
- Throws:
SQLException
-
buildImport
public void buildImport(IntersectionRow row, EntityBean other)
Description copied from interface:ImportedId
For inserting into ManyToMany intersection.- Specified by:
buildImport
in interfaceImportedId
-
buildImport
public void buildImport(IntersectionBuilder row)
Description copied from interface:ImportedId
Add DB columns to the intersection builder.- Specified by:
buildImport
in interfaceImportedId
-
bindImport
public void bindImport(SqlUpdate sql, EntityBean other)
Description copied from interface:ImportedId
Bind values to the intersection SqlUpdate.- Specified by:
bindImport
in interfaceImportedId
-
findMatchImport
public BeanProperty findMatchImport(String matchDbColumn)
Not supported for embedded id.- Specified by:
findMatchImport
in interfaceImportedId
-
-