dlr 02/02/21 08:58:19
Modified: src/java/org/apache/torque/adapter DB.java
Log:
Deprecated objectDataNeedsTrans(). Rhys Dixon <[EMAIL PROTECTED]> tells
me that handling of object data no longer needs to be wrapped in a
transaction when the Postgres bytea type is used instead of the oid
hack for the JDBC type VARBINARY. Postgres was the only RDBMS using
the objectDataNeedsTrans() method.
Revision Changes Path
1.18 +4 -1
jakarta-turbine-torque/src/java/org/apache/torque/adapter/DB.java
Index: DB.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/adapter/DB.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -u -r1.17 -r1.18
--- DB.java 24 Nov 2001 17:44:36 -0000 1.17
+++ DB.java 21 Feb 2002 16:58:19 -0000 1.18
@@ -90,7 +90,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Jon S. Stevens</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Brett McLaughlin</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Daniel Rall</a>
- * @version $Id: DB.java,v 1.17 2001/11/24 17:44:36 mpoeschl Exp $
+ * @version $Id: DB.java,v 1.18 2002/02/21 16:58:19 dlr Exp $
*/
public abstract class DB implements Serializable, IDMethod
{
@@ -320,6 +320,9 @@
* return true.
*
* @return True if writing large objects to the DB requires a transaction.
+ * @deprecated The hack involving an oid mapping for VARBINARY
+ * which necessitated use of this method for Postgres has been
+ * obviated by use of the Postgres bytea data type.
*/
public boolean objectDataNeedsTrans()
{
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>