Class RDBMSMapQuery
- java.lang.Object
-
- net.ontopia.persistence.query.sql.RDBMSMapQuery
-
- All Implemented Interfaces:
DetachedQueryIF
public class RDBMSMapQuery extends Object implements DetachedQueryIF
INTERNAL: RDBMS query implementation that performs queries that return a map of key-value pairs, ie. an instance of java.util.Map.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanlookup_identitiesprotected SQLStatementIFstm
-
Constructor Summary
Constructors Constructor Description RDBMSMapQuery(SQLStatementIF stm, boolean lookup_identities)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MapcreateMap()ObjectexecuteQuery(Connection conn)INTERNAL: Executes the query without any parameters.ObjectexecuteQuery(Connection conn, Object[] params)INTERNAL: Executes the query with the given parameters.ObjectexecuteQuery(Connection conn, Map params)INTERNAL: Executes the query with the given named parameters.protected ObjectprocessResult(TicketIF ticket, ResultSet rs)
-
-
-
Field Detail
-
stm
protected SQLStatementIF stm
-
lookup_identities
protected boolean lookup_identities
-
-
Constructor Detail
-
RDBMSMapQuery
public RDBMSMapQuery(SQLStatementIF stm, boolean lookup_identities)
-
-
Method Detail
-
createMap
protected Map createMap()
-
executeQuery
public Object executeQuery(Connection conn) throws Exception
Description copied from interface:DetachedQueryIFINTERNAL: Executes the query without any parameters. The query result is returned. The actual type of the query result is specific to the query implementation.- Specified by:
executeQueryin interfaceDetachedQueryIF- Throws:
Exception
-
executeQuery
public Object executeQuery(Connection conn, Object[] params) throws Exception
Description copied from interface:DetachedQueryIFINTERNAL: Executes the query with the given parameters. The query result is returned. The actual type of the query result is specific to the query implementation.- Specified by:
executeQueryin interfaceDetachedQueryIF- Throws:
Exception
-
executeQuery
public Object executeQuery(Connection conn, Map params) throws Exception
Description copied from interface:DetachedQueryIFINTERNAL: Executes the query with the given named parameters. The query result is returned. The actual type of the query result is specific to the query implementation.- Specified by:
executeQueryin interfaceDetachedQueryIF- Throws:
Exception
-
-