Interface ColumnRepositoryProducer


  • public interface ColumnRepositoryProducer
    The producer of Repository
    • Method Detail

      • get

        <T,​K,​R extends Repository<T,​K>> R get​(Class<R> repositoryClass,
                                                                ColumnFamilyManager manager)
        Produces a Repository class from repository class and ColumnFamilyManager
        Type Parameters:
        T - the entity of repository
        K - the K of the entity
        R - the repository type
        Parameters:
        repositoryClass - the repository class
        manager - the manager
        Returns:
        a Repository interface
        Throws:
        NullPointerException - when there is null parameter
      • get

        <T,​K,​R extends Repository<T,​K>> R get​(Class<R> repositoryClass,
                                                                ColumnTemplate template)
        Produces a Repository class from repository class and ColumnTemplate
        Type Parameters:
        T - the entity of repository
        K - the K of the entity
        R - the repository type
        Parameters:
        repositoryClass - the repository class
        template - the template
        Returns:
        a Repository interface
        Throws:
        NullPointerException - when there is null parameter