|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hardcode.gdbms.engine.data.OpenCloseCounter
public class OpenCloseCounter
Used to keep a DataSource from being closed to many times
| Constructor Summary | |
|---|---|
OpenCloseCounter(DataSource ds)
|
|
| Method Summary | |
|---|---|
boolean |
isOpen()
Returns true if the datasource is opened and false if it's closed |
boolean |
start()
Returns true if the DataSource has to open the driver or it's already opened |
boolean |
stop()
Returns true if the DataSource has to close the driver or must be kept open until, at least, next call to close. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OpenCloseCounter(DataSource ds)
| Method Detail |
|---|
public boolean start()
public boolean stop()
public boolean isOpen()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||