1 22 package org.jboss.ejb.plugins.cmp.jdbc; 23 24 import org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge; 25 26 27 31 public final class JDBCContext 32 { 33 private final Object [] fieldStates; 34 private JDBCEntityBridge.EntityState entityState; 35 36 public JDBCContext(int jdbcContextSize, JDBCEntityBridge.EntityState entityState) 37 { 38 fieldStates = new Object [jdbcContextSize]; 39 this.entityState = entityState; 40 } 41 42 public Object getFieldState(int index) 43 { 44 return fieldStates[index]; 45 } 46 47 public void setFieldState(int index, Object value) 48 { 49 fieldStates[index] = value; 50 } 51 52 public JDBCEntityBridge.EntityState getEntityState() 53 { 54 return entityState; 55 } 56 } 57 | Popular Tags |