Class IpRangeBanStorage

java.lang.Object
me.confuser.banmanager.common.ormlite.dao.BaseDaoImpl<IpRangeBanData,Integer>
me.confuser.banmanager.common.storage.BaseStorage<IpRangeBanData,Integer>
me.confuser.banmanager.common.storage.IpRangeBanStorage
All Implemented Interfaces:
Iterable<IpRangeBanData>, me.confuser.banmanager.common.ormlite.dao.CloseableIterable<IpRangeBanData>, me.confuser.banmanager.common.ormlite.dao.Dao<IpRangeBanData,Integer>

public class IpRangeBanStorage extends BaseStorage<IpRangeBanData,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

    plugin

    Fields inherited from class me.confuser.banmanager.common.ormlite.dao.BaseDaoImpl

    connectionSource, databaseType, dataClass, lastIterator, objectFactory, statementExecutor, tableConfig, tableInfo
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    IpRangeBanStorage(BanManagerPlugin plugin, me.confuser.banmanager.common.ormlite.support.ConnectionSource connection, me.confuser.banmanager.common.ormlite.table.DatabaseTableConfig<?> ipRangeBans)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    boolean
     
    me.confuser.banmanager.common.ormlite.dao.CloseableIterator<IpRangeBanData>
    findBans(long fromTime)
     
     
    getBan(me.confuser.banmanager.common.google.guava.collect.Range range)
     
    getBan(me.confuser.banmanager.common.ipaddr.IPAddress ip)
     
    ConcurrentHashMap<me.confuser.banmanager.common.google.guava.collect.Range<me.confuser.banmanager.common.ipaddr.IPAddress>,IpRangeBanData>
     
    boolean
     
    boolean
     
    boolean
    isBanned(me.confuser.banmanager.common.google.guava.collect.Range range)
     
    boolean
    isBanned(me.confuser.banmanager.common.ipaddr.IPAddress ip)
     
    void
     
    void
    removeBan(me.confuser.banmanager.common.google.guava.collect.Range range)
     
    retrieveBan(me.confuser.banmanager.common.ipaddr.IPAddress fromIp, me.confuser.banmanager.common.ipaddr.IPAddress toIp)
     
    boolean
     
    boolean
    unban(IpRangeBanData ban, PlayerData actor, String reason)
     
    boolean
    unban(IpRangeBanData ban, PlayerData actor, String reason, boolean silent)
     

    Methods inherited from class me.confuser.banmanager.common.storage.BaseStorage

    create, createPreservingTimestamps, getBmTableName, getDatabaseConfig, hasUpdatedColumn, update, updatePreservingTimestamps

    Methods 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, updateRaw

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator