public class DbOom
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DbOom.Builder |
Constructor and Description |
---|
DbOom(ConnectionProvider connectionProvider,
DbSessionProvider dbSessionProvider,
QueryMap queryMap)
Creates new DbOom.
|
Modifier and Type | Method and Description |
---|---|
DbOomConfig |
config()
Returns DbOom configuration.
|
DbOom |
connect()
Initializes the DbOom by connecting to the database.
|
ConnectionProvider |
connectionProvider()
Returns connection provider.
|
static DbOom.Builder |
create()
Creates a new DbOom builder.
|
DbEntitySql |
entities()
Returns Entity SQL factory.
|
DbEntityManager |
entityManager()
Returns DbOoom entity manager.
|
static DbOom |
get()
Returns default DbOom instance.
|
DbOomQuery |
query(DbSqlGenerator sql)
Creates a query from a sql generator.
|
DbOomQuery |
query(java.lang.String sql)
Creates a query.
|
DbQueryConfig |
queryConfig()
Returns default query configuration.
|
QueryMap |
queryMap()
Returns a query map.
|
DbSessionProvider |
sessionProvider()
Returns DbSession provider.
|
void |
shutdown()
Closes the DbOom.
|
DbSqlBuilder |
sql()
Creates new empty T-SQL builder.
|
DbSqlBuilder |
sql(java.lang.String sql)
Creates new T-SQL builder.
|
public DbOom(ConnectionProvider connectionProvider, DbSessionProvider dbSessionProvider, QueryMap queryMap)
public static DbOom get()
public static DbOom.Builder create()
public DbOom connect()
public void shutdown()
public DbOomConfig config()
public DbQueryConfig queryConfig()
public DbEntityManager entityManager()
public DbSessionProvider sessionProvider()
public ConnectionProvider connectionProvider()
public QueryMap queryMap()
public DbEntitySql entities()
public DbSqlBuilder sql(java.lang.String sql)
public DbSqlBuilder sql()
public DbOomQuery query(java.lang.String sql)
public DbOomQuery query(DbSqlGenerator sql)
Copyright © 2003-present Jodd Team