Package org.xorm.cache

Examples of org.xorm.cache.DataCache


        return false;
    }

   
    void addToCache(Row row) {
        DataCache cache = factory.getCache();
        if (cache != null) {
            // Don't need to clone anymore...cached flag instead
            //cache.add((Row) row.clone());
            cache.add(row);
        }
    }
View Full Code Here


            cache.add(row);
        }
    }

    void addToCache(Collection rows) {
        DataCache cache = factory.getCache();
        if (cache != null) {
            Iterator i = rows.iterator();
            while (i.hasNext()) {
                Row row = (Row) i.next();
                // Don't need to clone anymore...cached flag instead
                //cache.add((Row) row.clone());
                cache.add(row);
            }
        }
    }
View Full Code Here

            }
        }
    }

    Row getFromCache(Table table, Object primaryKey) {
        DataCache cache = factory.getCache();
        if (cache != null) {
            Row row = cache.get(table, primaryKey);
            return row;
        } else {
            return null;
        }
    }
View Full Code Here

            return null;
        }
    }

    void removeFromCache(Row row) {
        DataCache cache = factory.getCache();
        if (cache != null) {
            cache.remove(row);
        }
    }
View Full Code Here

TOP

Related Classes of org.xorm.cache.DataCache

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.