close();
}
in LargeObject.java so that the db resources are released when it is
garbage collected or am I missing something?
Philip Crotwell
res.close();
DriverManager.println("Large Object initialised");
}
-
+
+ /*
+ * Added to free resources during garbage collection,
+ * Philip Crotwell
+ */
+ protected void finalize() {
+ close();
+ }
+
/**
* This opens an existing large object, based on its OID. This method
* assumes that READ and WRITE access is required (the default).