Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public class MySqlDatabase
- Object
- Database
- ServerDatabase
- MySqlDatabase
ServerDatabase.Fields
public static final int DEFAULT_PORT = 3306 | The port MySQL or MariaDB 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 = 3306Constructor details
MySqlDatabase
public MySqlDatabase(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
MySqlDatabase
public MySqlDatabase(String host, int port, String database, String user, String password, String sslMode, int timeoutMillis)
throws IOExceptionServerDatabase for sslMode.