public int storeAll(List<? extends GenericValue> values) throws GenericEntityException { int count = 0; for (GenericValue gv : values) { if (addToCache(gv)) { count++; } } return count; }
public int store(GenericValue value) throws GenericEntityException { if (addToCache(value)) { return 1; } else { return 0; } }
public int store(GenericValue value) throws GenericEntityException { if (addToCache(value)) { return 1; } else { return 0; } }
public GenericValue create(GenericValue value) throws GenericEntityException { if (addToCache(value)) { return value; } else { return null; } }
public GenericValue create(GenericValue value) throws GenericEntityException { if (addToCache(value)) { return value; } else { return null; } }
public int store(GenericValue value) throws GenericEntityException { if (addToCache(value)) { return 1; } else { return 0; } }
public GenericValue create(GenericValue value) throws GenericEntityException { if (addToCache(value)) { return value; } else { return null; } }
public int storeAll(List values) throws GenericEntityException { int count = 0; for (Iterator iterator = values.iterator(); iterator.hasNext();) { GenericValue gv = (GenericValue) iterator.next(); if (addToCache(gv)) { count++; } } return count; }
public int storeAll(List values) throws GenericEntityException { int count = 0; for (Iterator iterator = values.iterator(); iterator.hasNext();) { GenericValue gv = (GenericValue) iterator.next(); if (addToCache(gv)) { count++; } } return count; }