net.codescore.dbo
Class Competition

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

public class Competition
extends _Competition

See Also:
Serialized Form

Field Summary
private  HashMap<String,Object> props
           
private static long serialVersionUID
           
 
Fields inherited from class net.codescore.dbo.auto._Competition
ACTIVE_PROPERTY, CLARIFICATIONS_PROPERTY, COMPETITORS_PROPERTY, COMPID_PK_COLUMN, END_PROPERTY, JUDGES_PROPERTY, NAME_PROPERTY, PEOPLE_PROPERTY, PROBLEMS_PROPERTY, PROPS_BIN_PROPERTY, SCHOOLS_PROPERTY, START_PROPERTY, SUBMISSIONS_PROPERTY, TEAMS_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
Competition()
           
 
Method Summary
private  void checkProps()
           
private  void clearProps()
           
 void debug()
           
static byte[] getBytesFromFile(File file)
           
 CompetitionManager getManager()
           
 Object getProp(String key)
           
 List<School> getSchools()
           
private  void loadPropsFromDB()
           
private  InputStream prepPropsForRead()
           
 void saveProperties()
           
 void setProp(String key, Object val)
           
private  File writePropsToFile()
           
 
Methods inherited from class net.codescore.dbo.auto._Competition
addToClarifications, addToCompetitors, addToJudges, addToPeople, addToProblems, addToTeams, getActive, getClarifications, getCompetitors, getEnd, getJudges, getName, getPeople, getProblems, getPropsBin, getStart, getSubmissions, getTeams, removeFromClarifications, removeFromCompetitors, removeFromJudges, removeFromPeople, removeFromProblems, removeFromTeams, setActive, setEnd, setName, setPropsBin, setStart
 
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

props

private HashMap<String,Object> props
Constructor Detail

Competition

public Competition()
Method Detail

getBytesFromFile

public static byte[] getBytesFromFile(File file)
                               throws IOException
Throws:
IOException

debug

public void debug()

getManager

public CompetitionManager getManager()

getProp

public Object getProp(String key)

getSchools

public List<School> getSchools()
Overrides:
getSchools in class _Competition

saveProperties

public void saveProperties()

setProp

public void setProp(String key,
                    Object val)

checkProps

private void checkProps()

clearProps

private void clearProps()

loadPropsFromDB

private void loadPropsFromDB()

prepPropsForRead

private InputStream prepPropsForRead()
                              throws IOException
Throws:
IOException

writePropsToFile

private File writePropsToFile()
                       throws IOException
Throws:
IOException


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