public final class ImportedIdSimple extends Object implements ImportedId, Comparable<ImportedIdSimple>
| Modifier and Type | Field and Description |
|---|---|
protected BeanProperty |
foreignProperty |
protected String |
localDbColumn |
protected String |
logicalName |
protected BeanPropertyAssoc<?> |
owner |
protected int |
position |
| Constructor and Description |
|---|
ImportedIdSimple(BeanPropertyAssoc<?> owner,
String localDbColumn,
BeanProperty foreignProperty,
int position) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFkeys(String name) |
Object |
bind(BindableRequest request,
Object bean,
boolean bindNull)
Bind the value from the bean.
|
void |
buildImport(IntersectionRow row,
Object other)
For inserting into ManyToMany intersection.
|
int |
compareTo(ImportedIdSimple other) |
void |
dmlAppend(GenerateDmlRequest request)
Append to the DML statement.
|
void |
dmlWhere(GenerateDmlRequest request,
Object bean)
Append to the DML statement to the where clause.
|
boolean |
equals(Object obj) |
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 |
getLogicalName()
Return the logical property name.
|
boolean |
hasChanged(Object bean,
Object oldValues)
Return true if the id value has changed.
|
boolean |
isScalar()
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.
|
void |
sqlAppend(DbSqlContext ctx)
Append the the SQL query statement.
|
protected final BeanPropertyAssoc<?> owner
protected final String localDbColumn
protected final String logicalName
protected final BeanProperty foreignProperty
protected final int position
public ImportedIdSimple(BeanPropertyAssoc<?> owner, String localDbColumn, BeanProperty foreignProperty, int position)
public static ImportedIdSimple[] sort(List<ImportedIdSimple> list)
public int compareTo(ImportedIdSimple other)
compareTo in interface Comparable<ImportedIdSimple>public void addFkeys(String name)
addFkeys in interface ImportedIdpublic boolean isScalar()
ImportedIdisScalar in interface ImportedIdpublic String getLogicalName()
ImportedIdgetLogicalName in interface ImportedIdpublic String getDbColumn()
ImportedIdThis is essentially the imported foreign key column (where there is only one).
getDbColumn in interface ImportedIdpublic void buildImport(IntersectionRow row, Object other)
ImportedIdbuildImport in interface ImportedIdpublic void sqlAppend(DbSqlContext ctx)
ImportedIdsqlAppend in interface ImportedIdpublic void dmlAppend(GenerateDmlRequest request)
ImportedIddmlAppend in interface ImportedIdpublic void dmlWhere(GenerateDmlRequest request, Object bean)
ImportedIddmlWhere in interface ImportedIdpublic boolean hasChanged(Object bean, Object oldValues)
ImportedIdhasChanged in interface ImportedIdpublic Object bind(BindableRequest request, Object bean, boolean bindNull) throws SQLException
ImportedIdbind in interface ImportedIdSQLExceptionpublic BeanProperty findMatchImport(String matchDbColumn)
ImportedIdfindMatchImport in interface ImportedIdCopyright © 2014. All Rights Reserved.