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

com.backendless.IDataStore Maven / Gradle / Ivy

There is a newer version: 3.1.0
Show newest version
/*
 * ********************************************************************************************************************
 *  

* BACKENDLESS.COM CONFIDENTIAL *

* ******************************************************************************************************************** *

* Copyright 2012 BACKENDLESS.COM. All Rights Reserved. *

* NOTICE: All information contained herein is, and remains the property of Backendless.com and its suppliers, * if any. The intellectual and technical concepts contained herein are proprietary to Backendless.com and its * suppliers and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret * or copyright law. Dissemination of this information or reproduction of this material is strictly forbidden * unless prior written permission is obtained from Backendless.com. *

* ******************************************************************************************************************** */ package com.backendless; import com.backendless.async.callback.AsyncCallback; import com.backendless.exceptions.BackendlessException; import com.backendless.persistence.BackendlessDataQuery; import java.util.List; public interface IDataStore { E save( E entity ) throws BackendlessException; void save( E entity, AsyncCallback responder ); Long remove( E entity ) throws BackendlessException; void remove( E entity, AsyncCallback responder ); E findFirst() throws BackendlessException; E findFirst( int relationsDepth ) throws BackendlessException; E findFirst( List relations ) throws BackendlessException; void findFirst( AsyncCallback responder ); void findFirst( int relationsDepth, AsyncCallback responder ); void findFirst( List relations, AsyncCallback responder ); E findLast() throws BackendlessException; E findLast( int relationsDepth ) throws BackendlessException; E findLast( List relations ) throws BackendlessException; void findLast( AsyncCallback responder ); void findLast( int relationsDepth, AsyncCallback responder ); void findLast( List relations, AsyncCallback responder ); BackendlessCollection find() throws BackendlessException; BackendlessCollection find( BackendlessDataQuery dataQueryOptions ) throws BackendlessException; void find( AsyncCallback> responder ); void find( BackendlessDataQuery dataQueryOptions, AsyncCallback> responder ); E findById( String id ) throws BackendlessException; E findById( String id, List relations ) throws BackendlessException; E findById( String id, int relationsDepth ) throws BackendlessException; E findById( String id, List relations, int relationsDepth ) throws BackendlessException; E findById( E entity ) throws BackendlessException; E findById( E entity, List relations ) throws BackendlessException; E findById( E entity, int relationsDepth ) throws BackendlessException; E findById( E entity, List relations, int relationsDepth ) throws BackendlessException; void findById( String id, AsyncCallback responder ); void findById( String id, List relations, AsyncCallback responder ); void findById( String id, int relationsDepth, AsyncCallback responder ); void findById( String id, List relations, int relationsDepth, AsyncCallback responder ); void findById( E entity, AsyncCallback responder ); void findById( E entity, List relations, AsyncCallback responder ); void findById( E entity, int relationsDepth, AsyncCallback responder ); void findById( E entity, List relations, int relationsDepth, AsyncCallback responder ); void loadRelations( E entity, List relations ) throws BackendlessException; void loadRelations( E entity, List relations, AsyncCallback responder ); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy