Class IpMuteStorage
java.lang.Object
me.confuser.banmanager.common.ormlite.dao.BaseDaoImpl<IpMuteData,Integer>
me.confuser.banmanager.common.storage.BaseStorage<IpMuteData,Integer>
me.confuser.banmanager.common.storage.IpMuteStorage
- All Implemented Interfaces:
Iterable<IpMuteData>,me.confuser.banmanager.common.ormlite.dao.CloseableIterable<IpMuteData>,me.confuser.banmanager.common.ormlite.dao.Dao<IpMuteData,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
ConstructorsConstructorDescriptionIpMuteStorage(BanManagerPlugin plugin) IpMuteStorage(BanManagerPlugin plugin, me.confuser.banmanager.common.ormlite.support.ConnectionSource connection, me.confuser.banmanager.common.ormlite.table.DatabaseTableConfig<?> table) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMute(IpMuteData mute) me.confuser.banmanager.common.ormlite.dao.CloseableIterator<IpMuteData> findMutes(long fromTime) getMute(InetAddress address) getMute(me.confuser.banmanager.common.ipaddr.IPAddress ip) getMutes()booleanisMuted(InetAddress address) booleanisMuted(me.confuser.banmanager.common.ipaddr.IPAddress ip) booleanmute(IpMuteData mute) voidremoveMute(IpMuteData mute) voidremoveMute(me.confuser.banmanager.common.ipaddr.IPAddress ip) retrieveMute(me.confuser.banmanager.common.ipaddr.IPAddress ip) booleanunmute(IpMuteData mute, PlayerData actor) booleanunmute(IpMuteData mute, PlayerData actor, String reason) booleanunmute(IpMuteData mute, PlayerData actor, String reason, boolean silent) 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, deleteById, deleteIds, 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
-
IpMuteStorage
- Throws:
SQLException
-
IpMuteStorage
public IpMuteStorage(BanManagerPlugin plugin, me.confuser.banmanager.common.ormlite.support.ConnectionSource connection, me.confuser.banmanager.common.ormlite.table.DatabaseTableConfig<?> table) throws SQLException - Throws:
SQLException
-
-
Method Details
-
getMutes
-
isMuted
public boolean isMuted(me.confuser.banmanager.common.ipaddr.IPAddress ip) -
isMuted
-
retrieveMute
public IpMuteData retrieveMute(me.confuser.banmanager.common.ipaddr.IPAddress ip) throws SQLException - Throws:
SQLException
-
getMute
-
getMute
-
addMute
-
removeMute
-
removeMute
public void removeMute(me.confuser.banmanager.common.ipaddr.IPAddress ip) -
mute
- Throws:
SQLException
-
unmute
- Throws:
SQLException
-
unmute
- Throws:
SQLException
-
unmute
public boolean unmute(IpMuteData mute, PlayerData actor, String reason, boolean silent) throws SQLException - Throws:
SQLException
-
findMutes
public me.confuser.banmanager.common.ormlite.dao.CloseableIterator<IpMuteData> findMutes(long fromTime) throws SQLException - Throws:
SQLException
-