Represents a connection to an UltraLite database.
public class Connection
All members of Connection class, including all inherited members.
Name | Description |
---|---|
Cancels any pending get-notification calls on all queues matching the given name. | |
Changes the database encryption key to the new specified key. | |
Closes this UltraLite database connection. | |
Commits outstanding changes to the database. | |
Returns the number of rows that need to be uploaded. | |
Creates an event notification queue for this connection. | |
Declares an event which can then be registered for and triggered. | |
Destroys the given event notification queue. | |
Returns the database ID value used for global autoincrement columns. | |
Returns the percentage of available global autoincrement values that have been used. | |
Returns the time of the last download. | |
Returns the @identity value. | |
Creates a new UUID. | |
Reads an event notification. | |
Gets a parameter for the event notification just read by GetNotification(). | |
Creates and returns a reference to the requested table in the database. | |
Binds to an AGDBSet object using the specified table name. | |
Creates a new user or changes the password of an existing one. | |
Checks whether this connection is currently open. | |
Prepares a SQL statement. | |
Registers a queue to receive notifications of an event. | |
Resets the time of the last download of the named publication. | |
Deletes an existing user. | |
Rolls back outstanding changes to the database. | |
Rolls back a partial download. | |
Send a notification to all queues matching the given name. | |
Sets the database ID value to be used for global autoincrement columns. | |
Marks for synchronization all subsequent deletes made by this connection. | |
Prevents delete operations from being synchronized. | |
Synchronizes the database. | |
Synchronizes the database using the specified SyncParms object. | |
Triggers a user-defined event and sends a notification to all registered queues. | |
Validates the database on this connection. | |
Controls whether a commit is performed after each statement (insert, update or delete). | |
Readonly property; Holds the database schema. | |
Readonly property; Returns the parameter string used to open this connection. | |
Controls whether the data synchronization with MobiLink is integrated into the M-Business Anywhere synchronization process. | |
Readonly property; Provides error checking capabilities by returning the SQL code value for the success or failure of a database operation. | |
Readonly property; Holds the synchronization parameter object of the current connection. | |
Readonly property; Holds the synchronization result object of the current connection. |
Connections are instantiated and opened using DatabaseManager.openConnection.
You must open a connection before carrying out any other operation, and you must close the connection after you have finished all operations on the connection and before your application terminates. You must close all tables opened on a connection before closing the connection.
When a JavaScript Error is thrown because of a failed UltraLite database operation, the SQL error code is set on the sqlCode field of the Connection object.
cancelGetNotification method
changeEncryptionKey method
close method
commit method
countUploadRow method
createNotificationQueue method
declareEvent method
destroyNotificationQueue method
getDatabaseID method
getGlobalAutoIncrementUsage method
getLastDownloadTime method
getLastIdentity method
getNewUUID method
getNotification method
getNotificationParameter method
getTable method
getTableAGDBSet method
grantConnectTo method
isOpen method
prepareStatement method
registerForEvent method
resetLastDownloadTime method
revokeConnectFrom method
rollback method
rollbackPartialDownload method
sendNotification method
setDatabaseID method
startSynchronizationDelete method
stopSynchronizationDelete method
synchronize method
synchronizeWithParm method
triggerEvent method
validateDatabase method
autoCommit variable
databaseSchema variable
openParms variable
skipMBASync variable
sqlCode variable
syncParms variable
syncResult variable
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |