public class TourneyRepository extends JORARepository
| Modifier and Type | Class and Description |
|---|---|
static class |
TourneyRepository.TourneyRecord
Contains tourney information loaded from the database.
|
SimpleRepository.PreConditionRepository.Operation<V>| Modifier and Type | Field and Description |
|---|---|
static String |
TOURNEY_DB_IDENT
The database identifier used when establishing a database connection.
|
| Constructor and Description |
|---|
TourneyRepository(ConnectionProvider conprov) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteTourney(int tourneyId)
Deletes a tourney from the repository.
|
void |
insertTourney(TourneyConfig tourney)
Inserts a new tourney into the repository, assigning a unique id to the tourney.
|
ArrayList<TourneyConfig> |
loadTournies()
Loads all the tourney configs from the repository.
|
void |
updateTourney(TourneyConfig tourney)
Updates the tourney in the repository.
|
setExecutePreConditionpublic static final String TOURNEY_DB_IDENT
tourneydb.@Inject public TourneyRepository(ConnectionProvider conprov)
public void insertTourney(TourneyConfig tourney) throws PersistenceException
PersistenceExceptionpublic void updateTourney(TourneyConfig tourney) throws PersistenceException
PersistenceExceptionpublic void deleteTourney(int tourneyId)
throws PersistenceException
PersistenceExceptionpublic ArrayList<TourneyConfig> loadTournies() throws PersistenceException
PersistenceExceptionCopyright © 2015. All rights reserved.