001/*
002 * Copyright (c) 2012 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the Eclipse Public License v1.0
006 * which accompanies this distribution, and is available at
007 * http://www.eclipse.org/legal/epl-v10.html
008 *
009 * Contributors:
010 *     Benoit Delbosc
011 */
012
013package org.nuxeo.ecm.core.storage.sql;
014
015import java.util.Map;
016
017/**
018 * A {@link Mapper} that cache rows.
019 */
020public interface CachingMapper extends Mapper {
021
022    /**
023     * Initialize the caching mapper instance
024     */
025    public void initialize(String repositoryName, Model model, Mapper mapper, InvalidationsPropagator cachePropagator,
026            Map<String, String> properties);
027
028}