public interface GrailsServiceClass extends InjectableGrailsClass
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALL_DATA_SOURCES |
static java.lang.String |
DATA_SOURCE |
static java.lang.String |
DEFAULT_DATA_SOURCE |
Modifier and Type | Method 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.
|
byName, byType, getAvailable
getClazz, getFullName, getGrailsApplication, getLogicalPropertyName, getMetaClass, getName, getNaturalName, getPackageName, getPropertyName, getPropertyValue, getPropertyValue, getReference, getReferenceInstance, getShortName, hasProperty, isAbstract, newInstance
setGrailsApplication
static final java.lang.String DATA_SOURCE
static final java.lang.String DEFAULT_DATA_SOURCE
static final java.lang.String ALL_DATA_SOURCES
boolean isTransactional()
java.lang.String getDatasource()
boolean usesDatasource(java.lang.String name)
name
- the name