org.codehaus.groovy.grails.commons
Interface GrailsDataSource

All Superinterfaces:
GrailsClass, InjectableGrailsClass

public interface GrailsDataSource
extends InjectableGrailsClass

Represents a data source in Grails.

Since:
Aug 6, 2005
Author:
Steven Devijver

Method Summary
 java.lang.Class getConfigurationClass()
           
 java.lang.String getDbCreate()
          Whether to generate the database with HBM 2 DDL, values can be "create", "create-drop" or "update"
 java.lang.Class getDialect()
          The dialect implementation to use
 java.lang.String getDriverClassName()
          The driver class name for the data source.
 java.util.Properties getOtherProperties()
          Other properties for this data source.
 java.lang.String getPassword()
          The password for the data source.
 java.lang.String getUrl()
          The URL for the data source.
 java.lang.String getUsername()
          The username for the data source.
 boolean isLoggingSql()
          Whether SQL logging is enabled
 boolean isPooled()
          True is connection pooling is enabled.
 
Methods inherited from interface org.codehaus.groovy.grails.commons.InjectableGrailsClass
byName, byType, getAvailable
 
Methods inherited from interface org.codehaus.groovy.grails.commons.GrailsClass
getClazz, getFullName, getLogicalPropertyName, getMetaClass, getName, getNaturalName, getPackageName, getPropertyName, getPropertyValue, getPropertyValue, getReference, getShortName, hasProperty, newInstance
 

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


Copyright (c) 2005-2006 The Grails project