org.apache.lokahi.core.api.instance
Class InstanceModel

java.lang.Object
  extended by org.apache.lokahi.core.common.interfaces.LokahiModel<Instance>
      extended by org.apache.lokahi.core.api.instance.InstanceModel

public class InstanceModel
extends LokahiModel<Instance>

Version:
$Id: InstanceModel.java,v 1.3 2006/03/07 20:18:47 drtobes Exp $
Author:
Stephen Toback

Field Summary
 
Fields inherited from class org.apache.lokahi.core.common.interfaces.LokahiModel
jp, logger, tpe
 
Constructor Summary
InstanceModel()
           
 
Method Summary
 void addInstance(User u, Instance i, Function f)
           
 void deleteInstance(User u, Instance i, Function f)
           
 Instance getObject(int id)
           
 java.util.Collection<Instance> getObjects()
           
 void updateInstance(User u, Instance i, Function f)
           
 Instance viewInstance(int id)
           
 java.util.Collection<Instance> viewInstances()
           
 
Methods inherited from class org.apache.lokahi.core.common.interfaces.LokahiModel
jpInit, jpInit, jpInit, jpInit, perform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceModel

public InstanceModel()
Method Detail

addInstance

public void addInstance(User u,
                        Instance i,
                        Function f)
                 throws AuthorizationException,
                        TMCIllegalArgumentException,
                        java.sql.SQLException,
                        java.io.IOException
Throws:
AuthorizationException
TMCIllegalArgumentException
java.sql.SQLException
java.io.IOException

deleteInstance

public void deleteInstance(User u,
                           Instance i,
                           Function f)
                    throws java.sql.SQLException,
                           AuthorizationException,
                           TMCIllegalArgumentException
Throws:
java.sql.SQLException
AuthorizationException
TMCIllegalArgumentException

updateInstance

public void updateInstance(User u,
                           Instance i,
                           Function f)
                    throws AuthorizationException,
                           TMCIllegalArgumentException,
                           java.sql.SQLException,
                           java.io.IOException
Throws:
AuthorizationException
TMCIllegalArgumentException
java.sql.SQLException
java.io.IOException

viewInstance

public Instance viewInstance(int id)
                      throws java.sql.SQLException
Throws:
java.sql.SQLException

viewInstances

public java.util.Collection<Instance> viewInstances()
                                             throws java.sql.SQLException
Throws:
java.sql.SQLException

getObjects

public java.util.Collection<Instance> getObjects()
                                          throws java.sql.SQLException
Specified by:
getObjects in class LokahiModel<Instance>
Throws:
java.sql.SQLException

getObject

public Instance getObject(int id)
                   throws java.sql.SQLException
Specified by:
getObject in class LokahiModel<Instance>
Throws:
java.sql.SQLException