|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmaito.resource.ResourceLoader
public class ResourceLoader
This class acts as a buffered stream for reading Resource objects from the database.
| Constructor Summary | |
|---|---|
ResourceLoader(java.sql.Connection con)
|
|
| Method Summary | |
|---|---|
void |
executeSQL(java.lang.String sql)
Executes a query in the database. |
Resource |
nextResource()
Fetches the next resource produced by the latest query. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceLoader(java.sql.Connection con)
| Method Detail |
|---|
public void executeSQL(java.lang.String sql)
throws java.sql.SQLException
sql - The sql to be executed. It is executed as it is, so any validation on the query
should be done outside this method.
java.sql.SQLException - Thrown when the executed query produces an error.
public Resource nextResource()
throws java.sql.SQLException
java.sql.SQLException - Thrown if reading the database produces errors.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||