|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge
JDBCEntityBridge follows the Bridge pattern [Gamma et. al, 1995]. The main job of this class is to construct the bridge from entity meta data. Life-cycle: Undefined. Should be tied to CMPStoreManager. Multiplicity: One per cmp entity bean type.
| Nested Class Summary | |
class |
JDBCEntityBridge.EntityState
|
static interface |
JDBCEntityBridge.FieldIterator
|
| Field Summary | |
static byte |
ADD_TO_SET_ON_UPDATE
|
static byte |
ADD_TO_WHERE_ON_UPDATE
|
static byte |
CHECK_DIRTY
|
static byte |
DIRTY
|
static JDBCEntityBridge.FieldIterator |
EMPTY_FIELD_ITERATOR
|
static byte |
LOAD_REQUIRED
|
static byte |
LOADED
|
static byte |
LOCKED
|
| Constructor Summary | |
JDBCEntityBridge(JDBCEntityMetaData metadata,
JDBCStoreManager manager)
|
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final byte LOADED
public static final byte LOAD_REQUIRED
public static final byte DIRTY
public static final byte CHECK_DIRTY
public static final byte LOCKED
public static final byte ADD_TO_SET_ON_UPDATE
public static final byte ADD_TO_WHERE_ON_UPDATE
public static final JDBCEntityBridge.FieldIterator EMPTY_FIELD_ITERATOR
| Constructor Detail |
public JDBCEntityBridge(JDBCEntityMetaData metadata, JDBCStoreManager manager) throws org.jboss.deployment.DeploymentException
| Method Detail |
public void init()
throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
public void resolveRelationships()
throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
public void start()
throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentExceptionpublic boolean removeFromRelations(EntityEnterpriseContext ctx, Object[] oldRelations)
public void cascadeDelete(EntityEnterpriseContext ctx, Map oldRelations) throws javax.ejb.RemoveException, RemoteException
javax.ejb.RemoveException
RemoteExceptionpublic String getEntityName()
getEntityName in interface EntityBridgepublic String getAbstractSchemaName()
getAbstractSchemaName in interface EntityBridgepublic Class getRemoteInterface()
getRemoteInterface in interface EntityBridgepublic Class getLocalInterface()
getLocalInterface in interface EntityBridgepublic JDBCEntityMetaData getMetaData()
getMetaData in interface JDBCAbstractEntityBridgepublic JDBCEntityPersistenceStore getManager()
getManager in interface JDBCAbstractEntityBridgepublic DataSource getDataSource()
getDataSource in interface JDBCAbstractEntityBridgepublic String getTableName()
getTableName in interface JDBCAbstractEntityBridgepublic String getQualifiedTableName()
getQualifiedTableName in interface JDBCAbstractEntityBridgepublic Class getPrimaryKeyClass()
public int getListCacheMax()
public int getFetchSize()
public Object createPrimaryKeyInstance()
public JDBCFieldBridge[] getPrimaryKeyFields()
getPrimaryKeyFields in interface JDBCAbstractEntityBridgepublic List getFields()
public FieldBridge getFieldByName(String name)
getFieldByName in interface EntityBridgepublic boolean[] getEagerLoadMask()
public Iterator getLazyLoadGroupMasks()
public boolean[] getLoadGroupMask(String name)
getLoadGroupMask in interface JDBCAbstractEntityBridgepublic JDBCEntityBridge.FieldIterator getLoadIterator(JDBCCMPFieldBridge requiredField, JDBCReadAheadMetaData readahead, EntityEnterpriseContext ctx)
public JDBCCMPFieldBridge getCMPFieldByName(String name)
name - CMP field name
public JDBCAbstractCMRFieldBridge[] getCMRFields()
getCMRFields in interface JDBCAbstractEntityBridgepublic JDBCCMRFieldBridge getCMRFieldByName(String name)
public JDBCCMPFieldBridge getVersionField()
public JDBCCMPFieldBridge getCreatedPrincipalField()
public JDBCCMPFieldBridge getCreatedTimeField()
public JDBCCMPFieldBridge getUpdatedPrincipalField()
public JDBCCMPFieldBridge getUpdatedTimeField()
public Collection getSelectors()
public void initInstance(EntityEnterpriseContext ctx)
public static boolean isEjbCreateDone(EntityEnterpriseContext ctx)
public static void setCreated(EntityEnterpriseContext ctx)
public static void setEjbCreateDone(EntityEnterpriseContext ctx)
public boolean isModified(EntityEnterpriseContext ctx)
ctx -
public boolean isStoreRequired(EntityEnterpriseContext ctx)
public JDBCEntityBridge.FieldIterator getDirtyIterator(EntityEnterpriseContext ctx)
public boolean hasLockedFields(EntityEnterpriseContext ctx)
public JDBCEntityBridge.FieldIterator getLockedIterator(EntityEnterpriseContext ctx)
public void initPersistenceContext(EntityEnterpriseContext ctx)
public void resetPersistenceContext(EntityEnterpriseContext ctx)
public static void destroyPersistenceContext(EntityEnterpriseContext ctx)
public int setPrimaryKeyParameters(PreparedStatement ps, int parameterIndex, Object primaryKey)
public int loadPrimaryKeyResults(ResultSet rs, int parameterIndex, Object[] pkRef)
public Object extractPrimaryKeyFromInstance(EntityEnterpriseContext ctx)
public void injectPrimaryKeyIntoInstance(EntityEnterpriseContext ctx, Object pk)
public JDBCFieldBridge[] getTableFields()
getTableFields in interface JDBCAbstractEntityBridgepublic void setRemoved(EntityEnterpriseContext ctx)
ctx - instance's contextpublic boolean isRemoved(EntityEnterpriseContext ctx)
ctx - instance's context.
public void scheduleForCascadeDelete(EntityEnterpriseContext ctx)
ctx - instance's context.public boolean isScheduledForCascadeDelete(EntityEnterpriseContext ctx)
ctx - instance's context.
public void scheduleForBatchCascadeDelete(EntityEnterpriseContext ctx)
ctx - instance's context.public boolean isScheduledForBatchCascadeDelete(EntityEnterpriseContext ctx)
ctx - instance's context.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||