
com.ocs.dynamo.functional.dao.DomainDao Maven / Gradle / Ivy
/*
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.
*/
package com.ocs.dynamo.functional.dao;
import java.util.List;
import com.ocs.dynamo.dao.BaseDao;
import com.ocs.dynamo.functional.domain.Domain;
import com.ocs.dynamo.functional.domain.DomainChild;
import com.ocs.dynamo.functional.domain.DomainParent;
/**
* Data access interface for managing domain entities.
*
*
* @author Patrick Deenen ([email protected])
*
*/
public interface DomainDao extends BaseDao {
/**
* Returns the children for a certain parent
*
* @param parent
* @return the children for the given parent
*/
, P extends DomainParent> List findChildren(P parent);
/**
*
* @param type
* @return
*/
List findAllByType(Class type);
/**
* Finds an object based on a unique property value
*
* @param propertyName the name of the property
* @param value the desired value of the property
* @param caseSensitive whether the match is case sensitive
* @return
*/
D findByTypeAndUniqueProperty(Class type, String propertyName, Object value, boolean caseSensitive);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy