public final class LocalEntityConnections
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static LocalEntityConnection |
createConnection(Domain domain,
Database database,
java.sql.Connection connection)
Constructs a new EntityConnection instance
|
static LocalEntityConnection |
createConnection(Domain domain,
Database database,
User user)
Constructs a new EntityConnection instance
|
static MethodLogger |
createLogger(Domain domain) |
public static LocalEntityConnection createConnection(Domain domain, Database database, User user) throws DatabaseException
domain
- the domain modeldatabase
- the Database instanceuser
- the user used for connecting to the databaseDatabaseException
- in case there is a problem connecting to the databaseAuthenticationException
- in case of an authentication errorpublic static LocalEntityConnection createConnection(Domain domain, Database database, java.sql.Connection connection) throws DatabaseException
domain
- the domain modeldatabase
- the Database instanceconnection
- the connection object to base the entity connection on, it is assumed to be in a valid statejava.lang.IllegalArgumentException
- in case the given connection is invalid or disconnectedDatabaseException
- in case a validation statement is required but could not be createdDatabase.supportsIsValid()
public static MethodLogger createLogger(Domain domain)
domain
- the domain modelMethodLogger
implementation tailored for LocalEntityConnections