[9:14] (extern: com.lehman.aussom.stdlib.AussomJdbc) extends: object
Jdbc class implements functionality for communicating with RDBMS systems using Java JDBC.
setDriver (string Driver
)
Sets the JDBC driver string.
Driver
is a string with the JDBC driver.This
object.setUrl (string Url
)
Sets the DB URL string.
Url
is a string with the DB URL.This
object.setUserName (string UserName
)
Sets the DB user name.
UserName
is the DB user name.This
object.setPassword (string Password
)
Sets the DB password.
Password
is the DB password.This
object.getDriver ()
Gets the JDBC driver string.
A
string with the JDBC driver.getUrl ()
Gets the DB URL.
A
string with the DB URL.getUserName ()
Gets the DB user name.
A
string with the DB user name.getPassword ()
Gets the DB password.
A
string with the DB password.setConnectionInfo (string Driver, string Url, string UserName, string Password
)
Sets all of the JDBC connection info in a single function call.
Driver
is the JDBC driver string.Url
is the JDBC Url.UserName
is a string with the DB user name.Password
is a string with the DB password.select (string Query, list Params
)
Performs a select query with the provided arguments and returns the results. It returns a map with 'cols' and 'rows'.
Query
is a string with the JDBC query.Params
is an optional list with prepared statement arguments.A
map with the query result in 'cols' and 'rows'.update (string Query, list Params
)
Performs an update query with the provided arguments.
Query
is a string with the JDBC query.Params
is an optional list with prepared statement arguments.An
int with the number of rows affected.connect ()
Attempts to connect to the database.
This
object.disconnect ()
Attempts to disconnect from the database.
This
object.