org.apache.lokahi.httpd.api.pool
Class AMPoolWorker

java.lang.Object
  extended by org.apache.lokahi.httpd.api.pool.AMPoolWorker
All Implemented Interfaces:
Cacheable, Dao

public class AMPoolWorker
extends java.lang.Object
implements Cacheable

Version:
$Id: AMPoolWorker.java,v 1.4 2006/03/07 20:18:52 drtobes Exp $
Author:
Stephen Toback

Constructor Summary
AMPoolWorker()
           
AMPoolWorker(ApachePool ap, ApacheWorker aw)
           
AMPoolWorker(int poolId, int workerId)
           
 
Method Summary
static void delete(AMPoolWorker rel)
           
 boolean equals(java.lang.Object o)
           
 AMPoolWorker fillObject(java.sql.ResultSet r)
          Creates the Dao from the passed resultset, internally calling the appriate constructor.
 java.util.Collection<AMPoolWorker> getAll()
          Gets all of the particular Dao from the datastore without going to the cache
 ApachePool getPool()
           
 int getPoolId()
           
 ApacheWorker getWorker()
           
 int getWorkerId()
           
 int hashCode()
           
static void save(AMPoolWorker rel)
           
 void setPoolId(int poolId)
           
 void setWorkerId(int workerId)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AMPoolWorker

public AMPoolWorker()

AMPoolWorker

public AMPoolWorker(int poolId,
                    int workerId)

AMPoolWorker

public AMPoolWorker(ApachePool ap,
                    ApacheWorker aw)
Method Detail

getPoolId

public int getPoolId()

setPoolId

public void setPoolId(int poolId)

getWorkerId

public int getWorkerId()

setWorkerId

public void setWorkerId(int workerId)

fillObject

public AMPoolWorker fillObject(java.sql.ResultSet r)
                        throws java.sql.SQLException
Description copied from interface: Dao
Creates the Dao from the passed resultset, internally calling the appriate constructor.

Specified by:
fillObject in interface Dao
Parameters:
r - the resultset from a database call, should include the entire object
Returns:
Object populated from the resultset
Throws:
java.sql.SQLException

getWorker

public ApacheWorker getWorker()
                       throws java.sql.SQLException
Throws:
java.sql.SQLException

getPool

public ApachePool getPool()
                   throws java.sql.SQLException
Throws:
java.sql.SQLException

save

public static void save(AMPoolWorker rel)
                 throws java.sql.SQLException
Throws:
java.sql.SQLException

delete

public static void delete(AMPoolWorker rel)
                   throws java.sql.SQLException
Throws:
java.sql.SQLException

getAll

public java.util.Collection<AMPoolWorker> getAll()
                                          throws java.sql.SQLException
Description copied from interface: Cacheable
Gets all of the particular Dao from the datastore without going to the cache

Specified by:
getAll in interface Cacheable
Returns:
a collection
Throws:
java.sql.SQLException

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object