org.apache.lokahi.httpd.api.server
Class ApacheModel

java.lang.Object
  extended by org.apache.lokahi.core.common.interfaces.LokahiModel<Apache>
      extended by org.apache.lokahi.httpd.api.server.ApacheModel

public class ApacheModel
extends LokahiModel<Apache>

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

Field Summary
 
Fields inherited from class org.apache.lokahi.core.common.interfaces.LokahiModel
jp, logger, tpe
 
Constructor Summary
ApacheModel()
           
 
Method Summary
 void addApache(User u, Apache a, Function f)
           
 void deleteApache(User u, Apache a, Function f)
           
 Apache getObject(int id)
           
 java.util.Collection<Apache> getObjects()
           
 void updateApache(User u, Apache a, Function f)
           
 Apache viewApache(int id)
           
 java.util.Collection<Apache> viewApaches()
           
 
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

ApacheModel

public ApacheModel()
Method Detail

addApache

public void addApache(User u,
                      Apache a,
                      Function f)
               throws AuthorizationException,
                      TMCIllegalArgumentException,
                      java.sql.SQLException,
                      java.io.IOException
Throws:
AuthorizationException
TMCIllegalArgumentException
java.sql.SQLException
java.io.IOException

deleteApache

public void deleteApache(User u,
                         Apache a,
                         Function f)
                  throws java.sql.SQLException,
                         AuthorizationException,
                         TMCIllegalArgumentException
Throws:
java.sql.SQLException
AuthorizationException
TMCIllegalArgumentException

updateApache

public void updateApache(User u,
                         Apache a,
                         Function f)
                  throws AuthorizationException,
                         TMCIllegalArgumentException,
                         java.sql.SQLException,
                         java.io.IOException
Throws:
AuthorizationException
TMCIllegalArgumentException
java.sql.SQLException
java.io.IOException

viewApache

public Apache viewApache(int id)
                  throws java.sql.SQLException
Throws:
java.sql.SQLException

viewApaches

public java.util.Collection<Apache> viewApaches()
                                         throws java.sql.SQLException
Throws:
java.sql.SQLException

getObjects

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

getObject

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