return false;
}
public ArrayList obtainCache(String sql, AdminBase admin, Class clazz){
if(this.cacheStore.containsKey(clazz.getName() + sql)){
CacheManager cache = this.cacheStore.get(clazz.getName() + sql);
switch(cache.getCacheType()){
case 0:
return cache.getData();
case 1:
CacheManager cacheUpdate = new CacheManager();
admin.setCollectionHasName(true);
this.nameCollection.push(cache.getTableName());
admin.obtainWhere(cacheUpdate, "id > 0");
admin.setCollectionHasName(false);
if(cacheUpdate.getId() == cache.getId()){
return cache.getData();
}
this.cacheStore.remove(clazz.getName() + sql);
return admin.obtainAll(clazz, sql);
}