Package grails.core
Interface GrailsDataSource
-
- All Superinterfaces:
org.springframework.beans.factory.Aware,GrailsApplicationAware,GrailsClass,InjectableGrailsClass
public interface GrailsDataSource extends InjectableGrailsClass
Represents a data source in Grails.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ClassgetConfigurationClass()java.lang.StringgetDbCreate()Whether to generate the database with HBM 2 DDL, values can be "create", "create-drop" or "update".java.lang.ClassgetDialect()The dialect implementation to use.java.lang.StringgetDriverClassName()The driver class name for the data source.java.util.PropertiesgetOtherProperties()Other properties for this data source.java.lang.StringgetPassword()The password for the data source.java.lang.StringgetUrl()The URL for the data source.java.lang.StringgetUsername()The username for the data source.booleanisLoggingSql()Whether SQL logging is enabledbooleanisPooled()True is connection pooling is enabled.-
Methods inherited from interface grails.core.support.GrailsApplicationAware
setGrailsApplication
-
Methods inherited from interface grails.core.GrailsClass
getApplication, getClazz, getFullName, getLogicalPropertyName, getMetaClass, getName, getNaturalName, getPackageName, getPluginName, getPropertyName, getPropertyValue, getPropertyValue, getReferenceInstance, getShortName, hasProperty, isAbstract, newInstance
-
Methods inherited from interface grails.core.InjectableGrailsClass
byName, byType, getAvailable
-
-
-
-
Method Detail
-
isPooled
boolean isPooled()
True is connection pooling is enabled.- Returns:
- connection pooling enabled
-
getDriverClassName
java.lang.String getDriverClassName()
The driver class name for the data source.- Returns:
- driver class name
-
getUrl
java.lang.String getUrl()
The URL for the data source.- Returns:
- URL
-
getUsername
java.lang.String getUsername()
The username for the data source.- Returns:
- username
-
getPassword
java.lang.String getPassword()
The password for the data source.- Returns:
- password
-
getOtherProperties
java.util.Properties getOtherProperties()
Other properties for this data source.- Returns:
- other properties
-
getDbCreate
java.lang.String getDbCreate()
Whether to generate the database with HBM 2 DDL, values can be "create", "create-drop" or "update".- Returns:
- The dbCreate method to use
-
getConfigurationClass
java.lang.Class getConfigurationClass()
- Returns:
- The configuration class to use when setting up the database.
-
getDialect
java.lang.Class getDialect()
The dialect implementation to use.- Returns:
- The dialect class or null if none configured
-
isLoggingSql
boolean isLoggingSql()
Whether SQL logging is enabled- Returns:
- true if SQL logging is enabled
-
-