|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
DataSourceManager and standard java JDBC api instead.
@Deprecated public interface QueryManagerService
This interface represents query manager services. A query manager service implements generic query execution methods for ease of development only.
Note: TheQueryResult instances that some of this class's methods return
load the complete query result in memory. These methods should thus not be used for queries
that potentially return large result sets because that might cause an
OutOfMemoryException.
| Field Summary | |
|---|---|
static java.lang.String |
MEDIAREPOSITORY_DBID
Deprecated. Identifier to use for accessing the media repository database |
static java.lang.String |
TIMESTAMP_DBID
Deprecated. Identifier to use for accessing the timestamp database |
static java.lang.String |
WEBADMIN_DBID
Deprecated. Identifier to use for accessing the webadmin database |
| Method Summary | |
|---|---|
QueryResult |
callStoredProcedure(javax.sql.DataSource datasource,
java.lang.String procedure,
java.lang.Object[] args)
Deprecated. Because of potential performance and scalability problems it is better to use the standard java JDBC api. |
QueryResult |
executeSelect(javax.sql.DataSource datasource,
java.lang.String statement,
java.lang.Object[] args)
Deprecated. Because of potential performance and scalability problems it is better to use the standard java JDBC api. |
boolean |
executeStoredProcedure(javax.sql.DataSource datasource,
java.lang.String procedure,
java.lang.Object[] args)
Deprecated. Because of potential performance and scalability problems it is better to use the standard java JDBC api. |
int |
executeUpdate(javax.sql.DataSource datasource,
java.lang.String statement,
java.lang.Object[] args)
Deprecated. Because of potential performance and scalability problems it is better to use the standard java JDBC api. |
int |
getAsInt(java.lang.Object object)
Deprecated. Utility method which is not needed when using the standard java JDBC api. |
javax.sql.DataSource |
getDataSourceById(java.lang.String dbId)
Deprecated. Use DataSourceManager.getDataSource(String) instead. |
javax.sql.DataSource |
getDataSourceByName(java.lang.String fullDataSourceName)
Deprecated. Use DataSourceManager.getDataSource(String) instead. |
| Field Detail |
|---|
static final java.lang.String MEDIAREPOSITORY_DBID
static final java.lang.String TIMESTAMP_DBID
static final java.lang.String WEBADMIN_DBID
| Method Detail |
|---|
@Deprecated
javax.sql.DataSource getDataSourceById(java.lang.String dbId)
throws java.sql.SQLException
DataSourceManager.getDataSource(String) instead.
getDataSourceById(QueryManagerService.WEBADMIN_DBID);
dbId - Database id of which the datasource should be retrieved
java.sql.SQLException - in case an error occurred while retrieving the datasource
@Deprecated
javax.sql.DataSource getDataSourceByName(java.lang.String fullDataSourceName)
throws java.sql.SQLException
DataSourceManager.getDataSource(String) instead.
fullDataSourceName - Datasource name of the datasource to retrieve
java.sql.SQLException - in case an error occurred while retrieving the datasource
@Deprecated
QueryResult executeSelect(javax.sql.DataSource datasource,
java.lang.String statement,
java.lang.Object[] args)
throws java.sql.SQLException
datasource - Datasource to execute the query onstatement - Statement to execute. Recommended is to use prepared statements.args - Input arguments of the statement in case of prepared statements.
java.sql.SQLException - If a SQL exception occurred
@Deprecated
int executeUpdate(javax.sql.DataSource datasource,
java.lang.String statement,
java.lang.Object[] args)
throws java.sql.SQLException
datasource - Datasource to execute the stored procedure onprocedure - Stored procedure to execute.args - Input arguments of the stored procedure.
java.sql.SQLException - If a SQL exception occurred
@Deprecated
boolean executeStoredProcedure(javax.sql.DataSource datasource,
java.lang.String procedure,
java.lang.Object[] args)
throws java.sql.SQLException
datasource - Datasource to execute the stored procedure onprocedure - Stored procedure to execute.args - Input arguments of the stored procedure.
java.sql.SQLException - If a SQL exception occurred
@Deprecated
QueryResult callStoredProcedure(javax.sql.DataSource datasource,
java.lang.String procedure,
java.lang.Object[] args)
throws java.sql.SQLException
datasource - Datasource to execute the stored procedure onprocedure - Stored procedure to execute.args - Input arguments of the stored procedure.
java.sql.SQLException - If a SQL exception occurred@Deprecated int getAsInt(java.lang.Object object)
object - Object of the result query to be converted to an Integer
java.lang.IllegalArgumentException - if the object is not an Integer, BigInteger or BigDecimal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||