Class MongoDatabase
java.lang.Object
net.chen.legacyLand.database.MongoDatabase
- All Implemented Interfaces:
IDatabase
@Deprecated(since="beta2.3",
forRemoval=true)
public class MongoDatabase
extends Object
implements IDatabase
Deprecated, for removal: This API element is subject to removal in a future version.
MongoDB 数据库实现
-
Constructor Summary
ConstructorsConstructorDescriptionMongoDatabase(LegacyLand plugin) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect()Deprecated, for removal: This API element is subject to removal in a future version.连接数据库voidDeprecated, for removal: This API element is subject to removal in a future version.创建表结构voiddecrementChunkResource(String world, int chunkX, int chunkZ, double delta) Deprecated, for removal: This API element is subject to removal in a future version.P2 预留:递减 currentValue。voiddeleteDiplomacyRelation(String nation1, String nation2) Deprecated, for removal: This API element is subject to removal in a future version.voiddeleteFlagWar(String flagWarId) Deprecated, for removal: This API element is subject to removal in a future version.voiddeleteGuaranteeRelation(String guarantorNation, String protectedNation) Deprecated, for removal: This API element is subject to removal in a future version.删除保卫关系voiddeleteMarket(String marketId) Deprecated, for removal: This API element is subject to removal in a future version.删除市场数据voiddeleteMarketChest(String chestId) Deprecated, for removal: This API element is subject to removal in a future version.删除市场箱子数据voiddeleteNationData(String nationName) Deprecated, for removal: This API element is subject to removal in a future version.voiddeleteNationGuarantees(String nationName) Deprecated, for removal: This API element is subject to removal in a future version.删除国家的所有保卫关系voiddeleteWarData(String warName) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.断开数据库连接Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.加载所有已扫描区块(用于全量统计/导出,谨慎在大数据集下调用)。Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.加载所有保卫关系Deprecated, for removal: This API element is subject to removal in a future version.加载所有市场数据loadChunkResource(String world, int chunkX, int chunkZ) Deprecated, for removal: This API element is subject to removal in a future version.加载单个区块的储量数据,未找到返回 null。loadMarketChests(String marketId) Deprecated, for removal: This API element is subject to removal in a future version.加载指定市场的所有箱子loadNationGovernment(String nationName) Deprecated, for removal: This API element is subject to removal in a future version.loadNationPoliticalSystem(String nationName) Deprecated, for removal: This API element is subject to removal in a future version.加载国家政治体制 IDloadNationRoles(String nationName) Deprecated, for removal: This API element is subject to removal in a future version.loadPlayerAchievements(UUID playerId) Deprecated, for removal: This API element is subject to removal in a future version.loadPlayerData(UUID playerId, String playerName) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.loadSiegeWar(String siegeId) Deprecated, for removal: This API element is subject to removal in a future version.loadWarData(String warName) Deprecated, for removal: This API element is subject to removal in a future version.loadWarParticipants(String warName) Deprecated, for removal: This API element is subject to removal in a future version.voidremovePlayerRole(String nationName, UUID playerId) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.保存或更新区块储量数据(upsert)。voidsaveDiplomacyRelation(DiplomacyRelation relation) Deprecated, for removal: This API element is subject to removal in a future version.voidsaveFlagWar(FlagWarData flagWar) Deprecated, for removal: This API element is subject to removal in a future version.voidsaveGuaranteeRelation(GuaranteeRelation relation) Deprecated, for removal: This API element is subject to removal in a future version.保存保卫关系voidsaveMarket(Market market) Deprecated, for removal: This API element is subject to removal in a future version.保存市场数据voidsaveMarketChest(MarketChest chest) Deprecated, for removal: This API element is subject to removal in a future version.保存市场箱子数据voidsaveNationGovernment(String nationName, GovernmentType governmentType) Deprecated, for removal: This API element is subject to removal in a future version.voidsaveNationPoliticalSystem(String nationName, String systemId) Deprecated, for removal: This API element is subject to removal in a future version.保存国家政治体制(配置驱动)voidsavePlayerAchievement(UUID playerId, String achievementId) Deprecated, for removal: This API element is subject to removal in a future version.voidsavePlayerData(PlayerData data) Deprecated, for removal: This API element is subject to removal in a future version.voidsavePlayerRole(String nationName, UUID playerId, NationRole role) Deprecated, for removal: This API element is subject to removal in a future version.voidsaveSeasonData(String currentSeason, int currentDay, int daysPerSubSeason) Deprecated, for removal: This API element is subject to removal in a future version.voidsaveSiegeWar(Map<String, Object> siegeData) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidsaveWarData(String warName, Map<String, Object> warData) Deprecated, for removal: This API element is subject to removal in a future version.voidsaveWarParticipant(String warName, UUID playerId, String role) Deprecated, for removal: This API element is subject to removal in a future version.voidupdateGuaranteeRelation(GuaranteeRelation relation) Deprecated, for removal: This API element is subject to removal in a future version.更新保卫关系Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IDatabase
getConnection, getLogger
-
Constructor Details
-
MongoDatabase
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
connect
-
disconnect
public void disconnect()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IDatabase断开数据库连接- Specified by:
disconnectin interfaceIDatabase
-
createTables
public void createTables()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IDatabase创建表结构- Specified by:
createTablesin interfaceIDatabase
-
saveNationGovernment
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
saveNationGovernmentin interfaceIDatabase
-
loadNationGovernment
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
loadNationGovernmentin interfaceIDatabase
-
saveNationPoliticalSystem
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IDatabase保存国家政治体制(配置驱动)- Specified by:
saveNationPoliticalSystemin interfaceIDatabase
-
loadNationPoliticalSystem
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IDatabase加载国家政治体制 ID- Specified by:
loadNationPoliticalSystemin interfaceIDatabase
-
savePlayerRole
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
savePlayerRolein interfaceIDatabase
-
loadNationRoles
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
loadNationRolesin interfaceIDatabase
-
removePlayerRole
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
removePlayerRolein interfaceIDatabase
-
deleteNationData
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
deleteNationDatain interfaceIDatabase
-
saveDiplomacyRelation
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
saveDiplomacyRelationin interfaceIDatabase
-
loadAllDiplomacyRelations
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
loadAllDiplomacyRelationsin interfaceIDatabase
-
deleteDiplomacyRelation
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
deleteDiplomacyRelationin interfaceIDatabase
-
savePlayerData
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
savePlayerDatain interfaceIDatabase
-
loadPlayerData
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
loadPlayerDatain interfaceIDatabase
-
saveWar
-
saveWarData
-
loadWarData
-
deleteWarData
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
deleteWarDatain interfaceIDatabase
-
saveWarParticipant
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
saveWarParticipantin interfaceIDatabase
-
loadWarParticipants
-
saveSiegeWar
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
saveSiegeWarin interfaceIDatabase
-
loadSiegeWar
-
savePlayerAchievement
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
savePlayerAchievementin interfaceIDatabase
-
loadPlayerAchievements
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
loadPlayerAchievementsin interfaceIDatabase
-
saveSeasonData
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
saveSeasonDatain interfaceIDatabase
-
loadSeasonData
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
loadSeasonDatain interfaceIDatabase
-
saveFlagWar
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
saveFlagWarin interfaceIDatabase
-
loadActiveFlagWars
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
loadActiveFlagWarsin interfaceIDatabase
-
deleteFlagWar
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
deleteFlagWarin interfaceIDatabase
-
saveMarket
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IDatabase保存市场数据- Specified by:
saveMarketin interfaceIDatabase
-
loadAllMarkets
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IDatabase加载所有市场数据- Specified by:
loadAllMarketsin interfaceIDatabase
-
deleteMarket
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IDatabase删除市场数据- Specified by:
deleteMarketin interfaceIDatabase
-
saveMarketChest
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IDatabase保存市场箱子数据- Specified by:
saveMarketChestin interfaceIDatabase
-
loadMarketChests
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IDatabase加载指定市场的所有箱子- Specified by:
loadMarketChestsin interfaceIDatabase
-
deleteMarketChest
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IDatabase删除市场箱子数据- Specified by:
deleteMarketChestin interfaceIDatabase
-
saveGuaranteeRelation
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IDatabase保存保卫关系- Specified by:
saveGuaranteeRelationin interfaceIDatabase
-
loadAllGuarantees
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IDatabase加载所有保卫关系- Specified by:
loadAllGuaranteesin interfaceIDatabase
-
updateGuaranteeRelation
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IDatabase更新保卫关系- Specified by:
updateGuaranteeRelationin interfaceIDatabase
-
deleteGuaranteeRelation
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IDatabase删除保卫关系- Specified by:
deleteGuaranteeRelationin interfaceIDatabase
-
deleteNationGuarantees
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IDatabase删除国家的所有保卫关系- Specified by:
deleteNationGuaranteesin interfaceIDatabase
-
saveChunkResource
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IDatabase保存或更新区块储量数据(upsert)。- Specified by:
saveChunkResourcein interfaceIDatabase
-
loadChunkResource
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IDatabase加载单个区块的储量数据,未找到返回 null。- Specified by:
loadChunkResourcein interfaceIDatabase
-
loadAllChunkResources
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IDatabase加载所有已扫描区块(用于全量统计/导出,谨慎在大数据集下调用)。- Specified by:
loadAllChunkResourcesin interfaceIDatabase
-
decrementChunkResource
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IDatabaseP2 预留:递减 currentValue。当前未被调用。- Specified by:
decrementChunkResourcein interfaceIDatabase
-