com.jwpepper.inv
Class QueryHomeImpl
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--com.imaginary.lwp.BaseHome
|
+--com.jwpepper.inv.QueryHomeImpl
- public class QueryHomeImpl
- extends BaseHome
- implements QueryHome
Implements methods for the creation of new queries.
Last modified $Date: 1999/10/07 20:39:49 $
- Version:
- $Revision: 1.1 $
- Author:
- George Reese (george@ancept.com)
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary |
QueryHomeImpl()
Constructs a new QueryHomeImpl instance. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone,
exportObject,
exportObject,
exportObject,
unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost,
getLog,
setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals,
getRef,
hashCode,
toString,
toStub |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
QueryHomeImpl
public QueryHomeImpl()
throws PersistenceException,
java.rmi.RemoteException
- Constructs a new
QueryHomeImpl
instance.
- Throws:
- PersistenceException - LWP was unable to
assign a persistence handler
- java.rmi.RemoteException - RMI was unable to export this object
create
public QueryReference create(SearchCriteria sc)
throws FindException,
PersistenceException,
java.rmi.RemoteException
- Creates a new anonymous query. The resulting query will have no
name and will not be saved to the database. If, after creating this,
you wish to save the query, you will need to create a new query
object using the same search criteria.
- Specified by:
- create in interface QueryHome
- Parameters:
sc
- the search criteria to use to perform queries- Returns:
- a reference to the newly created query
- Throws:
- FindException - an error occurred
performing the query
- PersistenceException - an error occurred
instantiating a new query object
- java.rmi.RemoteException - a network error occurred
create
public QueryReference create(Identifier id,
SearchCriteria sc,
java.lang.String nom)
throws FindException,
PersistenceException,
java.rmi.RemoteException
- Creates a new, saved query. This query will be available to clients
in the future.
- Specified by:
- create in interface QueryHome
- Parameters:
id
- the client identifier to use for saving the querysc
- the search criteria to use to perform the querynom
- the name of the query- Throws:
- FindException - an error occurred
performing the query
- PersistenceException - an error occurred
instantiating a new query object or saving the query
- java.rmi.RemoteException - a network error occurred