Commit Graph

2882 Commits

Author SHA1 Message Date
Rsl1122
969b305526 Removed SessionsTable#getPlaytime(UUID uuid) - not used 2019-02-16 14:28:29 +02:00
Rsl1122
5ad767c83c Removed SessionsTable#getPlaytime(UUID uuid, long afterDate) - not used 2019-02-16 14:28:29 +02:00
Rsl1122
4ecdc38f0a Fixed PaperTPSCountTimer constructor 2019-02-16 14:28:28 +02:00
Rsl1122
a62b4ae61e Removed NicknamesTable#getNicknames - not used 2019-02-16 14:28:28 +02:00
Rsl1122
af674919e7 Refactored TPSTable#insertTPS to a transaction:
- Removed TPSInsertProcessor
2019-02-16 14:28:27 +02:00
Rsl1122
f9136d390a SecurityTable now static info class
- Made constructor private
- Removed getter from SQLDB
2019-02-16 14:28:26 +02:00
Rsl1122
237168f2eb Refactored SecurityTable#addNewUser to a transaction 2019-02-16 14:28:26 +02:00
Rsl1122
2bfbb60f1e Removed RemoveOperations 2019-02-16 14:28:25 +02:00
Rsl1122
a41fd0dc40 Refactored SecurityTable#removeUser to a transaction 2019-02-16 14:28:24 +02:00
Rsl1122
fa3b92f00e Removed extra annotationProcessor configurations 2019-02-16 14:28:24 +02:00
Rsl1122
9ec7318fac Removed CheckOperations 2019-02-16 14:28:24 +02:00
Rsl1122
ea8a53029c Set up maven-publish plugin 2019-02-16 14:28:23 +02:00
Rsl1122
95d14ed73f Rename DataCache to NicknameCache:
- Some errors were encountered with removal of DataCache,
  turns out if a dependency that has dagger modules that use some
  class, a compile error occurs.
  Thus the DataCache class was left in place until the uses are
  removed from the PluginBridge.
2019-02-16 14:28:23 +02:00
Rsl1122
4f3296b416 Fixed failing PingMedianTest 2019-02-16 14:28:22 +02:00
Rsl1122
48ec77c30e Removed DataCache#getUUIDof - the cache was never updated 2019-02-16 14:28:22 +02:00
Rsl1122
e2507c249b Removed DataCache#getName - not used 2019-02-16 14:28:21 +02:00
Rsl1122
fc07cb0227 Turned PingTable static info class:
- Made PingTable constructor private
- Removed getter from SQLDB
2019-02-16 14:28:20 +02:00
Rsl1122
5b3d687a60 Refactored PingTable#insertPing to a transaction 2019-02-16 14:28:20 +02:00
Rsl1122
b23235b50b Refactored PingTable#getPing to a query 2019-02-16 14:28:19 +02:00
Risto Lahtela
2d05c83b42 Fixed networkGeolocationCounts 2019-02-16 14:28:18 +02:00
Risto Lahtela
fe29f44680 Fixed networkGeolocationCounts for multiple users 2019-02-16 14:28:17 +02:00
Risto Lahtela
26cd95cab8 Fix networkGeolocationCounts for MySQL 2019-02-16 14:28:17 +02:00
Risto Lahtela
7080b7b3b2 Attempt to fix networkGeolocationCounts on MySQL 2019-02-16 14:28:16 +02:00
Rsl1122
1d2fc774c2 Fixed test fails caused by sudden player name change 2019-02-16 14:28:16 +02:00
Rsl1122
acd2225c49 Refactored UserInfoTable#registerUserInfo to a transaction:
- Removed RegisterProcessor
- Refactored UserInfoTable#isRegistered (both) to a query
- Removed UserInfoTable#isRegisteredOnThisServer
- Removed UserInfoTable#getServerUserInfo - not used
- Made login nickname processing non critical
2019-02-16 14:28:15 +02:00
Rsl1122
feaf7849d2 Refactored UsersTable#registerUser to a transaction:
- Removed ProxyRegisterProcessor
- Optimized name updating to occur on login instead of chat events
  - This removes the need to store player names in the DataCache.
2019-02-16 14:28:14 +02:00
Rsl1122
8a15e03096 Refactored UsersTable#isRegistered to a query 2019-02-16 14:28:14 +02:00
Rsl1122
966b204ca1 Fixed swapped op and ban values in test 2019-02-16 14:28:13 +02:00
Rsl1122
aa3678ba0e Refactored UserInfoTable#getAllUserInfo to a better query 2019-02-16 14:28:13 +02:00
Rsl1122
d5adc7f428 Refactored UserInfo to have Server UUID in it 2019-02-16 14:28:12 +02:00
Rsl1122
f7e28346e9 Removed UserInfoNameComparator - not used 2019-02-16 14:28:11 +02:00
Rsl1122
44bc2c01fa Removed UserInfoTable#getUserInfo - not used 2019-02-16 14:28:11 +02:00
Rsl1122
b0170b76af GeoInfoTable now static info class:
- Made constructor private
- Removed getter from SQLDB
2019-02-16 14:28:10 +02:00
Rsl1122
0799674de3 Refactored GeoInfoTable#getNetworkGeolocations to a query:
- Changed WorldMap to use the Map instead of calculating from a list,
  saves memory.
- Network container now uses the new query to save memory
2019-02-16 14:28:09 +02:00
Rsl1122
6478477eec Refactored GeoInfoTable#getGeoInfo into a query 2019-02-16 14:28:09 +02:00
Rsl1122
00c2c56717 Split PlayerFetchQueries from OptionalFetchQueries 2019-02-16 14:28:08 +02:00
Rsl1122
cb22c0f80a Refactored GeoInfo storage into a Transaction:
- Refactored GeoInfoTable#saveGeoInfo into queries
- Removed IPUpdateProcessor
2019-02-16 14:28:07 +02:00
Rsl1122
87d77240fa Since queries are now allowed, delegated Patch#shouldBeExecuted 2019-02-16 14:28:06 +02:00
Rsl1122
3ab30f8b9f Transactions can now be executed within other Transactions:
- No save point/connection management overhead.
2019-02-16 14:28:06 +02:00
Rsl1122
edb6a6eb72 Refactored WorldTimesTable#getWorldTimesOfUser to a query 2019-02-16 14:28:05 +02:00
Rsl1122
767bc89db0 Fixed CommonDBTest#worldNamesAreStored 2019-02-16 14:28:04 +02:00
Rsl1122
b4a125b4b5 Renamed AggregateQueries to ServerAggregateQueries 2019-02-16 14:28:03 +02:00
Rsl1122
57827b9154 Changes to WorldTable:
- Removed 'extends Table'
- Made constructor private
- Now only contains static variables and methods
- Removes getter from SQLDB
2019-02-16 14:28:02 +02:00
Rsl1122
b5ecc227f1 Removed WorldTable#saveWorlds 2019-02-16 14:28:01 +02:00
Rsl1122
35d5db638d Removed WorldTable#getWorldNames 2019-02-16 14:28:00 +02:00
Rsl1122
a548ae6cf6 Removed WorldTable#saveWorlds 2019-02-16 14:28:00 +02:00
Rsl1122
9e9196b181 Transaction for storing World names.
Used on Gamemode change, World change or on join event.
This should ensure that the world name is stored when the session is
saved.
2019-02-16 14:27:59 +02:00
Rsl1122
d095c791fb Moved db.sql.queries to db.access.queries 2019-02-16 14:27:58 +02:00
Rsl1122
4805498e41 Save world name when session is saved (temporarily) - fix 2019-02-16 14:27:57 +02:00
Rsl1122
b3d9efc502 Removed WorldTable#getWorlds() - not used 2019-02-16 14:27:56 +02:00