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.
|
getPrimaryKeyValuepublic JDBCCMRFieldBridge2(JDBCEntityBridge2 entityBridge, JDBCStoreManager2 manager, JDBCRelationshipRoleMetaData metadata)
public void resolveRelationship()
public void initLoader()
public JDBCRelationshipRoleMetaData getMetaData()
getMetaData in class JDBCAbstractCMRFieldBridgepublic boolean removeRelatedId(CmpEntityBeanContext ctx, Object relatedId)
public boolean addRelatedId(CmpEntityBeanContext ctx, Object relatedId)
public void remove(CmpEntityBeanContext ctx) throws javax.ejb.RemoveException
javax.ejb.RemoveExceptionpublic void destroyExistingRelationships(CmpEntityBeanContext ctx)
public JDBCFieldBridge[] getTableKeyFields()
getTableKeyFields in class JDBCAbstractCMRFieldBridgepublic JDBCEntityPersistenceStore getManager()
public boolean hasForeignKey()
hasForeignKey in class JDBCAbstractCMRFieldBridgepublic JDBCAbstractCMRFieldBridge getRelatedCMRField()
getRelatedCMRField in class JDBCAbstractCMRFieldBridgepublic JDBCFieldBridge[] getForeignKeyFields()
getForeignKeyFields in class JDBCAbstractCMRFieldBridgepublic JDBCCMRFieldBridge2 getRelatedField()
public JDBCAbstractEntityBridge getEntity()
getEntity in class JDBCAbstractCMRFieldBridgepublic String getQualifiedTableName()
getQualifiedTableName in class JDBCAbstractCMRFieldBridgepublic String getTableName()
getTableName in class JDBCAbstractCMRFieldBridgepublic JDBCType getJDBCType()
JDBCFieldBridgepublic boolean isPrimaryKeyMember()
JDBCFieldBridgepublic boolean isReadOnly()
JDBCFieldBridgepublic boolean isReadTimedOut(CmpEntityBeanContext ctx)
JDBCFieldBridgepublic boolean isLoaded(CmpEntityBeanContext ctx)
JDBCFieldBridgepublic void initInstance(CmpEntityBeanContext ctx)
JDBCFieldBridgepublic void resetPersistenceContext(CmpEntityBeanContext ctx)
JDBCFieldBridgepublic int setInstanceParameters(PreparedStatement ps, int parameterIndex, CmpEntityBeanContext ctx)
JDBCFieldBridgepublic Object getInstanceValue(CmpEntityBeanContext ctx)
JDBCFieldBridgectx - the context for which this field's value should be fetchedpublic void setInstanceValue(CmpEntityBeanContext ctx, Object value)
JDBCFieldBridgectx - 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)
JDBCFieldBridgepublic int loadArgumentResults(ResultSet rs, int parameterIndex, Object[] argumentRef)
JDBCFieldBridgepublic boolean isDirty(CmpEntityBeanContext ctx)
JDBCFieldBridgepublic void setClean(CmpEntityBeanContext ctx)
JDBCFieldBridgepublic boolean isCMPField()
public String getFieldName()
FieldBridgepublic Object getValue(CmpEntityBeanContext ctx)
FieldBridgectx - the context for which this field's value should be fetchedpublic void setValue(CmpEntityBeanContext ctx, Object value)
FieldBridgectx - 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.