1 22 package org.jboss.ejb.plugins.cmp.jdbc.bridge; 23 24 25 import org.jboss.deployment.DeploymentException; 26 import org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager; 27 import org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCCMPFieldMetaData; 28 29 35 public abstract class JDBCCMP2xVersionFieldBridge extends JDBCCMP2xAutoUpdatedFieldBridge 36 { 37 39 public JDBCCMP2xVersionFieldBridge(JDBCStoreManager manager, 40 JDBCCMPFieldMetaData metadata) 41 throws DeploymentException 42 { 43 super(manager, metadata); 44 defaultFlags |= JDBCEntityBridge.ADD_TO_WHERE_ON_UPDATE; 45 } 46 47 public JDBCCMP2xVersionFieldBridge(JDBCCMP2xFieldBridge cmpField) 48 throws DeploymentException 49 { 50 super(cmpField); 51 defaultFlags |= JDBCEntityBridge.ADD_TO_WHERE_ON_UPDATE; 52 cmpField.addDefaultFlag(JDBCEntityBridge.ADD_TO_WHERE_ON_UPDATE); 53 } 54 } 55 | Popular Tags |