org.apache.lokahi.tomcat.api.pool
Class TMPoolWorker
java.lang.Object
org.apache.lokahi.tomcat.api.pool.TMPoolWorker
- All Implemented Interfaces:
- Cacheable, Dao
public class TMPoolWorker
- extends java.lang.Object
- implements Cacheable
- Version:
- $Id: TMPoolWorker.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 |
TMPoolWorker
public TMPoolWorker()
TMPoolWorker
public TMPoolWorker(int poolId,
int workerId)
TMPoolWorker
public TMPoolWorker(TomcatPool tp,
TomcatWorker tw)
getPoolId
public int getPoolId()
setPoolId
public void setPoolId(int poolId)
getWorkerId
public int getWorkerId()
setWorkerId
public void setWorkerId(int workerId)
fillObject
public TMPoolWorker 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 TomcatWorker getWorker()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getPool
public TomcatPool getPool()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
save
public static void save(TMPoolWorker rel)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
delete
public static void delete(TMPoolWorker rel)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getAll
public java.util.Collection<TMPoolWorker> 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