And why was the isIndexed field removed in this change?
-- xxxxxxxxxxxxxxxxxxxxxxxx Scott Stark Chief Technology Officer JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx
Dain Sundstrom wrote:
User: dsundstrom Date: 03/07/15 12:16:53
Modified: src/main/org/jboss/ejb/plugins/cmp/jdbc/bridge Tag:
Branch_3_2 JDBCCMRFieldBridge.java
Log:
JDBCCMRFieldBridge should not be referring to the EntityCache implementation
org.jboss.ejb.plugins.EntityInstanceCache but instead the interface.
Revision Changes Path
No revision
No revision
1.43.2.30 +9 -11 jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/bridge/JDBCCMRFieldBridge.java
Index: JDBCCMRFieldBridge.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/bridge/JDBCCMRFieldBridge.java,v
retrieving revision 1.43.2.29
retrieving revision 1.43.2.30
diff -u -r1.43.2.29 -r1.43.2.30
--- JDBCCMRFieldBridge.java 7 Jul 2003 18:55:51 -0000 1.43.2.29
+++ JDBCCMRFieldBridge.java 15 Jul 2003 19:16:53 -0000 1.43.2.30
@@ -35,7 +35,7 @@
import org.jboss.ejb.EntityEnterpriseContext;
import org.jboss.ejb.LocalProxyFactory;
import org.jboss.ejb.BeanLock;
-import org.jboss.ejb.plugins.EntityInstanceCache;
+import org.jboss.ejb.EntityCache;
import org.jboss.ejb.plugins.cmp.bridge.EntityBridge;
import org.jboss.ejb.plugins.cmp.bridge.CMRFieldBridge;
import org.jboss.ejb.plugins.cmp.jdbc.JDBCContext;
@@ -68,7 +68,7 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Dain Sundstrom</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Alex Loubyansky</a>
- * @version $Revision: 1.43.2.29 $
+ * @version $Revision: 1.43.2.30 $
*/
public class JDBCCMRFieldBridge implements JDBCFieldBridge, CMRFieldBridge
{
@@ -111,8 +111,6 @@
private Map relatedPKFieldsByMyFKFields = new HashMap();
/** Indicates whether there are foreign key fields mapped to CMP fields */
private boolean hasFKFieldsMappedToCMPFields;
- /** Indicates whether a db-index should be genrated for this field */
- private boolean isIndexed;
// Map for lists of related PK values keyed by this side's PK values.
// The values are put/removed by related entities when its fields representing
@@ -486,7 +484,7 @@
public boolean isIndexed()
{
- return isIndexed;
+ return false;
}
/**
@@ -863,8 +861,8 @@
try
{
- EntityInstanceCache instanceCache =
- (EntityInstanceCache)manager.getContainer().getInstanceCache();
+ EntityCache instanceCache =
+ (EntityCache)manager.getContainer().getInstanceCache();
Invocation invocation = new Invocation();
invocation.setValue(CMRMessage.CMR_MESSAGE_KEY, CMRMessage.GET_RELATED_ID, PayloadKey.AS_IS);
@@ -903,8 +901,8 @@
try
{
- EntityInstanceCache instanceCache =
- (EntityInstanceCache)manager.getContainer().getInstanceCache();
+ EntityCache instanceCache =
+ (EntityCache)manager.getContainer().getInstanceCache();
Invocation invocation = new Invocation();
invocation.setValue(CMRMessage.CMR_MESSAGE_KEY, CMRMessage.ADD_RELATION, PayloadKey.AS_IS);
@@ -945,8 +943,8 @@
try
{
- EntityInstanceCache instanceCache =
- (EntityInstanceCache)manager.getContainer().getInstanceCache();
+ EntityCache instanceCache =
+ (EntityCache)manager.getContainer().getInstanceCache();
Invocation invocation = new Invocation();
invocation.setValue(CMRMessage.CMR_MESSAGE_KEY, CMRMessage.REMOVE_RELATION, PayloadKey.AS_IS);
------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
