public interface PooledObject
Interface for objects that are pooled and reused.
- Author:
- Thomas Hallgren
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
The activate method is called when the instance is activated from its "passive" state.void
The passivate method is called before the instance enters the "passive" state.void
remove()
PLJava invokes this method before it ends the life of the pooled object.
-
Method Details
-
activate
The activate method is called when the instance is activated from its "passive" state.- Throws:
SQLException
- if something goes wrong with the activation. When this happens, a call will be issued toremove()
and the object will no longer be part of the pool.
-
passivate
The passivate method is called before the instance enters the "passive" state.- Throws:
SQLException
- if something goes wrong with the passivation. When this happens, a call will be issued toremove()
and the object will no longer be part of the pool.
-
remove
void remove()PLJava invokes this method before it ends the life of the pooled object.
-