Specifications
A disconnected data source can be reconnected by calling
connect().
Switch automatically disconnects a data source when exiting the
entry point in which it was constructed .Still, it is good
programming style to explicitly disconnect all data sources.
Returns true if the data source is currently connected, false
otherwise.
isConnected( ) : Boolean
Statement class
The Statement class provides a context to execute a series of SQL statements on a data source
and retrieve the results. A statement is always associated with a particular data source. By
constructing multiple statements on the same data source, you can access the results of multiple
queries at the same time.
Constructing
Constructs a statement associated with the specified data
source. The data source must be connected; if not the
resulting Statement instance is invalid.
Statement( data-source : DataSource
) : Statement
Getting state information
Returns true if the previous operation returned “SQL_SUCCESS”
or SQL_SUCCESS_WITH_INFO”; false otherwise.
isOK( ) : Boolean
Returns true if the previous operation returned “SQL_SUCCESS”;
false otherwise.
isSuccess( ) : Boolean
Returns true if the previous operation returned
“SQL_SUCCESS_WITH_INFO”; false otherwise.
isSuccessWithInfo( ) : Boolean
Returns the native (system- or driver-specific) ODBC error or
information code generated by the previous operation, or zero
if there was no such code.
getCode( ) : Number
Returns the human-readable ODBC error or information message
generated by the previous operation, or the empty string if there
was no such message.
getMessage( ) : String
The message is formatted to already include the SQL state and
the native code.
Returns true if the associated data source is connected, false
otherwise.
isValid( ) : Boolean
441
Enfocus Switch 10