|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmaito.browsing.DatabaseManager
public class DatabaseManager
A class that takes care of all database related operations for the class maito.browsing.ResourceBrowser
Constructor Summary | |
---|---|
protected |
DatabaseManager()
Creates a new DatabaseManager object. |
Method Summary | |
---|---|
protected void |
executeLatestQuery()
|
protected void |
executeSQL(java.lang.String sql,
java.lang.String graph)
Executes an SQL query in the database. |
protected java.lang.String[] |
getGraphs()
Returns all available resource graphs (database names). |
protected ResourceRelation[] |
getRelations(Resource resource)
Fetches all relations for a single resource. |
protected Resource |
nextResource()
Fetches the next resource produced by the latest query (by the method executeSQL()). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DatabaseManager() throws java.sql.SQLException
java.sql.SQLException
- Thrown when initialization of the database connection failsMethod Detail |
---|
protected void executeSQL(java.lang.String sql, java.lang.String graph) throws java.sql.SQLException
sql
- The whole query.database
- The name of the database where the query is executed in.
java.sql.SQLException
protected void executeLatestQuery() throws java.sql.SQLException
java.sql.SQLException
protected Resource nextResource() throws java.sql.SQLException
java.sql.SQLException
protected java.lang.String[] getGraphs()
protected ResourceRelation[] getRelations(Resource resource) throws java.sql.SQLException
resource
-
java.sql.SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |