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 QueryHome

All Superinterfaces:
EJBHome, Remote

public interface QueryHome
extends EJBHome

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

 

Methods inherited from interface javax.ejb.EJBHome
getEJBMetaData, getHomeHandle, remove, remove

 

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

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