Constructor and Description |
---|
IdentityJoinable(ClassMapping mapping)
Constructor; supply datastore identity mapping.
|
Modifier and Type | Method and Description |
---|---|
Column[] |
getColumns()
The columns managed by this joinable.
|
int |
getFieldIndex()
Return the field index of this joinable, or -1 if not a field.
|
java.lang.Object |
getJoinValue(java.lang.Object val,
Column col,
JDBCStore store)
Return the join value of the given column.
|
java.lang.Object |
getJoinValue(OpenJPAStateManager sm,
Column col,
JDBCStore store)
Return the join value of the given column.
|
java.lang.Object |
getPrimaryKeyValue(Result res,
Column[] cols,
ForeignKey fk,
JDBCStore store,
Joins joins)
Return the value for this joinable from the given result, using the
given columns.
|
void |
setAutoAssignedValue(OpenJPAStateManager sm,
JDBCStore store,
Column col,
java.lang.Object autogen)
Use the given auto-assigned value to set this join value's field
on the given instance.
|
public IdentityJoinable(ClassMapping mapping)
public int getFieldIndex()
Joinable
getFieldIndex
in interface Joinable
public java.lang.Object getPrimaryKeyValue(Result res, Column[] cols, ForeignKey fk, JDBCStore store, Joins joins) throws java.sql.SQLException
Joinable
ForeignKey.getColumn(org.apache.openjpa.jdbc.schema.Column)
.getPrimaryKeyValue
in interface Joinable
java.sql.SQLException
public Column[] getColumns()
Joinable
getColumns
in interface Joinable
public java.lang.Object getJoinValue(java.lang.Object val, Column col, JDBCStore store)
Joinable
getJoinValue
in interface Joinable
val
- the value of the field for this joinablecol
- the column of this joinable whose value to returnpublic java.lang.Object getJoinValue(OpenJPAStateManager sm, Column col, JDBCStore store)
Joinable
getJoinValue
in interface Joinable
sm
- the instance from which to get the valuecol
- the column whose value to returnpublic void setAutoAssignedValue(OpenJPAStateManager sm, JDBCStore store, Column col, java.lang.Object autogen)
Joinable
setAutoAssignedValue
in interface Joinable
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.