|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvelosurf.sql.Pooled
public abstract class Pooled
this abstract class represents a pooled object.
It has two booleans : inUse and useOver (understand : usageOver).
The cycle of those two booleans is the following :
states (inUse - useOver) : (false-false) -> (true-false) -> (true-true) -> [delay] (false-false)
| Field Summary | |
|---|---|
protected boolean |
inUse
is this object in use ? |
protected long |
tagTime
time tag |
protected boolean |
useOver
is the usage of this object over ? |
protected boolean |
valid
valid statement ? |
| Constructor Summary | |
|---|---|
Pooled()
builds a new pooled object |
|
| Method Summary | |
|---|---|
abstract void |
close()
close this pooled object |
abstract ConnectionWrapper |
getConnection()
get the connection used by this statement |
long |
getTagTime()
get the time tag of this pooled object |
boolean |
isInUse()
checks whether this pooled object is in use |
boolean |
isValid()
checks whether this pooled object is marked as valid or invalid (used in the recovery process) |
void |
notifyInUse()
notify this object that it is in use |
void |
notifyOver()
notify this object that it is no more in use |
void |
resetTagTime()
reset the time tag |
void |
setInvalid()
definitely mark this statement as meant to be deleted |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected long tagTime
protected boolean valid
protected boolean inUse
protected boolean useOver
| Constructor Detail |
|---|
public Pooled()
| Method Detail |
|---|
public long getTagTime()
public void resetTagTime()
public void notifyInUse()
public void notifyOver()
public boolean isInUse()
public boolean isValid()
public void setInvalid()
public abstract ConnectionWrapper getConnection()
public abstract void close()
throws java.sql.SQLException
java.sql.SQLException - when thrown by the database engine
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||