|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lokahi.core.common.interfaces.RestObject org.apache.lokahi.core.common.interfaces.TMCDao<JobPool> org.apache.lokahi.core.api.jobpool.JobPool
public class JobPool
Constructor Summary | |
---|---|
JobPool()
|
|
JobPool(int projectId,
int userId,
State state,
java.lang.String options,
int functionId)
|
|
JobPool(int jobPoolId,
java.lang.String jobPoolName,
int projectId,
int userId,
java.util.Date startTime,
java.util.Date finishTime,
int stateId,
java.lang.String options,
int functionId)
|
|
JobPool(Project p,
User u,
State s,
java.lang.String options,
Function f)
|
|
JobPool(Project p,
User u,
java.lang.String options,
Function f)
|
|
JobPool(User u,
State s,
Function f)
|
Method Summary | |
---|---|
java.lang.StringBuilder |
buildShortXMLRepresentation()
Builds a short xml representation of this object containing name, and primary key. |
java.lang.StringBuilder |
buildXMLRepresention()
Builds a xml representation of this object |
static void |
complete(JobPool jp)
|
JobPool |
correctStates()
|
boolean |
equals(java.lang.Object o)
|
JobPool |
fillObject(java.sql.ResultSet r)
Creates the Dao from the passed resultset, internally calling the appriate constructor. |
JobPool |
get(int id)
|
java.util.Date |
getFinishTime()
|
Function |
getFunction()
|
int |
getFunctionId()
|
static JobPool |
getJobPool(int id)
|
static java.util.Collection<JobPool> |
getJobPools()
|
static java.util.Collection<JobPool> |
getJobPools(Project p)
|
static java.util.Collection<JobPool> |
getJobPools(State s)
|
static java.util.Collection<JobPool> |
getJobPools(User u)
|
static TMCCollectionImpl<JobPool> |
getJobPools(User u,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String filter,
Function... functions)
|
static java.util.Collection<JobPool> |
getJobPoolsLimited(State s)
|
java.util.Collection<Job> |
getJobs()
|
java.lang.String |
getName()
Gets the name. |
java.lang.String |
getOptions()
|
int |
getPk()
Gets the primary key |
Project |
getProject()
|
int |
getProjectId()
|
java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.Integer,Job>> |
getSortedJobs()
|
java.util.Date |
getSortOnDate()
|
java.util.Date |
getStartTime()
|
State |
getState()
|
User |
getUser()
|
int |
getUserId()
|
int |
hashCode()
|
static JobPool |
reportCompleted(JobPool jp)
|
boolean |
setCurrentState()
|
void |
setFinishTime(java.util.Date finishTime)
|
void |
setFunction(Function function)
|
void |
setFunctionId(int functionId)
|
void |
setJobs(java.util.Collection<Job> jobs)
|
void |
setName(java.lang.String name)
|
void |
setOptions(java.lang.String options)
|
void |
setPk(int pk)
|
void |
setProject(Project project)
|
void |
setProjectId(int projectId)
|
void |
setStartTime(java.util.Date startTime)
|
void |
setState(State state)
|
void |
setUser(User user)
|
void |
setUserId(int userId)
|
static JobPool |
store(JobPool jp)
|
java.lang.String |
toString()
|
static void |
update(JobPool jp)
|
Methods inherited from class org.apache.lokahi.core.common.interfaces.RestObject |
---|
elementBuilder, elementBuilder |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JobPool()
public JobPool(int projectId, int userId, State state, java.lang.String options, int functionId)
public JobPool(Project p, User u, State s, java.lang.String options, Function f)
public JobPool(User u, State s, Function f)
public JobPool(Project p, User u, java.lang.String options, Function f)
public JobPool(int jobPoolId, java.lang.String jobPoolName, int projectId, int userId, java.util.Date startTime, java.util.Date finishTime, int stateId, java.lang.String options, int functionId)
Method Detail |
---|
public int getPk()
Collectable
getPk
in interface Collectable
int
primary keypublic void setPk(int pk)
public java.lang.String getName()
Collectable
getName
in interface Collectable
String
name.public void setName(java.lang.String name)
public int getProjectId()
public void setProjectId(int projectId)
public int getUserId()
public void setUserId(int userId)
public java.util.Date getStartTime()
public void setStartTime(java.util.Date startTime)
public java.util.Date getFinishTime()
public void setFinishTime(java.util.Date finishTime)
public java.lang.String getOptions()
public void setOptions(java.lang.String options)
public int getFunctionId()
public void setFunctionId(int functionId)
public Function getFunction()
public void setFunction(Function function)
public State getState()
public void setState(State state)
public User getUser()
public void setUser(User user)
public Project getProject()
public void setProject(Project project)
public java.util.Collection<Job> getJobs() throws java.sql.SQLException
java.sql.SQLException
public java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.Integer,Job>> getSortedJobs()
public void setJobs(java.util.Collection<Job> jobs)
public static void update(JobPool jp) throws java.sql.SQLException
java.sql.SQLException
public JobPool correctStates() throws java.sql.SQLException
java.sql.SQLException
public static JobPool store(JobPool jp) throws java.sql.SQLException
java.sql.SQLException
public static JobPool reportCompleted(JobPool jp) throws java.sql.SQLException
java.sql.SQLException
public static void complete(JobPool jp) throws java.sql.SQLException
java.sql.SQLException
public JobPool get(int id) throws java.sql.SQLException
get
in class TMCDao<JobPool>
java.sql.SQLException
public static JobPool getJobPool(int id) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<JobPool> getJobPools(Project p) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<JobPool> getJobPools(User u) throws java.sql.SQLException
java.sql.SQLException
public static TMCCollectionImpl<JobPool> getJobPools(User u, java.util.Date startDate, java.util.Date endDate, java.lang.String filter, Function... functions) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<JobPool> getJobPools(State s) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<JobPool> getJobPoolsLimited(State s) throws java.sql.SQLException
java.sql.SQLException
public boolean setCurrentState() throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<JobPool> getJobPools() throws java.sql.SQLException
java.sql.SQLException
public JobPool fillObject(java.sql.ResultSet r) throws java.sql.SQLException
Dao
fillObject
in interface Dao<JobPool>
r
- the resultset from a database call,
should include the entire object
java.sql.SQLException
public java.lang.StringBuilder buildShortXMLRepresentation()
Restable
buildShortXMLRepresentation
in interface Restable
public java.lang.StringBuilder buildXMLRepresention()
Restable
buildXMLRepresention
in interface Restable
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.util.Date getSortOnDate()
getSortOnDate
in interface Datable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |