|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | 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 (src)
|
static interface |
JDBCEntityBridge.FieldIterator (src)
|
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 (src) |
EMPTY_FIELD_ITERATOR
|
static byte |
LOAD_REQUIRED
|
static byte |
LOADED
|
static byte |
LOCKED
|
Constructor Summary | |
JDBCEntityBridge(JDBCEntityMetaData (src) metadata,
JDBCStoreManager (src) 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 (src) EMPTY_FIELD_ITERATOR
Constructor Detail |
public JDBCEntityBridge(JDBCEntityMetaData (src) metadata, JDBCStoreManager (src) manager) throws DeploymentException (src)
Method Detail |
public void init() throws DeploymentException (src)
DeploymentException (src)
public void resolveRelationships() throws DeploymentException (src)
DeploymentException (src)
public void start() throws DeploymentException (src)
DeploymentException (src)
public boolean removeFromRelations(EntityEnterpriseContext (src) ctx, java.lang.Object[] oldRelations)
public void cascadeDelete(EntityEnterpriseContext (src) ctx, java.util.Map oldRelations) throws RemoveException (src) , java.rmi.RemoteException
RemoveException (src)
java.rmi.RemoteException
public java.lang.String getEntityName()
getEntityName
in interface EntityBridge (src)
public java.lang.String getAbstractSchemaName()
getAbstractSchemaName
in interface EntityBridge (src)
public java.lang.Class getRemoteInterface()
getRemoteInterface
in interface EntityBridge (src)
public java.lang.Class getLocalInterface()
getLocalInterface
in interface EntityBridge (src)
public JDBCEntityMetaData (src) getMetaData()
getMetaData
in interface JDBCAbstractEntityBridge (src)
public JDBCEntityPersistenceStore (src) getManager()
getManager
in interface JDBCAbstractEntityBridge (src)
public DataSource (src) getDataSource()
getDataSource
in interface JDBCAbstractEntityBridge (src)
public java.lang.String getTableName()
getTableName
in interface JDBCAbstractEntityBridge (src)
public java.lang.String getQualifiedTableName()
getQualifiedTableName
in interface JDBCAbstractEntityBridge (src)
public java.lang.Class getPrimaryKeyClass()
public int getListCacheMax()
public int getFetchSize()
public java.lang.Object createPrimaryKeyInstance()
public JDBCFieldBridge (src) [] getPrimaryKeyFields()
getPrimaryKeyFields
in interface JDBCAbstractEntityBridge (src)
public java.util.List getFields()
public FieldBridge (src) getFieldByName(java.lang.String name)
getFieldByName
in interface EntityBridge (src)
public boolean[] getEagerLoadMask()
public java.util.Iterator getLazyLoadGroupMasks()
public boolean[] getLoadGroupMask(java.lang.String name)
getLoadGroupMask
in interface JDBCAbstractEntityBridge (src)
public JDBCEntityBridge.FieldIterator (src) getLoadIterator(JDBCCMPFieldBridge (src) requiredField, JDBCReadAheadMetaData (src) readahead, EntityEnterpriseContext (src) ctx)
public JDBCCMPFieldBridge (src) getCMPFieldByName(java.lang.String name)
name
- CMP field name
public JDBCAbstractCMRFieldBridge (src) [] getCMRFields()
getCMRFields
in interface JDBCAbstractEntityBridge (src)
public JDBCCMRFieldBridge (src) getCMRFieldByName(java.lang.String name)
public JDBCCMPFieldBridge (src) getVersionField()
public JDBCCMPFieldBridge (src) getCreatedPrincipalField()
public JDBCCMPFieldBridge (src) getCreatedTimeField()
public JDBCCMPFieldBridge (src) getUpdatedPrincipalField()
public JDBCCMPFieldBridge (src) getUpdatedTimeField()
public java.util.Collection getSelectors()
public void initInstance(EntityEnterpriseContext (src) ctx)
public static boolean isEjbCreateDone(EntityEnterpriseContext (src) ctx)
public static void setCreated(EntityEnterpriseContext (src) ctx)
public static void setEjbCreateDone(EntityEnterpriseContext (src) ctx)
public boolean isModified(EntityEnterpriseContext (src) ctx)
ctx
-
public boolean isStoreRequired(EntityEnterpriseContext (src) ctx)
public JDBCEntityBridge.FieldIterator (src) getDirtyIterator(EntityEnterpriseContext (src) ctx)
public boolean hasLockedFields(EntityEnterpriseContext (src) ctx)
public JDBCEntityBridge.FieldIterator (src) getLockedIterator(EntityEnterpriseContext (src) ctx)
public void initPersistenceContext(EntityEnterpriseContext (src) ctx)
public void resetPersistenceContext(EntityEnterpriseContext (src) ctx)
public static void destroyPersistenceContext(EntityEnterpriseContext (src) ctx)
public int setPrimaryKeyParameters(java.sql.PreparedStatement ps, int parameterIndex, java.lang.Object primaryKey)
public int loadPrimaryKeyResults(java.sql.ResultSet rs, int parameterIndex, java.lang.Object[] pkRef)
public java.lang.Object extractPrimaryKeyFromInstance(EntityEnterpriseContext (src) ctx)
public void injectPrimaryKeyIntoInstance(EntityEnterpriseContext (src) ctx, java.lang.Object pk)
public JDBCFieldBridge (src) [] getTableFields()
getTableFields
in interface JDBCAbstractEntityBridge (src)
public void setRemoved(EntityEnterpriseContext (src) ctx)
ctx
- instance's contextpublic boolean isRemoved(EntityEnterpriseContext (src) ctx)
ctx
- instance's context.
public void scheduleForCascadeDelete(EntityEnterpriseContext (src) ctx)
ctx
- instance's context.public boolean isScheduledForCascadeDelete(EntityEnterpriseContext (src) ctx)
ctx
- instance's context.
public void scheduleForBatchCascadeDelete(EntityEnterpriseContext (src) ctx)
ctx
- instance's context.public boolean isScheduledForBatchCascadeDelete(EntityEnterpriseContext (src) ctx)
ctx
- instance's context.
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |