public interface DatabaseBridgeFactory
Modifier and Type | Method and Description |
---|---|
DatabaseBridge |
createGridDatabaseBridge(GridManager gridManager,
DatabaseBridge original)
Create a new database bridge for the grid.
|
DatabaseBridge |
createIslandsDatabaseBridge(Island island,
DatabaseBridge original)
Create a new database bridge for an island.
|
DatabaseBridge |
createPlayersDatabaseBridge(SuperiorPlayer superiorPlayer,
DatabaseBridge original)
Create a new database bridge for a player.
|
DatabaseBridge |
createStackedBlocksDatabaseBridge(StackedBlocksManager stackedBlocksManager,
DatabaseBridge original)
Create a new database bridge for the stacked-blocks manager.
|
DatabaseBridge createIslandsDatabaseBridge(@Nullable Island island, DatabaseBridge original)
island
- The island to create the database-bridge for.
If island is null, then the database-bridge is used as a loader from the database.original
- The original database-bridge that was created.DatabaseBridge createPlayersDatabaseBridge(@Nullable SuperiorPlayer superiorPlayer, DatabaseBridge original)
superiorPlayer
- The player to create the database-bridge for.
If player is null, then the database-bridge is used as a loader from the database.original
- The original database-bridge that was created.DatabaseBridge createGridDatabaseBridge(@Nullable GridManager gridManager, DatabaseBridge original)
gridManager
- The grid to create the database-bridge for.
If grid is null, then the database-bridge is used as a loader from the database.original
- The original database-bridge that was created.DatabaseBridge createStackedBlocksDatabaseBridge(@Nullable StackedBlocksManager stackedBlocksManager, DatabaseBridge original)
stackedBlocksManager
- The stacked-blocks manager to create the database-bridge for.
If manager is null, then the database-bridge is used as a loader from the database.original
- The original database-bridge that was created.