|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ge.grc.acuity.scriptprocessing.DataSource
com.ge.grc.acuity.scriptprocessing.RelationalDataSource
Class to obtain data from a relational data source. The constructor establishes the connection to the data source. Methods return data as CachedRowSets from SQL queries or as a List of output parameters from a Stored Procedure call.
| Field Summary |
| Fields inherited from class com.ge.grc.acuity.scriptprocessing.DataSource |
ac |
| Constructor Summary | |
RelationalDataSource(AcuityController _ac)
Constructor for class. |
|
| Method Summary | |
java.lang.Object |
executeStoredProcedure(com.hp.hpl.jena.ontology.Individual storedProcedureInstance,
java.util.List filters)
Call this method to execute a relational database stored procedure. |
java.lang.Object |
executeStoredProcedure(java.lang.String callableStmt,
java.util.List filters)
|
void |
finalize()
|
sun.jdbc.rowset.CachedRowSet |
getCachedRowSet(java.lang.String sqlStmt,
int maxRows)
This method is called to retrieve the results of an SQL query against the identified database. |
static java.lang.Object |
getCachedRowSetColumnValue(sun.jdbc.rowset.CachedRowSet crs,
int colIdx,
int colType)
Method to get the value of an index-specified (1-based) field from the current row of a CachedRowSet. |
int[] |
getCachedRowSetRowsFromFilter(com.hp.hpl.jena.ontology.Individual f)
|
protected java.lang.String[] |
getRemoteInstancesQueryInfo(com.hp.hpl.jena.rdf.model.RDFNode dbClassInstDesc)
Method to return the information associated with a remote relational DB instance (instance of DBInstancesDescriptor). |
protected java.lang.String[] |
getRemoteStatementsQueryInfo(com.hp.hpl.jena.rdf.model.RDFNode dbStmtDesc)
Method to return the information associated with a remote relational DB statement (instance of DBStatementsDescriptor). |
java.lang.Object |
processDBInstanceDescriptor(java.util.ArrayList individuals,
com.hp.hpl.jena.ontology.Individual inst,
com.hp.hpl.jena.rdf.model.RDFNode dbDesc)
|
java.lang.Object |
processDBStatementDescriptor(java.util.ArrayList list,
com.hp.hpl.jena.ontology.Individual inst,
java.lang.String s,
java.lang.String p,
com.hp.hpl.jena.rdf.model.RDFNode dbDesc)
|
java.lang.Object |
processSQLStatement(com.hp.hpl.jena.ontology.Individual script)
Call this method to process an Individual of type SQLStatement. |
java.lang.Object |
processSQLStatement(com.hp.hpl.jena.ontology.Individual script,
java.util.List filters)
|
void |
releaseConnection()
|
static java.util.List[] |
resultSetToListArray(java.sql.ResultSet rs)
|
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RelationalDataSource(AcuityController _ac)
throws AcuityException,
java.sql.SQLException
_ac -
AcuityException
java.sql.SQLException| Method Detail |
public void finalize()
public void releaseConnection()
public java.lang.Object processDBInstanceDescriptor(java.util.ArrayList individuals,
com.hp.hpl.jena.ontology.Individual inst,
com.hp.hpl.jena.rdf.model.RDFNode dbDesc)
throws AcuityException
AcuityException
public java.lang.Object processDBStatementDescriptor(java.util.ArrayList list,
com.hp.hpl.jena.ontology.Individual inst,
java.lang.String s,
java.lang.String p,
com.hp.hpl.jena.rdf.model.RDFNode dbDesc)
throws AcuityException
AcuityException
public java.lang.Object processSQLStatement(com.hp.hpl.jena.ontology.Individual script,
java.util.List filters)
throws java.sql.SQLException,
AcuityException
java.sql.SQLException
AcuityException
public java.lang.Object processSQLStatement(com.hp.hpl.jena.ontology.Individual script)
throws java.sql.SQLException,
AcuityException
script -
java.sql.SQLException
AcuityException
public java.lang.Object executeStoredProcedure(com.hp.hpl.jena.ontology.Individual storedProcedureInstance,
java.util.List filters)
throws AcuityException,
java.sql.SQLException
storedProcedureInstance - - the Individual in the model representing the stored procedurefilters - - the filters associated with the stored procedure
AcuityException
java.sql.SQLException
public java.lang.Object executeStoredProcedure(java.lang.String callableStmt,
java.util.List filters)
throws AcuityException,
java.sql.SQLException
AcuityException
java.sql.SQLException
public static java.util.List[] resultSetToListArray(java.sql.ResultSet rs)
throws AcuityException
AcuityException
public sun.jdbc.rowset.CachedRowSet getCachedRowSet(java.lang.String sqlStmt,
int maxRows)
throws java.sql.SQLException,
AcuityException
sqlStmt - - the SQL query string used to extract data from the DB
java.sql.SQLException - -
AcuityException - -
public int[] getCachedRowSetRowsFromFilter(com.hp.hpl.jena.ontology.Individual f)
throws AcuityException
f -
AcuityException
public static java.lang.Object getCachedRowSetColumnValue(sun.jdbc.rowset.CachedRowSet crs,
int colIdx,
int colType)
throws java.sql.SQLException,
AcuityException
crs - - the CachedRowSet with the correct current rowcolIdx - - the integer (1-based) column for which the value is desiredcolType - - the java.sql.Types integer indicating the data type of the column
AcuityException
java.sql.SQLException
protected java.lang.String[] getRemoteInstancesQueryInfo(com.hp.hpl.jena.rdf.model.RDFNode dbClassInstDesc)
throws AcuityException
dbClassInstDesc - - the RDFNode which is the DBInstancesDescriptor serving as a pseudo-instance for remote DB instances
AcuityException - -
protected java.lang.String[] getRemoteStatementsQueryInfo(com.hp.hpl.jena.rdf.model.RDFNode dbStmtDesc)
throws AcuityException
dbStmtDesc - - the RDFNode which is the DBStatementsDescriptor serving as a pseudo-instance for remote DB Statements
AcuityException - -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||