List of usage examples for org.apache.ibatis.cache Cache getId
String getId();
From source file:com.dmm.framework.basedb.apache.ibatis.session.Configuration.java
License:Apache License
public void addCache(Cache cache) { caches.put(cache.getId(), cache); }
From source file:com.shine.his.common.mybatis.HISMybatisLRUCache.java
License:Apache License
/** * {@inheritDoc}//from w w w .ja v a 2 s . co m */ @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof Cache)) { return false; } Cache otherCache = (Cache) obj; return this.id.equals(otherCache.getId()); }
From source file:io.github.hengyunabc.mybatis.EhcacheCache.java
License:Apache License
/** * {@inheritDoc}//from w w w. j a va2 s. c o m */ @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof Cache)) { return false; } Cache otherCache = (Cache) obj; return id.equals(otherCache.getId()); }
From source file:util.cache.MemcachedCache.java
License:Apache License
@Override public boolean equals(Object o) { if (getId() == null) { throw new CacheException("Cache instances require an ID."); }//w ww . j a va 2 s .c o m if (this == o) { return true; } if (!(o instanceof Cache)) { return false; } Cache otherCache = (Cache) o; return getId().equals(otherCache.getId()); }