protected void finalize() {
close(); } in LargeObject.java so that the db resources are released when it is garbage collected or am I missing something? Philip Crotwell
This commit is contained in:
parent
eeaa497e7b
commit
b69370441e
@ -120,7 +120,15 @@ public class LargeObjectManager
|
||||
res.close();
|
||||
DriverManager.println("Large Object initialised");
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Added to free resources during garbage collection,
|
||||
* Philip Crotwell <crotwell@seis.sc.edu>
|
||||
*/
|
||||
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).
|
||||
|
Loading…
x
Reference in New Issue
Block a user