All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dd4t.caching.impl.CacheDependencyImpl Maven / Gradle / Ivy

There is a newer version: 2.1.12
Show newest version
package org.dd4t.caching.impl;

import org.dd4t.caching.CacheDependency;

/**
 * Basic implementation class for a CacheDependency. Supports creation through constructor as well as setters.
 *
 * @author Rogier Oudshoorn
 */
public class CacheDependencyImpl implements CacheDependency {

    private int publicationId;

    private int itemId;

    public CacheDependencyImpl(int dependingPublicationId, int dependingItemId) {
        this.publicationId = dependingPublicationId;
        this.itemId = dependingItemId;
    }

    @Override
    public int getPublicationId() {
        return publicationId;
    }

    @Override
    public int getItemId() {
        return itemId;
    }

    void setPublicationId(int dependingPublicationId) {
        publicationId = dependingPublicationId;
    }

    void setItemId(int dependingItemId) {
        this.itemId = dependingItemId;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy