Class PGSimpleDataSource

  • All Implemented Interfaces:
    java.io.Serializable, java.sql.Wrapper, javax.naming.Referenceable, javax.sql.CommonDataSource, javax.sql.DataSource
    Direct Known Subclasses:
    Jdbc3SimpleDataSource, SimpleDataSource

    public class PGSimpleDataSource
    extends BaseDataSource
    implements javax.sql.DataSource, java.io.Serializable
    Simple DataSource which does not perform connection pooling. In order to use the DataSource, you must set the property databaseName. The settings for serverName, portNumber, user, and password are optional. Note: these properties are declared in the superclass.
    Author:
    Aaron Mulder (ammulder@chariotsolutions.com)
    See Also:
    Serialized Form
    • Constructor Detail

      • PGSimpleDataSource

        public PGSimpleDataSource()
    • Method Detail

      • getDescription

        public java.lang.String getDescription()
        Gets a description of this DataSource.
        Specified by:
        getDescription in class BaseDataSource
        Returns:
        description of this DataSource-ish thing
      • isWrapperFor

        public boolean isWrapperFor​(java.lang.Class<?> iface)
                             throws java.sql.SQLException
        Specified by:
        isWrapperFor in interface java.sql.Wrapper
        Throws:
        java.sql.SQLException
      • unwrap

        public <T> T unwrap​(java.lang.Class<T> iface)
                     throws java.sql.SQLException
        Specified by:
        unwrap in interface java.sql.Wrapper
        Throws:
        java.sql.SQLException