vle.domain.cRater
Class CRaterRequest

java.lang.Object
  extended by vle.domain.PersistableDomain
      extended by vle.domain.cRater.CRaterRequest

public class CRaterRequest
extends PersistableDomain

Domain representing CRaterRequests, pending and completed.

Author:
hirokiterashima, geoffreykwan

Field Summary
protected static String fromQuery
           
 
Constructor Summary
CRaterRequest()
          Default constructor
CRaterRequest(String cRaterItemId, StepWork stepWork, Long nodeStateId, Long runId)
           
 
Method Summary
static CRaterRequest getByStepWorkIdNodeStateId(StepWork stepWork, Long nodeStateId)
          Returns a CRaterRequest for the specified StepWork and NodeStateId.
 String getcRaterItemId()
           
 String getcRaterResponse()
           
 int getFailCount()
           
 Long getId()
           
static List<CRaterRequest> getIncompleteCRaterRequests()
          Returns a list of CRaterRequests that have not been completed.
 Long getNodeStateId()
           
protected  Class<?> getObjectClass()
           
 Long getRunId()
           
 StepWork getStepWork()
           
 Timestamp getTimeCompleted()
           
 Timestamp getTimeCreated()
           
 void setcRaterItemId(String cRaterItemId)
           
 void setcRaterResponse(String cRaterResponse)
           
 void setFailCount(int failCount)
           
 void setId(Long id)
           
 void setNodeStateId(Long nodeStateId)
           
 void setRunId(Long runId)
           
 void setStepWork(StepWork stepWork)
           
 void setTimeCompleted(Timestamp timeCompleted)
           
 void setTimeCreated(Timestamp timeCreated)
           
 
Methods inherited from class vle.domain.PersistableDomain
delete, getById, getList, saveOrUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fromQuery

protected static String fromQuery
Constructor Detail

CRaterRequest

public CRaterRequest()
Default constructor


CRaterRequest

public CRaterRequest(String cRaterItemId,
                     StepWork stepWork,
                     Long nodeStateId,
                     Long runId)
Parameters:
cRaterItemId -
stepWork -
nodeStateId -
Method Detail

getObjectClass

protected Class<?> getObjectClass()
Specified by:
getObjectClass in class PersistableDomain
See Also:
PersistableDomain.getObjectClass()

getId

public Long getId()
Returns:
the id

setId

public void setId(Long id)
Parameters:
id - the id to set

getcRaterItemId

public String getcRaterItemId()
Returns:
the cRaterItemId

setcRaterItemId

public void setcRaterItemId(String cRaterItemId)
Parameters:
cRaterItemId - the cRaterItemId to set

getStepWork

public StepWork getStepWork()
Returns:
the stepWork

setStepWork

public void setStepWork(StepWork stepWork)
Parameters:
stepWork - the stepWork to set

getNodeStateId

public Long getNodeStateId()
Returns:
the nodeStateId

setNodeStateId

public void setNodeStateId(Long nodeStateId)
Parameters:
nodeStateId - the nodeStateId to set

getRunId

public Long getRunId()
Returns:
the runId

setRunId

public void setRunId(Long runId)
Parameters:
runId - the runId to set

getTimeCreated

public Timestamp getTimeCreated()
Returns:
the timeCreated

setTimeCreated

public void setTimeCreated(Timestamp timeCreated)
Parameters:
timeCreated - the timeCreated to set

getTimeCompleted

public Timestamp getTimeCompleted()
Returns:
the timeCompleted

setTimeCompleted

public void setTimeCompleted(Timestamp timeCompleted)
Parameters:
timeCompleted - the timeCompleted to set

getFailCount

public int getFailCount()
Returns:
the failCount

setFailCount

public void setFailCount(int failCount)
Parameters:
failCount - the failCount to set

getcRaterResponse

public String getcRaterResponse()
Returns:
the cRaterResponse

setcRaterResponse

public void setcRaterResponse(String cRaterResponse)
Parameters:
cRaterResponse - the cRaterResponse to set

getByStepWorkIdNodeStateId

public static CRaterRequest getByStepWorkIdNodeStateId(StepWork stepWork,
                                                       Long nodeStateId)
Returns a CRaterRequest for the specified StepWork and NodeStateId.

Parameters:
stepWork -
nodeStateId -
Returns:

getIncompleteCRaterRequests

public static List<CRaterRequest> getIncompleteCRaterRequests()
Returns a list of CRaterRequests that have not been completed.

Returns:


Copyright © 2012. All Rights Reserved.