Package org.postgresql.ds.common
Class BaseDataSource
java.lang.Object
org.postgresql.ds.common.BaseDataSource
- All Implemented Interfaces:
Referenceable,CommonDataSource
- Direct Known Subclasses:
PGConnectionPoolDataSource,PGPoolingDataSource,PGSimpleDataSource,PGXADataSource
Base class for data sources and related classes.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ReferenceGenerates a reference using the appropriate object factory.booleanintintbooleanbooleanintbooleansee PGProperty#CLEANUP_SAVEPOINTSGets a connection to the PostgreSQL database.getConnection(String user, String password) Gets a connection to the PostgreSQL database.intintintGets the name of the PostgreSQL database, running on the server identified by the serverName property.intabstract StringGets a description of this DataSource-ish thing.booleanbooleanThis is important in pool-by-transaction scenarios in order to make sure that all the statements reaches the same connection that is being initialized.intbooleanintbooleanbooleanDeprecated.Configure via java.util.loggingDeprecated.Configure via java.util.loggingintbooleanbooleanThis implementation don't use a LogWriter.Gets the password to connect with by default.intDeprecated.usegetPortNumbers()int[]Gets the port(s) which the PostgreSQL server is listening on for TCP/IP connections.intintintgetProperty(String name) getProperty(PGProperty property) intbooleanbooleanintintprivate static StringgetReferenceProperty(Reference ref, String propertyName) booleanintDeprecated.usegetServerNames()String[]Gets the name of the host(s) the PostgreSQL database is running on.intbooleangetSsl()