1 22 package org.jboss.ejb.plugins.cmp.jdbc.bridge; 23 24 25 import java.lang.reflect.Field ; 26 import java.sql.PreparedStatement ; 27 import java.sql.ResultSet ; 28 29 import org.jboss.ejb.plugins.cmp.bridge.CMPFieldBridge; 30 import org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager; 31 import org.jboss.ejb.plugins.cmp.jdbc.LockingStrategy; 32 import org.jboss.ejb.EntityEnterpriseContext; 33 34 51 public interface JDBCCMPFieldBridge extends JDBCFieldBridge, CMPFieldBridge 52 { 53 56 int getTableIndex(); 57 58 61 byte getDefaultFlags(); 62 63 67 void addDefaultFlag(byte flag); 68 69 73 Object getLockedValue(EntityEnterpriseContext ctx); 74 75 78 public void lockInstanceValue(EntityEnterpriseContext ctx); 79 80 83 void setLockingStrategy(LockingStrategy lockingStrategy); 84 85 89 public Field getPrimaryKeyField(); 90 91 97 public Object getPrimaryKeyValue(Object primaryKey) 98 throws IllegalArgumentException ; 99 100 103 boolean isRelationTableField(); 104 105 114 public Object setPrimaryKeyValue(Object primaryKey, Object value) 115 throws IllegalArgumentException ; 116 117 121 public int setPrimaryKeyParameters(PreparedStatement ps, int parameterIndex, Object primaryKey) throws IllegalArgumentException ; 122 123 127 public int setArgumentParameters(PreparedStatement ps, int parameterIndex, Object arg); 128 129 132 public int loadPrimaryKeyResults(ResultSet rs, int parameterIndex, Object [] pkRef) throws IllegalArgumentException ; 133 } 134 | Popular Tags |