public class DefaultGrailsServiceClass extends AbstractInjectableGrailsClass implements GrailsServiceClass
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SERVICE |
ALL_DATA_SOURCES, DATA_SOURCE, DEFAULT_DATA_SOURCE
Constructor and Description |
---|
DefaultGrailsServiceClass(java.lang.Class<?> clazz) |
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, getPropertyDescriptors, getPropertyName, getPropertyType, getPropertyValue, getPropertyValue, getPropertyValueObject, getReference, getReferenceInstance, getShortName, getStaticPropertyValue, hasMetaMethod, hasMetaMethod, hasMetaProperty, hasProperty, isAbstract, isActionMethod, isReadableProperty, newInstance, setGrailsApplication, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
byName, byType, getAvailable
getClazz, getFullName, getGrailsApplication, getLogicalPropertyName, getMetaClass, getName, getNaturalName, getPackageName, getPropertyName, getPropertyValue, getPropertyValue, getReference, getReferenceInstance, getShortName, hasProperty, isAbstract, newInstance
setGrailsApplication
public static final java.lang.String SERVICE
public DefaultGrailsServiceClass(java.lang.Class<?> clazz)
public boolean isTransactional()
GrailsServiceClass
isTransactional
in interface GrailsServiceClass
public java.lang.String getDatasource()
GrailsServiceClass
getDatasource
in interface GrailsServiceClass
public boolean usesDatasource(java.lang.String name)
GrailsServiceClass
usesDatasource
in interface GrailsServiceClass
name
- the name