public class PostgresDBOverSSL extends PostgresDB
Support DBvolution at Patreon
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
POSTGRES_DEFAULT_PORT, POSTGRES_DEFAULT_USERNAMEstoredConnection| Modifier | Constructor and Description |
|---|---|
protected |
PostgresDBOverSSL()
Provides a convenient constructor for DBDatabases that have configuration
details hardwired or are able to automatically retrieve the details.
|
|
PostgresDBOverSSL(DataSource ds)
Creates a
DBDatabase instance for the data source. |
|
PostgresDBOverSSL(String hostname,
int port,
String databaseName,
String username,
String password)
Creates a DBDatabase for a PostgreSQL database over SSL.
|
|
PostgresDBOverSSL(String hostname,
int port,
String databaseName,
String username,
String password,
String urlExtras)
Creates a DBDatabase for a PostgreSQL database over SSL.
|
| Modifier and Type | Method and Description |
|---|---|
DBDatabase |
clone()
Clones the DBDatabase.
|
addDatabaseSpecificFeatures, createDatabase, createUser, dropTableNoExceptions, loadFromCSVFileaddFeatureToFixException, batchSQLStatementsWhenPossible, createForeignKeyConstraints, createIndexesOnAllFields, createTable, createTableNoExceptions, createTableNoExceptions, createTablesNoExceptions, createTablesNoExceptions, createTablesWithForeignKeysNoExceptions, createTableWithForeignKeys, delete, delete, discardConnection, doCommit, doReadOnlyTransaction, doRollback, doTransaction, doTransaction, dropAnyAssociatedDatabaseObjects, dropDatabase, dropDatabase, dropTable, equals, executeDBAction, executeDBQuery, get, get, get, get, get, getAllRows, getByExample, getByExample, getByExamples, getConnection, getConnectionFromDriverManager, getDatabaseName, getDBMigration, getDBQuery, getDBQuery, getDBQueryInsert, getDBStatement, getDBTable, getDefinition, getDriverName, getJdbcURL, getLowLevelStatement, getPassword, getRows, getSQLForCreateTable, getSQLForDBQuery, getUsername, hashCode, implement, insert, insert, isPrintSQLBeforeExecuting, preventDroppingOfDatabases, preventDroppingOfTables, print, printSQLIfRequested, removeForeignKeyConstraints, setBatchSQLStatementsWhenPossible, setDatabaseName, setDefinition, setDriverName, setExplicitCommitAction, setJdbcURL, setPassword, setPrintSQLBeforeExecuting, setUsername, supportsPooledConnections, tableExists, test, unusedConnection, update, update, willCreateBlankQuerypublic static final long serialVersionUID
protected PostgresDBOverSSL()
This constructor creates an empty DBDatabase with only the default
settings, in particular with no driver, URL, username, password, or
DBDefinition
Most programmers should not call this constructor directly. Instead you should define a no-parameter constructor that supplies the details for creating an instance using a more complete constructor.
DBDatabase encapsulates the knowledge of the database, in particular the syntax of the database in the DBDefinition and the connection details from a DataSource.
DBDefinitionpublic PostgresDBOverSSL(DataSource ds)
DBDatabase instance for the data source.ds - dspublic PostgresDBOverSSL(String hostname, int port, String databaseName, String username, String password, String urlExtras)
hostname - host namedatabaseName - databaseNameport - portusername - usernamepassword - passwordurlExtras - urlExtraspublic DBDatabase clone() throws CloneNotSupportedException
DBDatabaseSupport DBvolution at Patreon
clone in class PostgresDBCloneNotSupportedException - not likelyCopyright © 2018. All Rights Reserved.