org.aksw.commons.sparql.api.cache.extra
Class SqlDaoBase
java.lang.Object
org.aksw.commons.sparql.api.cache.extra.SqlDaoBase
- All Implemented Interfaces:
- SqlDao
- Direct Known Subclasses:
- CacheCoreH2
public class SqlDaoBase
- extends Object
- implements SqlDao
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
conn
protected Connection conn
queryToStmt
protected Map<Object,PreparedStatement> queryToStmt
idToQuery
protected Map<Object,String> idToQuery
SqlDaoBase
protected SqlDaoBase()
SqlDaoBase
protected SqlDaoBase(Collection<? extends QueryString> queries)
setPreparedStatement
protected void setPreparedStatement(Object id,
String query)
setConnection
public void setConnection(Connection conn)
throws SQLException
- Description copied from interface:
SqlDao
- Retrieve the JDBC connection object that is currently associated with
this DAO.
- Specified by:
setConnection in interface SqlDao
- Throws:
SQLException
execute
public <T> T execute(Object id,
Class<T> clazz,
Object... args)
throws SQLException
- Throws:
SQLException
executeList
public <T> List<T> executeList(Object id,
Class<T> clazz,
Object... args)
throws SQLException
- Throws:
SQLException
executeQuery
public ResultSet executeQuery(Object id,
Object... args)
throws SQLException
- Throws:
SQLException
getConnection
public Connection getConnection()
- Description copied from interface:
SqlDao
- Set the JDBC connection object to be used by the DAO.
- Specified by:
getConnection in interface SqlDao
Copyright © 2011. All Rights Reserved.