public interface EnvironmentBuilder
| Modifier and Type | Method and Description |
|---|---|
ORMEnvironment |
build()
Builds the ORMEnvironment.
|
EnvironmentBuilder |
model(Class<?> modelClass,
Connection conn)
Adds a new model class with it SQLEnvironment to this builder.
|
EnvironmentBuilder |
model(Class<?> modelClass,
DataSource ds)
Adds a new model class with it SQLEnvironment to this builder.
|
EnvironmentBuilder |
model(Class<?> modelClass,
SQLEnvironment env)
Adds a new model class with it SQLEnvironment to this builder.
|
EnvironmentBuilder |
model(Class<?> modelClass,
String dsName)
Adds a new model class with it SQLEnvironment to this builder.
|
EnvironmentBuilder model(Class<?> modelClass, SQLEnvironment env)
modelClass - The class of the model.env - The SQLEnvironment for the model class.EnvironmentBuilder model(Class<?> modelClass, DataSource ds) throws SQLException
modelClass - The class of the model.ds - The JDBC data source to use for the model.SQLException - If any SQL exception occurs.EnvironmentBuilder model(Class<?> modelClass, Connection conn) throws SQLException
modelClass - The class of the model.conn - The JDBC connection to use for the model.SQLException - If any SQL exception occurs.EnvironmentBuilder model(Class<?> modelClass, String dsName) throws SQLException
modelClass - The class of the model.dsName - The name for the data source.SQLException - If any SQL exception occurs.ORMEnvironment build()
Copyright © 2015–2018 Bridje Framework. All rights reserved.