public class JDBCCMRFieldBridge2 extends JDBCAbstractCMRFieldBridge
Modifier and Type | Class and Description |
---|---|
class |
JDBCCMRFieldBridge2.CollectionValuedFieldState |
static interface |
JDBCCMRFieldBridge2.FieldState |
class |
JDBCCMRFieldBridge2.SingleValuedFieldState |
Constructor and Description |
---|
JDBCCMRFieldBridge2(JDBCEntityBridge2 entityBridge,
JDBCStoreManager2 manager,
JDBCRelationshipRoleMetaData metadata) |
Modifier and Type | Method and Description |
---|---|
boolean |
addRelatedId(CmpEntityBeanContext ctx,
Object relatedId) |
void |
destroyExistingRelationships(CmpEntityBeanContext ctx) |
JDBCAbstractEntityBridge |
getEntity() |
String |
getFieldName()
Gets the name of this field.
|
JDBCFieldBridge[] |
getForeignKeyFields() |
Object |
getInstanceValue(CmpEntityBeanContext ctx)
Gets the internal value of this field without user level checks.
|
JDBCType |
getJDBCType()
Gets the JDBC type of this field.
|
JDBCEntityPersistenceStore |
getManager() |
JDBCRelationshipRoleMetaData |
getMetaData() |
String |
getQualifiedTableName() |
JDBCAbstractCMRFieldBridge |
getRelatedCMRField() |
EntityBridge |
getRelatedEntity() |
JDBCCMRFieldBridge2 |
getRelatedField() |
JDBCFieldBridge[] |
getTableKeyFields() |
String |
getTableName() |
Object |
getValue(CmpEntityBeanContext ctx)
Gets the value of this field for the specified instance context.
|
boolean |
hasForeignKey() |
void |
initInstance(CmpEntityBeanContext ctx)
Set CMPFieldValue to Java default value (i.e., 0 or null).
|
void |
initLoader() |
boolean |
isCMPField() |
boolean |
isDirty(CmpEntityBeanContext ctx)
Has the value of this field changes since the last time clean was called.
|
boolean |
isLoaded(CmpEntityBeanContext ctx)
Has the data been loaded?
|
boolean |
isPrimaryKeyMember()
Is this field a member of the primary key.
|
boolean |
isReadOnly()
Is this field read only.
|
boolean |
isReadTimedOut(CmpEntityBeanContext ctx)
Has current data read timed out?
|
boolean |
isSingleValued() |
int |
loadArgumentResults(ResultSet rs,
int parameterIndex,
Object[] argumentRef)
Loads the value of this cmp field from result set into argument reference.
|
int |
loadInstanceResults(ResultSet rs,
int parameterIndex,
CmpEntityBeanContext ctx)
Loads the data from result set into the instance associated with
the specified context.
|
void |
remove(CmpEntityBeanContext ctx) |
boolean |
removeRelatedId(CmpEntityBeanContext ctx,
Object relatedId) |
void |
resetPersistenceContext(CmpEntityBeanContext ctx)
Resets any persistence data maintained in the context.
|
void |
resolveRelationship() |
void |
setClean(CmpEntityBeanContext ctx)
Mark this field as clean.
|
int |
setInstanceParameters(PreparedStatement ps,
int parameterIndex,
CmpEntityBeanContext ctx)
Sets the prepared statement parameters with the data from the
instance associated with the context.
|
void |
setInstanceValue(CmpEntityBeanContext ctx,
Object value)
Sets the internal value of this field without user level checks.
|
void |
setValue(CmpEntityBeanContext ctx,
Object value)
Sets the value of this field for the specified instance context.
|
getPrimaryKeyValue
public JDBCCMRFieldBridge2(JDBCEntityBridge2 entityBridge, JDBCStoreManager2 manager, JDBCRelationshipRoleMetaData metadata)
public void resolveRelationship()
public void initLoader()
public JDBCRelationshipRoleMetaData getMetaData()
getMetaData
in class JDBCAbstractCMRFieldBridge
public boolean removeRelatedId(CmpEntityBeanContext ctx, Object relatedId)
public boolean addRelatedId(CmpEntityBeanContext ctx, Object relatedId)
public void remove(CmpEntityBeanContext ctx) throws javax.ejb.RemoveException
javax.ejb.RemoveException
public void destroyExistingRelationships(CmpEntityBeanContext ctx)
public JDBCFieldBridge[] getTableKeyFields()
getTableKeyFields
in class JDBCAbstractCMRFieldBridge
public JDBCEntityPersistenceStore getManager()
public boolean hasForeignKey()
hasForeignKey
in class JDBCAbstractCMRFieldBridge
public JDBCAbstractCMRFieldBridge getRelatedCMRField()
getRelatedCMRField
in class JDBCAbstractCMRFieldBridge
public JDBCFieldBridge[] getForeignKeyFields()
getForeignKeyFields
in class JDBCAbstractCMRFieldBridge
public JDBCCMRFieldBridge2 getRelatedField()
public JDBCAbstractEntityBridge getEntity()
getEntity
in class JDBCAbstractCMRFieldBridge
public String getQualifiedTableName()
getQualifiedTableName
in class JDBCAbstractCMRFieldBridge
public String getTableName()
getTableName
in class JDBCAbstractCMRFieldBridge
public JDBCType getJDBCType()
JDBCFieldBridge
public boolean isPrimaryKeyMember()
JDBCFieldBridge
public boolean isReadOnly()
JDBCFieldBridge
public boolean isReadTimedOut(CmpEntityBeanContext ctx)
JDBCFieldBridge
public boolean isLoaded(CmpEntityBeanContext ctx)
JDBCFieldBridge
public void initInstance(CmpEntityBeanContext ctx)
JDBCFieldBridge
public void resetPersistenceContext(CmpEntityBeanContext ctx)
JDBCFieldBridge
public int setInstanceParameters(PreparedStatement ps, int parameterIndex, CmpEntityBeanContext ctx)
JDBCFieldBridge
public Object getInstanceValue(CmpEntityBeanContext ctx)
JDBCFieldBridge
ctx
- the context for which this field's value should be fetchedpublic void setInstanceValue(CmpEntityBeanContext ctx, Object value)
JDBCFieldBridge
ctx
- the context for which this field's value should be setvalue
- the new value of this fieldpublic int loadInstanceResults(ResultSet rs, int parameterIndex, CmpEntityBeanContext ctx)
JDBCFieldBridge
public int loadArgumentResults(ResultSet rs, int parameterIndex, Object[] argumentRef)
JDBCFieldBridge
public boolean isDirty(CmpEntityBeanContext ctx)
JDBCFieldBridge
public void setClean(CmpEntityBeanContext ctx)
JDBCFieldBridge
public boolean isCMPField()
public String getFieldName()
FieldBridge
public Object getValue(CmpEntityBeanContext ctx)
FieldBridge
ctx
- the context for which this field's value should be fetchedpublic void setValue(CmpEntityBeanContext ctx, Object value)
FieldBridge
ctx
- the context for which this field's value should be setvalue
- the new value of this fieldpublic boolean isSingleValued()
public EntityBridge getRelatedEntity()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.