|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMRFieldBridge org.jboss.ejb.plugins.cmp.jdbc2.bridge.JDBCCMRFieldBridge2
Nested Class Summary | |
class |
JDBCCMRFieldBridge2.CollectionValuedFieldState
|
static interface |
JDBCCMRFieldBridge2.FieldState
|
class |
JDBCCMRFieldBridge2.SingleValuedFieldState
|
Constructor Summary | |
JDBCCMRFieldBridge2(JDBCEntityBridge2 entityBridge,
JDBCStoreManager2 manager,
JDBCRelationshipRoleMetaData metadata)
|
Method Summary | |
boolean |
addRelatedId(EntityEnterpriseContext ctx,
Object relatedId)
|
void |
destroyExistingRelationships(EntityEnterpriseContext ctx)
|
JDBCAbstractEntityBridge |
getEntity()
|
String |
getFieldName()
Gets the name of this field. |
JDBCFieldBridge[] |
getForeignKeyFields()
|
Object |
getInstanceValue(EntityEnterpriseContext 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(EntityEnterpriseContext ctx)
Gets the value of this field for the specified instance context. |
boolean |
hasForeignKey()
|
void |
initInstance(EntityEnterpriseContext ctx)
Set CMPFieldValue to Java default value (i.e., 0 or null). |
void |
initLoader()
|
boolean |
isCMPField()
|
boolean |
isDirty(EntityEnterpriseContext ctx)
Has the value of this field changes since the last time clean was called. |
boolean |
isLoaded(EntityEnterpriseContext 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(EntityEnterpriseContext 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 referance. |
int |
loadInstanceResults(ResultSet rs,
int parameterIndex,
EntityEnterpriseContext ctx)
Loads the data from result set into the instance associated with the specified context. |
void |
remove(EntityEnterpriseContext ctx)
|
boolean |
removeRelatedId(EntityEnterpriseContext ctx,
Object relatedId)
|
void |
resetPersistenceContext(EntityEnterpriseContext ctx)
Resets any persistence data maintained in the context. |
void |
resolveRelationship()
|
void |
setClean(EntityEnterpriseContext ctx)
Mark this field as clean. |
int |
setInstanceParameters(PreparedStatement ps,
int parameterIndex,
EntityEnterpriseContext ctx)
Sets the prepared statement parameters with the data from the instance associated with the context. |
void |
setInstanceValue(EntityEnterpriseContext ctx,
Object value)
Sets the internal value of this field without user level checks. |
void |
setValue(EntityEnterpriseContext ctx,
Object value)
Sets the value of this field for the specified instance context. |
Methods inherited from class org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMRFieldBridge |
getPrimaryKeyValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JDBCCMRFieldBridge2(JDBCEntityBridge2 entityBridge, JDBCStoreManager2 manager, JDBCRelationshipRoleMetaData metadata)
Method Detail |
public void resolveRelationship() throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
public void initLoader() throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
public JDBCRelationshipRoleMetaData getMetaData()
getMetaData
in class JDBCAbstractCMRFieldBridge
public boolean removeRelatedId(EntityEnterpriseContext ctx, Object relatedId)
public boolean addRelatedId(EntityEnterpriseContext ctx, Object relatedId)
public void remove(EntityEnterpriseContext ctx) throws javax.ejb.RemoveException
javax.ejb.RemoveException
public void destroyExistingRelationships(EntityEnterpriseContext 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(EntityEnterpriseContext ctx)
JDBCFieldBridge
public boolean isLoaded(EntityEnterpriseContext ctx)
JDBCFieldBridge
public void initInstance(EntityEnterpriseContext ctx)
JDBCFieldBridge
public void resetPersistenceContext(EntityEnterpriseContext ctx)
JDBCFieldBridge
public int setInstanceParameters(PreparedStatement ps, int parameterIndex, EntityEnterpriseContext ctx)
JDBCFieldBridge
public Object getInstanceValue(EntityEnterpriseContext ctx)
JDBCFieldBridge
ctx
- the context for which this field's value should be fetched
public void setInstanceValue(EntityEnterpriseContext 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, EntityEnterpriseContext ctx)
JDBCFieldBridge
public int loadArgumentResults(ResultSet rs, int parameterIndex, Object[] argumentRef)
JDBCFieldBridge
public boolean isDirty(EntityEnterpriseContext ctx)
JDBCFieldBridge
public void setClean(EntityEnterpriseContext ctx)
JDBCFieldBridge
public boolean isCMPField()
public String getFieldName()
FieldBridge
public Object getValue(EntityEnterpriseContext ctx)
FieldBridge
ctx
- the context for which this field's value should be fetched
public void setValue(EntityEnterpriseContext 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()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |