Modifiers | Name | Description |
---|---|---|
java.lang.String |
ALL_DATA_SOURCES |
|
java.lang.String |
DATA_SOURCE |
|
java.lang.String |
DEFAULT_DATA_SOURCE |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.String |
getDatasource() Get the datasource name that this service class works with. |
|
boolean |
isTransactional() Service should be configured with transaction demarcation. |
|
boolean |
usesDatasource(java.lang.String name) Check if the service class can use the named DataSource. |
Methods inherited from class | Name |
---|---|
interface InjectableGrailsClass |
byName, byType, getAvailable |
interface GrailsClass |
getApplication, getClazz, getFullName, getLogicalPropertyName, getMetaClass, getName, getNaturalName, getPackageName, getPluginName, getPropertyName, getPropertyValue, getPropertyValue, getReferenceInstance, getShortName, hasProperty, isAbstract, newInstance |
interface GrailsApplicationAware |
setGrailsApplication |
Get the datasource name that this service class works with.
Service should be configured with transaction demarcation.
Check if the service class can use the named DataSource.
name
- the name