Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.ejb
Interface Query

All Superinterfaces:
QueryProperties

public interface Query
extends QueryProperties

Field Summary

 

Fields inherited from interface weblogic.ejb.QueryProperties
TX_MANDATORY, TX_REQUIRED, TX_REQUIRES_NEW

 

Method Summary
abstract  ResultSet execute(String query)
          Executes the specified query.
abstract  ResultSet execute(String query, Properties props)
          Executes the specified query.
abstract  Collection find(String query)
          Executes the specified query.
abstract  Collection find(String query, Properties props)
          Executes the specified query.
abstract  String getLanguage()
          This method can be called to find out what query language this Query instance is using.

 

Methods inherited from interface weblogic.ejb.QueryProperties
getEnableQueryCaching, getIncludeUpdates, getMaxElements, getTransaction, isResultTypeRemote, setEnableQueryCaching, setIncludeUpdates, setMaxElements, setResultTypeRemote, setTransaction

 

Method Detail

find

Collection find(String query)
                throws FinderException
Executes the specified query.
Throws:
FinderException

find

Collection find(String query,
                Properties props)
                throws FinderException
Executes the specified query.
Throws:
FinderException

execute

ResultSet execute(String query)
                  throws FinderException
Executes the specified query.
Throws:
FinderException

execute

ResultSet execute(String query,
                  Properties props)
                  throws FinderException
Executes the specified query.
Throws:
FinderException

getLanguage

String getLanguage()
This method can be called to find out what query language this Query instance is using.
Returns:
the query language in use: 'SQL' or 'EJB QL'

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09