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

com.ocs.dynamo.functional.service.DomainService 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.service;

import java.util.List;

import com.ocs.dynamo.functional.domain.Domain;
import com.ocs.dynamo.functional.domain.DomainChild;
import com.ocs.dynamo.functional.domain.DomainParent;
import com.ocs.dynamo.service.BaseService;

/**
 * Service for working with reference information.
 * 
 * @author Patrick Deenen ([email protected])
 *
 */
public interface DomainService extends BaseService {

    /**
     * Query all entities for a specific type (subclass)
     * 
     * @param type The subclass
     * @return All entities of given type
     */
     List findAllByType(Class type);

    /**
     * Find a domain based on type and unique property value
     * 
     * @param type
     * @param propertyName
     * @param value
     * @param caseSensitive
     * @return
     */
     D findByTypeAndUniqueProperty(Class type, String propertyName, Object value, boolean caseSensitive);

    /**
     * Query the children for a given parent
     * 
     * @param parent
     * @return the children for the given parent
     */
    , P extends DomainParent> List findChildren(P parent);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy