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

services.DBService Maven / Gradle / Ivy

There is a newer version: 1.2.3
Show newest version
package services;

import io.reactivex.Observable;
import org.neo4j.ogm.cypher.query.SortOrder;

/**
 * Created by zua on 15/04/17.
 * @param  The type of  managed domain entities
 */
public interface DBService {

    public Observable findAll();
    public Observable findAllAsc();
    public Observable findAllDesc();

    public Observable findAllWithLimit(int limit);
    public Observable findAllAscWithLimit(int limit);
    public Observable findAllDescWithLimit(int limit);

    public Observable findAll(String property, Object value);
    public Observable findAllAsc(String property, Object value);
    public Observable findAllDesc(String property, Object value);

    public Observable findAll(String property, Object value, int limit);
    public Observable findAllAsc(String property, Object value, int limit);
    public Observable findAllDesc(String property, Object value, int limit);

    public Observable findAll(String username);
    public Observable findAllAsc(String username);
    public Observable findAllDesc(String username);

    public Observable findAll(String username, int limit);
    public Observable findAllAsc(String username, int limit);
    public Observable findAllDesc(String username, int limit);

    public Observable findAll(String username, String property, Object value);
    public Observable findAllAsc(String username, String property, Object value);
    public Observable findAllDesc(String username, String property, Object value);
    
    public Observable findAll(String username, String property, Object value, int limit);
    public Observable findAllAsc(String username, String property, Object value, int limit);
    public Observable findAllDesc(String username, String property, Object value, int limit);

  
    public T find(String id);    
    public T find(T object);

    public void save(T object);
    public void delete(String id);
    public long count();
    
    public Class getClassType();
    public SortOrder getSortOrderAsc();
    public SortOrder getSortOrderDesc();
    public Observable executeQuery(String query);   
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy