public class MySQLRandom
extends java.lang.Object
| Constructor | Description |
|---|---|
MySQLRandom(MySQLSession session,
java.lang.String isfName) |
Sets a connection to the database.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.sql.ResultSet |
getCursor(java.lang.String query) |
Returns a cursor into the data selected by the "query" param.
|
public MySQLRandom(MySQLSession session, java.lang.String isfName) throws java.sql.SQLException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
session - isfName - java.lang.ClassNotFoundException - if Class.forName operation failesjava.sql.SQLException - when the database operation failesjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.lang.ClassNotFoundExceptionpublic java.sql.ResultSet getCursor(java.lang.String query)
throws java.sql.SQLException
query - an SQL query to be executedjava.sql.SQLException - when the database operation failes