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

com.alon.spring.crud.domain.service.NestedCrudService Maven / Gradle / Ivy

package com.alon.spring.crud.domain.service;

import java.util.Collection;
import java.util.List;

public interface NestedCrudService<
        MASTER_ENTITY_ID_TYPE, MASTER_ENTITY_TYPE,
        NESTED_ENTITY_ID_TYPE, NESTED_ENTITY_TYPE>
extends BiHookable {

    Collection search(MASTER_ENTITY_ID_TYPE masterId, SearchCriteria searchCriteria);

    NESTED_ENTITY_TYPE create(MASTER_ENTITY_ID_TYPE masterId, NESTED_ENTITY_TYPE nestedEntity);

    NESTED_ENTITY_TYPE read(MASTER_ENTITY_ID_TYPE masterId,
            NESTED_ENTITY_ID_TYPE nestedId, List expand);

    NESTED_ENTITY_TYPE update(MASTER_ENTITY_ID_TYPE masterId,
          NESTED_ENTITY_ID_TYPE nestedId, NESTED_ENTITY_TYPE nestedEntity);

    void delete(MASTER_ENTITY_ID_TYPE masterId, NESTED_ENTITY_ID_TYPE nestedId);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy