Package sc.db

Class DBDataSource


  • public class DBDataSource
    extends java.lang.Object
    Used for defining data sources in the layer definition file, as well as for data source config at runtime if necessary.
    • Field Detail

      • provider

        public java.lang.String provider
      • jndiName

        public java.lang.String jndiName
      • dbName

        public java.lang.String dbName
      • userName

        public java.lang.String userName
      • password

        public java.lang.String password
      • serverName

        public java.lang.String serverName
      • port

        public int port
      • readOnly

        public boolean readOnly
      • dbDisabled

        public boolean dbDisabled
      • makeDefaultDataSource

        public boolean makeDefaultDataSource
        A layer will by default use the first data source it defines as it's defaultDataSource. Types that don't specify an explicit dataSource name use the default for the layer they are defined in. Set this to false for data sources that have a specific use and are only used by types that refer to them explicitly.
      • dataSource

        public javax.sql.DataSource dataSource
    • Constructor Detail

      • DBDataSource

        public DBDataSource()
    • Method Detail

      • getDataSource

        public javax.sql.DataSource getDataSource()
      • getSchemaReady

        public boolean getSchemaReady()
      • setSchemaReady

        public void setSchemaReady​(boolean val)
      • waitForReady

        public void waitForReady()
      • runWhenReady

        public void runWhenReady​(java.lang.Runnable r)
      • toDataSourceString

        public java.lang.String toDataSourceString​(java.lang.String defaultProvider)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object