Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public class PostgresDatabase
- Object
- Database
- ServerDatabase
- PostgresDatabase
ServerDatabase.Fields
public static final int DEFAULT_PORT = 5432 | The port PostgreSQL listens on unless configured otherwise. |
Constructors
Inherited fields
Inherited methods
From ServerDatabase
getDialect, beginTransaction, commitTransaction, rollbackTransaction, close, isClosed, execute, execute, execute, executeUpdate, executeQuery, executeQuery, executeQuery
From Database
isCustomPathSupported, isLegacyBehavior, setLegacyBehavior, openOrCreate, exists, delete, isDatabaseBeingDeleted, openDatabaseCount, getDatabasePath, openOrCreate, isEncryptionSupported, isEncrypted, encrypt, decrypt, forgetManagedKey, beforeFirst, count, isBlobQueryParameterSupported, changeKey, wasNull, supportsWasNull, isInTransaction, toPragmaLiteral, noteScriptTransactionControl, hasAttachments, reserveAttachments, reserveAttachments, requireAttachmentsHeld, noteConnectionClosed, noteFirstStatementTransactionControl, noteEngineTransactionState, transactionControlKeyword, beginTransactionMode, requireQueryStatement, normalizeDatabaseKey, normalizeDatabasePathKey, registerOpenDatabase, releaseOpenDatabase, requireSoleConnectionForKeyChange, releaseKeyChangeClaim, checkNoTransactionForKeyChange, supportsNestedTransactions, checkBeginTransaction, checkEndTransaction, markTransactionEnded, abandonFailedCommit, coerceToText
Field details
DEFAULT_PORT
public static final int DEFAULT_PORT = 5432Constructor details
PostgresDatabase
public PostgresDatabase(String host, int port, String database, String user, String password)
throws IOExceptionsslMode=disable): the password and the data cross the
network unencrypted. Connecting, and each wait for the server, may take 30
seconds.Throws
PostgresDatabase
public PostgresDatabase(String host, int port, String database, String user, String password, String sslMode, int timeoutMillis)
throws IOExceptionServerDatabase for sslMode.