Package grails.core

Interface GrailsDataSource

    • 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