public interface Scope
The scope of the various objects contained in this type (e.g.
configuration()
, settings()
, etc.) are implementation
dependent and will be specified by the concrete subtype of Scope
.
Modifier and Type | Method and Description |
---|---|
Configuration |
configuration()
The configuration of the current scope.
|
Map<Object,Object> |
data()
Get all custom data from this
Scope . |
Object |
data(Object key)
Get some custom data from this
Scope . |
Object |
data(Object key,
Object value)
Set some custom data to this
Scope . |
SQLDialect |
dialect()
The
SQLDialect wrapped by this context. |
SQLDialect |
family()
The
SQLDialect.family() wrapped by this context. |
Settings |
settings()
The settings wrapped by this context.
|
Configuration configuration()
Settings settings()
This method is a convenient way of accessing
configuration().settings()
.
SQLDialect dialect()
SQLDialect
wrapped by this context.
This method is a convenient way of accessing
configuration().dialect()
.
SQLDialect family()
SQLDialect.family()
wrapped by this context.
This method is a convenient way of accessing
configuration().dialect().family()
.
Map<Object,Object> data()
Scope
.
This is custom data that was previously set to the context using
data(Object, Object)
. Use custom data if you want to pass data
to QueryPart
objects for a given Scope
.
null
Object data(Object key)
Scope
.
This is custom data that was previously set to the context using
data(Object, Object)
. Use custom data if you want to pass data
to QueryPart
objects for a given Scope
key
- A key to identify the custom datanull
if no such data is contained
in this Scope
Object data(Object key, Object value)
Scope
.
This is custom data that was previously set to the context using
data(Object, Object)
. Use custom data if you want to pass data
to QueryPart
objects for a given Scope
.
key
- A key to identify the custom datavalue
- The custom datanull
if no data
was previously set for the given keyCopyright © 2015. All Rights Reserved.