BEA Systems, Inc.

BEA WebLogic Server 9.0 API Reference


weblogic.ejb
Interface QueryHome

All Superinterfaces:
EJBHome, Remote

public interface QueryHome
extends EJBHome

Copyright © 2005 BEA Systems, Inc. All Rights Reserved.

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
 
Methods inherited from interface javax.ejb.EJBHome
getEJBMetaData, getHomeHandle, remove, remove
 

Method Detail

createQuery

public 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

createSqlQuery

public 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

getDatabaseProductName

public String getDatabaseProductName()
                              throws RemoteException
Throws:
RemoteException

getDatabaseProductVersion

public String getDatabaseProductVersion()
                                 throws RemoteException
Throws:
RemoteException

nativeQuery

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

Throws:
RemoteException

prepareQuery

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

Throws:
RemoteException

prepareQuery

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

Throws:
RemoteException

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs90
Copyright 2005 BEA Systems Inc.