org.apache.lokahi.httpd.api.pool
Class AMPoolWorker
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
AMPoolWorker
public AMPoolWorker()
AMPoolWorker
public AMPoolWorker(int poolId,
int workerId)
AMPoolWorker
public AMPoolWorker(ApachePool ap,
ApacheWorker aw)
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