Oracle Fusion Middleware
Oracle WebLogic Server API Reference
12c Release 1 (12.1.1)

Part Number E24391-02

weblogic.ejb
Interface QueryLocalHome


public interface QueryLocalHome


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 query)
          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 EJBException
Creates a query that doesn't take input parameters.

Throws:
EJBException

prepareQuery

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

Throws:
EJBException

prepareQuery

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

Throws:
EJBException

createSqlQuery

Query createSqlQuery()
                     throws EJBException
Creates a query that doesn't take input parameters.

Throws:
EJBException

nativeQuery

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

Throws:
EJBException

getDatabaseProductName

String getDatabaseProductName()
                              throws EJBException
Throws:
EJBException

getDatabaseProductVersion

String getDatabaseProductVersion()
                                 throws EJBException
Throws:
EJBException

Copyright 1996, 2011, 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
12c Release 1 (12.1.1)

Part Number E24391-02