public interface SqlContext
Modifier and Type | Method and Description |
---|---|
Sql |
add(Sql sql) |
void |
close()
Closes this SQL context.
|
boolean |
containsQuery(String name) |
String |
getName()
Return context name that belong the statements
|
List<Sql> |
getPackage(String packageName)
Retrieve all queries from package
|
Map<String,List<Sql>> |
getPackageStartWith(String packageName)
Retrieve all packages starting with
packagetName . |
Sql |
getQuery(String name)
Retrieve one query according your name.
|
RepositoryConfig |
getRepositoryConfig() |
SqlDialect |
getSqlDialect() |
void |
setSqlDialect(SqlDialect sqlDialect) |
Sql getQuery(String name)
name
- Name of the query.IllegalArgumentException
- if the parameter name does not refer names of query
configured this exception is thrower.List<Sql> getPackage(String packageName)
packageName
- name of packageMap<String,List<Sql>> getPackageStartWith(String packageName)
packagetName
.packageName
- name of packageboolean containsQuery(String name)
RepositoryConfig getRepositoryConfig()
SqlDialect getSqlDialect()
void setSqlDialect(SqlDialect sqlDialect)
void close()
QueryNotFoundException
is throw.Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.