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

fr.ird.observe.binder.BinderProvider Maven / Gradle / Ivy

There is a newer version: 1.3
Show newest version
package fr.ird.observe.binder;

/*-
 * #%L
 * ObServe Toolkit :: Common Db
 * %%
 * Copyright (C) 2008 - 2017 IRD, Ultreia.io
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public
 * License along with this program.  If not, see
 * .
 * #L%
 */

import fr.ird.observe.entities.ObserveDataEntity;
import fr.ird.observe.entities.referentiel.ObserveReferentialEntity;
import fr.ird.observe.binder.data.DataDtoReferenceBinderSupport;
import fr.ird.observe.binder.data.DataEntityDtoBinderSupport;
import fr.ird.observe.binder.data.DataEntityReferenceBinderSupport;
import fr.ird.observe.binder.referential.ReferentialDtoReferenceBinderSupport;
import fr.ird.observe.binder.referential.ReferentialEntityDtoBinderSupport;
import fr.ird.observe.binder.referential.ReferentialEntityReferenceBinderSupport;
import fr.ird.observe.dto.DataDto;
import fr.ird.observe.dto.reference.DataDtoReferenceSupport;
import fr.ird.observe.dto.reference.ReferentialDtoReferenceSupport;
import fr.ird.observe.dto.referential.ReferentialDto;

/**
 * Created by tchemit on 29/08/17.
 *
 * @author Tony Chemit - [email protected]
 */
public interface BinderProvider {

    // Dto - Reference

    > ReferentialDtoReferenceBinderSupport getReferentialDtoReferenceFromDto(Class dtoType);

    > ReferentialDtoReferenceBinderSupport getReferentialDtoReferenceFromReference(Class referenceType);

    > DataDtoReferenceBinderSupport getDataDtoReferenceFromDto(Class dtoType);

    > DataDtoReferenceBinderSupport getDataDtoReferenceFromReference(Class referenceType);

    // Entity - Reference

    , E extends ObserveReferentialEntity> ReferentialEntityReferenceBinderSupport getReferentialEntityReferenceFromDto(Class dtoType);

    , E extends ObserveReferentialEntity> ReferentialEntityReferenceBinderSupport getReferentialEntityReferenceFromEntity(Class entityType);
    , E extends ObserveReferentialEntity> ReferentialEntityReferenceBinderSupport getReferentialEntityReferenceFromEntity(E entity);

    , E extends ObserveReferentialEntity> ReferentialEntityReferenceBinderSupport getReferentialEntityReferenceFromReference(Class referenceType);
    , E extends ObserveReferentialEntity> ReferentialEntityReferenceBinderSupport getReferentialEntityReferenceFromReference(R reference);

    , E extends ObserveDataEntity> DataEntityReferenceBinderSupport getDataEntityReferenceFromDto(Class dtoType);

    , E extends ObserveDataEntity> DataEntityReferenceBinderSupport getDataEntityReferenceFromEntity(Class entityType);
    , E extends ObserveDataEntity> DataEntityReferenceBinderSupport getDataEntityReferenceFromEntity(E entity);

    , E extends ObserveDataEntity> DataEntityReferenceBinderSupport getDataEntityReferenceFromReference(Class referenceType);
    , E extends ObserveDataEntity> DataEntityReferenceBinderSupport getDataEntityReferenceFromReference(R reference);

    // Entity - Dto

     ReferentialEntityDtoBinderSupport getReferentialEntityDtoFromDto(Class dtoType);
     ReferentialEntityDtoBinderSupport getReferentialEntityDtoFromDto(D dto);

     ReferentialEntityDtoBinderSupport getReferentialEntityDtoFromEntity(Class entityType);
     ReferentialEntityDtoBinderSupport getReferentialEntityDtoFromEntity(E entity);

     DataEntityDtoBinderSupport getDataEntityDtoFromDto(Class dtoType);
     DataEntityDtoBinderSupport getDataEntityDtoFromDto(D dto);

     DataEntityDtoBinderSupport getDataEntityDtoFromEntity(Class entityType);
     DataEntityDtoBinderSupport getDataEntityDtoFromEntity(E entity);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy