Class PlayerReportStorage
java.lang.Object
me.confuser.banmanager.common.ormlite.dao.BaseDaoImpl<PlayerReportData,Integer>
me.confuser.banmanager.common.storage.BaseStorage<PlayerReportData,Integer>
me.confuser.banmanager.common.storage.PlayerReportStorage
- All Implemented Interfaces:
Iterable<PlayerReportData>,me.confuser.banmanager.common.ormlite.dao.CloseableIterable<PlayerReportData>,me.confuser.banmanager.common.ormlite.dao.Dao<PlayerReportData,Integer>
-
Nested Class Summary
Nested classes/interfaces inherited from interface me.confuser.banmanager.common.ormlite.dao.Dao
me.confuser.banmanager.common.ormlite.dao.Dao.CreateOrUpdateStatus, me.confuser.banmanager.common.ormlite.dao.Dao.DaoObserver -
Field Summary
Fields inherited from class me.confuser.banmanager.common.storage.BaseStorage
pluginFields inherited from class me.confuser.banmanager.common.ormlite.dao.BaseDaoImpl
connectionSource, databaseType, dataClass, lastIterator, objectFactory, statementExecutor, tableConfig, tableInfo -
Constructor Summary
ConstructorsConstructorDescriptionPlayerReportStorage(BanManagerPlugin plugin) PlayerReportStorage(BanManagerPlugin plugin, me.confuser.banmanager.common.ormlite.support.ConnectionSource connection, me.confuser.banmanager.common.ormlite.table.DatabaseTableConfig<?> table) -
Method Summary
Modifier and TypeMethodDescriptionintdeleteAll(PlayerData player) intdeleteById(Integer id) intdeleteIds(Collection<Integer> ids) longgetCount(PlayerData player) getReports(long page, int state) getReports(long page, Integer state, UUID uniqueId) booleanisRecentlyReported(PlayerData player, long cooldown) booleanreport(PlayerReportData data, boolean isSilent) Methods inherited from class me.confuser.banmanager.common.storage.BaseStorage
create, createPreservingTimestamps, getBmTableName, getDatabaseConfig, hasUpdatedColumn, update, updatePreservingTimestampsMethods inherited from class me.confuser.banmanager.common.ormlite.dao.BaseDaoImpl
assignEmptyForeignCollection, callBatchTasks, checkForInitialized, clearAllInternalObjectCaches, clearObjectCache, closeableIterator, closeLastIterator, commit, countOf, countOf, create, createIfNotExists, createOrUpdate, delete, delete, delete, deleteBuilder, endThreadConnection, executeRaw, executeRawNoArgs, extractId, findForeignFieldType, getConnectionSource, getDataClass, getEmptyForeignCollection, getObjectCache, getObjectFactory, getRawRowMapper, getSelectStarRowMapper, getTableConfig, getTableInfo, getTableName, getWrappedIterable, getWrappedIterable, idExists, initialize, isAutoCommit, isTableExists, isUpdatable, iterator, iterator, iterator, iterator, mapSelectStarRow, notifyChanges, objectsEqual, objectToString, query, queryBuilder, queryForAll, queryForEq, queryForFieldValues, queryForFieldValuesArgs, queryForFirst, queryForId, queryForMatching, queryForMatchingArgs, queryForSameId, queryRaw, queryRaw, queryRaw, queryRaw, queryRaw, queryRawValue, refresh, registerObserver, rollBack, setAutoCommit, setConnectionSource, setObjectCache, setObjectCache, setObjectFactory, setTableConfig, startThreadConnection, unregisterObserver, update, updateBuilder, updateId, updateRawMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
PlayerReportStorage
- Throws:
SQLException
-
PlayerReportStorage
public PlayerReportStorage(BanManagerPlugin plugin, me.confuser.banmanager.common.ormlite.support.ConnectionSource connection, me.confuser.banmanager.common.ormlite.table.DatabaseTableConfig<?> table) throws SQLException - Throws:
SQLException
-
-
Method Details
-
report
- Throws:
SQLException
-
getReports
- Throws:
SQLException
-
getReports
- Throws:
SQLException
-
deleteAll
- Throws:
SQLException
-
isRecentlyReported
- Throws:
SQLException
-
deleteById
- Specified by:
deleteByIdin interfaceme.confuser.banmanager.common.ormlite.dao.Dao<PlayerReportData,Integer> - Overrides:
deleteByIdin classme.confuser.banmanager.common.ormlite.dao.BaseDaoImpl<PlayerReportData,Integer> - Throws:
SQLException
-
deleteIds
- Specified by:
deleteIdsin interfaceme.confuser.banmanager.common.ormlite.dao.Dao<PlayerReportData,Integer> - Overrides:
deleteIdsin classme.confuser.banmanager.common.ormlite.dao.BaseDaoImpl<PlayerReportData,Integer> - Throws:
SQLException
-
getCount
- Throws:
SQLException
-