net.codescore.dbo
Class Problem

java.lang.Object
  extended by org.apache.cayenne.CayenneDataObject
      extended by net.codescore.dbo.CDO
          extended by net.codescore.dbo.auto._Problem
              extended by net.codescore.dbo.Problem
All Implemented Interfaces:
Serializable, Comparable<CDO>, ContextObject, DataObject, Persistent, Validating, XMLSerializable

public class Problem
extends _Problem

See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 
Fields inherited from class net.codescore.dbo.auto._Problem
ACTIVE_PROPERTY, COMMENTS_PROPERTY, COMPETITIONS_PROPERTY, DESCRIPTION_PROPERTY, DIFFICULTY_PROPERTY, FIGURES_PROPERTY, NAME_PROPERTY, PROBLEMID_PK_COLUMN, SAMPLE_INPUT_PROPERTY, SAMPLE_OUTPUT_PROPERTY, SOLUTIONS_PROPERTY, SUBMISSIONS_PROPERTY, TAGS_PROPERTY, TEST_CASES_PROPERTY, UNIX_NAME_PROPERTY
 
Fields inherited from class net.codescore.dbo.CDO
log
 
Fields inherited from class org.apache.cayenne.CayenneDataObject
objectContext, objectId, persistenceState, snapshotVersion, values
 
Fields inherited from interface org.apache.cayenne.DataObject
DEFAULT_VERSION
 
Constructor Summary
Problem()
           
 
Method Summary
 String getTagList()
           
 List<TeamSubmission> getTeamSubmissions(Team t)
           
 boolean hasTeamSolved(Team t, Competition c)
          True if a team has submitted a correct answer for this problem.
 
Methods inherited from class net.codescore.dbo.auto._Problem
addToComments, addToCompetitions, addToFigures, addToSolutions, addToSubmissions, addToTags, addToTestCases, getActive, getComments, getCompetitions, getDescription, getDifficulty, getFigures, getName, getSampleInput, getSampleOutput, getSolutions, getSubmissions, getTags, getTestCases, getUnixName, removeFromComments, removeFromCompetitions, removeFromFigures, removeFromSolutions, removeFromSubmissions, removeFromTags, removeFromTestCases, setActive, setDescription, setDifficulty, setName, setSampleInput, setSampleOutput, setUnixName
 
Methods inherited from class net.codescore.dbo.CDO
compareTo, equals, getPK, refresh
 
Methods inherited from class org.apache.cayenne.CayenneDataObject
addToManyTarget, appendProperties, decodeFromXML, encodeAsXML, fetchFinished, getDataContext, getObjectContext, getObjectId, getObjEntity, getPersistenceState, getSnapshotVersion, readNestedProperty, readProperty, readPropertyDirectly, removeToManyTarget, setDataContext, setObjectContext, setObjectId, setPersistenceState, setReverseRelationship, setSnapshotVersion, setToOneTarget, toString, toStringBuffer, unsetReverseRelationship, validateForDelete, validateForInsert, validateForSave, validateForUpdate, willConnect, writeProperty, writePropertyDirectly
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.codescore.dbo.inf.ContextObject
getObjectContext
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

Problem

public Problem()
Method Detail

getTeamSubmissions

public List<TeamSubmission> getTeamSubmissions(Team t)

getTagList

public String getTagList()

hasTeamSolved

public boolean hasTeamSolved(Team t,
                             Competition c)
True if a team has submitted a correct answer for this problem.

Parameters:
t -
Returns:


Copyright 2008 © Adam Cornett, Andrew Conner All Rights Reserved.