net.ontopia.persistence.query.sql
Class RDBMSMapQuery

java.lang.Object
  extended by net.ontopia.persistence.query.sql.RDBMSMapQuery
All Implemented Interfaces:
DetachedQueryIF

public class RDBMSMapQuery
extends java.lang.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
protected  boolean lookup_identities
           
protected  SQLStatementIF stm
           
 
Constructor Summary
RDBMSMapQuery(SQLStatementIF stm, boolean lookup_identities)
           
 
Method Summary
protected  java.util.Map createMap()
           
 java.lang.Object executeQuery(java.sql.Connection conn)
          INTERNAL: Executes the query without any parameters.
 java.lang.Object executeQuery(java.sql.Connection conn, java.util.Map params)
          INTERNAL: Executes the query with the given named parameters.
 java.lang.Object executeQuery(java.sql.Connection conn, java.lang.Object[] params)
          INTERNAL: Executes the query with the given parameters.
protected  java.lang.Object processResult(TicketIF ticket, java.sql.ResultSet rs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 java.util.Map createMap()

executeQuery

public java.lang.Object executeQuery(java.sql.Connection conn)
                              throws java.lang.Exception
Description copied from interface: DetachedQueryIF
INTERNAL: 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:
executeQuery in interface DetachedQueryIF
Throws:
java.lang.Exception

executeQuery

public java.lang.Object executeQuery(java.sql.Connection conn,
                                     java.lang.Object[] params)
                              throws java.lang.Exception
Description copied from interface: DetachedQueryIF
INTERNAL: 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:
executeQuery in interface DetachedQueryIF
Throws:
java.lang.Exception

executeQuery

public java.lang.Object executeQuery(java.sql.Connection conn,
                                     java.util.Map params)
                              throws java.lang.Exception
Description copied from interface: DetachedQueryIF
INTERNAL: 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:
executeQuery in interface DetachedQueryIF
Throws:
java.lang.Exception

processResult

protected java.lang.Object processResult(TicketIF ticket,
                                         java.sql.ResultSet rs)
                                  throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2000-2012 Ontopia.