Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.6)

Part Number E13941-07

weblogic.ejb
Interface QueryHome


public interface QueryHome


Method Summary
 Query createQuery()
          Creates a query that doesn't take input parameters.
 Query createSqlQuery()
          Creates a query that doesn't take input parameters.
 String getDatabaseProductName()
           
 String getDatabaseProductVersion()
           
 String nativeQuery(String ejbql)
          Returns the result of calling JDBC's nativeSQL() method.
 PreparedQuery prepareQuery(String ejbql)
          Creates a prepared query that takes input parameters.
 PreparedQuery prepareQuery(String ejbql, Properties props)
          Creates a prepared query that takes input parameters and properties
 

Method Detail

createQuery

Query createQuery()
                  throws RemoteException
Creates a query that doesn't take input parameters. Use this method to create a Query object that executes EJB QL queries.

Throws:
RemoteException

prepareQuery

PreparedQuery prepareQuery(String ejbql)
                           throws RemoteException
Creates a prepared query that takes input parameters.

Throws:
RemoteException

prepareQuery

PreparedQuery prepareQuery(String ejbql,
                           Properties props)
                           throws RemoteException
Creates a prepared query that takes input parameters and properties

Throws:
RemoteException

createSqlQuery

Query createSqlQuery()
                     throws RemoteException
Creates a query that doesn't take input parameters. Use this method to create a Query object that executes SQL queries.

Throws:
RemoteException

nativeQuery

String nativeQuery(String ejbql)
                   throws RemoteException
Returns the result of calling JDBC's nativeSQL() method.

Throws:
RemoteException

getDatabaseProductName

String getDatabaseProductName()
                              throws RemoteException
Throws:
RemoteException

getDatabaseProductVersion

String getDatabaseProductVersion()
                                 throws RemoteException
Throws:
RemoteException

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
Oracle WebLogic Server API Reference
11g Release 1 (10.3.6)

Part Number E13941-07