|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.database.ReleasableStatementContainer
public class ReleasableStatementContainer
A container for database statement objects that must be freed. This implementation simplifies the management of many statements that must be released as a group.
Constructor Summary | |
---|---|
ReleasableStatementContainer()
Creates a new instance. |
Method Summary | ||
---|---|---|
|
add(T statement)
Adds a new object to be managed. |
|
void |
clear()
Removes all objects. |
|
void |
release()
Performs resource cleanup tasks such as closing files, or database connections. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReleasableStatementContainer()
Method Detail |
---|
public <T extends java.sql.Statement> T add(T statement)
T
- The type of statement being stored.statement
- The statement to be stored.
public void clear()
public void release()
release
in interface Releasable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |