|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jminor.framework.db.provider.AbstractEntityConnectionProvider
public abstract class AbstractEntityConnectionProvider
An abstract EntityConnectionProvider implementation.
Constructor Summary | |
---|---|
AbstractEntityConnectionProvider(User user)
Instantiates a new AbstractEntityConnectionProvider. |
Method Summary | |
---|---|
protected abstract EntityConnection |
connect()
|
StateObserver |
getConnectedState()
|
EntityConnection |
getConnection()
Provides a EntityConnection object, is responsible for returning a healthy EntityConnection object, that is, it must reconnect an invalid connection whether remotely or locally |
protected EntityConnection |
getConnectionInternal()
|
User |
getUser()
|
boolean |
isConnected()
|
protected abstract boolean |
isConnectionValid()
|
protected void |
setConnection(EntityConnection entityConnection)
|
void |
setUser(User user)
Sets the user for this db provider, this invalidates and disconnects the previous connection if any. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jminor.framework.db.provider.EntityConnectionProvider |
---|
disconnect, getDescription |
Constructor Detail |
---|
public AbstractEntityConnectionProvider(User user)
user
- the user to base the db provider onMethod Detail |
---|
public final User getUser()
getUser
in interface EntityConnectionProvider
public final void setUser(User user)
setUser
in interface EntityConnectionProvider
user
- the userpublic final boolean isConnected()
isConnected
in interface EntityConnectionProvider
public final StateObserver getConnectedState()
getConnectedState
in interface EntityConnectionProvider
public final EntityConnection getConnection()
getConnection
in interface EntityConnectionProvider
protected abstract boolean isConnectionValid()
protected abstract EntityConnection connect()
protected final EntityConnection getConnectionInternal()
protected final void setConnection(EntityConnection entityConnection)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |