User: dsundstrom
Date: 02/01/15 12:50:30
Modified: src/main/org/jboss/ejb/plugins/cmp/jdbc/bridge
JDBCCMPFieldBridge.java
Log:
Removed methods that were moved to JDBCFieldBridge.
Revision Changes Path
1.9 +28 -34
jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/bridge/JDBCCMPFieldBridge.java
Index: JDBCCMPFieldBridge.java
===================================================================
RCS file:
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/bridge/JDBCCMPFieldBridge.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- JDBCCMPFieldBridge.java 2001/11/24 22:31:10 1.8
+++ JDBCCMPFieldBridge.java 2002/01/15 20:50:30 1.9
@@ -11,12 +11,8 @@
import java.sql.PreparedStatement;
import java.sql.ResultSet;
-
import org.jboss.ejb.EntityEnterpriseContext;
-
import org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCCMPFieldMetaData;
-
-import org.jboss.ejb.plugins.cmp.bridge.CMPFieldBridge;
import org.jboss.ejb.plugins.cmp.jdbc.JDBCType;
@@ -33,36 +29,43 @@
* One for each entity bean cmp field.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Dain Sundstrom</a>
- * @version $Revision: 1.8 $
+ * @version $Revision: 1.9 $
*/
-public interface JDBCCMPFieldBridge extends CMPFieldBridge {
+public interface JDBCCMPFieldBridge
+ extends JDBCFieldBridge {
/**
- * Get metadata for the field.
+ * Gets the java class type of the field.
+ * @return the java class type of this field
*/
- public JDBCCMPFieldMetaData getMetaData();
+ public Class getFieldType();
- /**
- * Has current data read timed out?
- */
- public boolean isReadTimedOut(EntityEnterpriseContext ctx);
-
- /**
- * Resets any persistence data maintained in the context.
- */
- public void resetPersistenceContext(EntityEnterpriseContext ctx);
-
/**
- * Gets the JDBC type of this field.
+ * Get metadata for the field.
*/
- public JDBCType getJDBCType();
+ public JDBCCMPFieldMetaData getMetaData();
/**
- * Sets the prepared statement parameters with the data from the
- * instance associated with the context.
+ * Gets the value of this field in the specified primaryKey object.
+ * @param primaryKey the primary key object from which this fields value
+ * will be extracted
+ * @return the value of this field in the primaryKey object
+ */
+ public Object getPrimaryKeyValue(Object primaryKey)
+ throws IllegalArgumentException;
+
+ /**
+ * Sets the value of this field to the specified value in the
+ * specified primaryKey object.
+ * @param primaryKey the primary key object which the value
+ * will be inserted
+ * @param value the value for field that will be set in the pk
+ * @return the updated primary key object; the actual object may
+ * change not just the value
*/
- public int setInstanceParameters(PreparedStatement ps, int parameterIndex,
EntityEnterpriseContext ctx);
-
+ public Object setPrimaryKeyValue(Object primaryKey, Object value)
+ throws IllegalArgumentException;
+
/**
* Sets the prepared statement parameters with the data from the
* primary key.
@@ -76,17 +79,8 @@
public int setArgumentParameters(PreparedStatement ps, int parameterIndex,
Object arg);
/**
- * Loads the data from result set into the instance associated with the context.
- */
- public int loadInstanceResults(ResultSet rs, int parameterIndex,
EntityEnterpriseContext ctx);
-
- /**
* Loads the data from result set into the primary key object.
*/
public int loadPrimaryKeyResults(ResultSet rs, int parameterIndex, Object[]
pkRef) throws IllegalArgumentException;
- /**
- * Loads the value of this cmp field from result set into argument referance.
- */
- public int loadArgumentResults(ResultSet rs, int parameterIndex, Object[]
argumentRef) throws IllegalArgumentException;
-}
\ No newline at end of file
+}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development