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

backend.services.DBService Maven / Gradle / Ivy

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

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 Iterable findAll();

    public T find(String id);

    public void save(T object);

    public void delete(String id);

    public long count();

    public Class getClassType();

    public SortOrder getSortOrderAsc();

    public SortOrder getSortOrderDesc();

    public Iterable executeQuery(String query);

    public  Iterable executeQuery(Class aClass, String query);

    public T executeQueryForObject(String query);

}