|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jminor.framework.db.EntityConnections
public final class EntityConnections
A factory class providing EntityConnection instances.
Method Summary | |
---|---|
static EntityConnection |
createConnection(Connection connection,
Database database,
User user)
Constructs a new EntityConnection instance |
static EntityConnection |
createConnection(Database database,
User user)
Constructs a new EntityConnection instance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static EntityConnection createConnection(Database database, User user) throws SQLException, ClassNotFoundException
database
- the Database instanceuser
- the user used for connecting to the database
SQLException
- in case there is a problem connecting to the database
ClassNotFoundException
- in case the JDBC driver class is not foundpublic static EntityConnection createConnection(Connection connection, Database database, User user) throws SQLException
connection
- the connection object to base the entity connection ondatabase
- the Database instanceuser
- the user used for connecting to the database
SQLException
- in case there is a problem connecting to the database
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |