class ComponentMediators
extends java.lang.Object
JdbcComponentMediatorInterface
, for the
business classes, which are used by the factories ComponentAttributeMediators
and ComponentContainerMediators
to
initialize the component attribute mediators and the component container
mediators. Component mediators exchange the component data (component name,
component type, ...) between the business objects and JDBC result sets.
The component mediators are also used to fill the parameters in the
WHERE clause of the SQL select statements created by the factory
SqlSelectStatements
. Most of the statements have only one parameter
in the WHERE clause, because the database tables have only one primary
key column for a business object and a second column, which contains the
foreign key to the parent component of the business object. The component
mediators are responsible to update these two fields in a result set, but
they should set only one parameter in the prepared statement. This situation
is handled by the mediators created here, because they set only statement
parameters in the parameter range of the prepared statement.
This class is part of the sample "Competition Management" application, used to demonstrate the usage of "A Common Application Framework" (ACAF).
Modifier and Type | Field and Description |
---|---|
private JdbcComponentMediatorInterface |
mediatorCompetition
The component mediator for a
Competition . |
private JdbcComponentMediatorInterface |
mediatorCompetitionManagement
The component mediator for the
CompetitionManagement . |
private JdbcComponentMediatorInterface |
mediatorGame
The component mediator for a
Game . |
private JdbcComponentMediatorInterface |
mediatorGroupPairing
|
private JdbcComponentMediatorInterface |
mediatorPlayer
The component mediator for a
Player . |
private JdbcComponentMediatorInterface |
mediatorPlayerAddress
|
private JdbcRoundComponentMediator |
mediatorRound
|
private JdbcComponentMediatorInterface |
mediatorSeason
The component mediator for a
Season . |
private JdbcComponentMediatorInterface |
mediatorTeam
The component mediator for a
Team . |
private JdbcComponentMediatorInterface |
mediatorTeamAddress
|
private JdbcComponentMediatorInterface |
mediatorTeamClassification
The component mediator for a
TeamClassification . |
Constructor and Description |
---|
ComponentMediators() |
private JdbcComponentMediatorInterface mediatorCompetition
Competition
.private JdbcComponentMediatorInterface mediatorCompetitionManagement
CompetitionManagement
.private JdbcComponentMediatorInterface mediatorGame
Game
.private JdbcComponentMediatorInterface mediatorGroupPairing
private JdbcComponentMediatorInterface mediatorPlayer
Player
.private JdbcComponentMediatorInterface mediatorPlayerAddress
private JdbcRoundComponentMediator mediatorRound
private JdbcComponentMediatorInterface mediatorSeason
Season
.private JdbcComponentMediatorInterface mediatorTeam
Team
.private JdbcComponentMediatorInterface mediatorTeamAddress
private JdbcComponentMediatorInterface mediatorTeamClassification
TeamClassification
.JdbcComponentMediatorInterface getMediatorCompetition()
Competition
.JdbcComponentMediatorInterface getMediatorCompetitionManagement()
Competition
.JdbcComponentMediatorInterface getMediatorGame()
Game
.JdbcComponentMediatorInterface getMediatorGroupPairing()
JdbcComponentMediatorInterface getMediatorPlayer()
Player
.JdbcComponentMediatorInterface getMediatorPlayerAddress()
JdbcComponentMediatorInterface getMediatorRound()
JdbcComponentMediatorInterface getMediatorSeason()
Season
.JdbcComponentMediatorInterface getMediatorTeam()
Team
.JdbcComponentMediatorInterface getMediatorTeamAddress()
JdbcComponentMediatorInterface getMediatorTeamClassification()
TeamClassification
.