Interface ImportedId
-
- All Known Implementing Classes:
ImportedIdEmbedded
,ImportedIdSimple
public interface ImportedId
Represents a imported property.
-
-
Method Summary
All Methods Instance Methods Abstract 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)
Used to derive a missing concatenated key from multiple imported keys.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.
-
-
-
Method Detail
-
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
void sqlAppend(DbSqlContext ctx)
Append the the SQL query statement.
-
dmlAppend
void dmlAppend(GenerateDmlRequest request)
Append to the DML statement.
-
bind
Object bind(BindableRequest request, EntityBean bean) throws SQLException
Bind the value from the bean.- Throws:
SQLException
-
bind
int bind(int position, SqlUpdate update, EntityBean bean)
Bind the imported Id value to the SqlUpdate.
-
buildImport
void buildImport(IntersectionRow row, EntityBean other)
For inserting into ManyToMany intersection.
-
findMatchImport
BeanProperty findMatchImport(String matchDbColumn)
Used to derive a missing concatenated key from multiple imported keys.
-
importedIdClause
String importedIdClause()
Return the set importedId clause.
-
buildImport
void buildImport(IntersectionBuilder row)
Add DB columns to the intersection builder.
-
bindImport
void bindImport(SqlUpdate sql, EntityBean other)
Bind values to the intersection SqlUpdate.
-
-