/*
* #%L
* BroadleafCommerce Common Libraries
* %%
* Copyright (C) 2009 - 2013 Broadleaf Commerce
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
package org.broadleafcommerce.common.config.dao;
import org.broadleafcommerce.common.config.domain.SystemProperty;
import java.util.List;
/**
* This DAO enables access to manage system properties that can be stored in the database.
* <p/>
* User: Kelly Tisdell
* Date: 6/25/12
*/
public interface SystemPropertiesDao {
public SystemProperty saveSystemProperty(SystemProperty systemProperty);
public void deleteSystemProperty(SystemProperty systemProperty);
public List<SystemProperty> readAllSystemProperties();
public SystemProperty readSystemPropertyByName(String name);
public SystemProperty createNewSystemProperty();
/**
* Reads a SystemProperty by its internal database id
*
* @param id
* @return the {@link SystemProperty}
*/
public SystemProperty readById(Long id);
/**
* Removes the SystemProperty from the null-capable cache.
*
* @param systemProperty the property instance
*/
public void removeFromCache(SystemProperty systemProperty);
}