com.backendless.IDataStore Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of backendless Show documentation
Show all versions of backendless Show documentation
Android SDK used by developers to provide Backendless API in apps.
/*
* ********************************************************************************************************************
*
* 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.DataQueryBuilder;
import com.backendless.persistence.LoadRelationsQueryBuilder;
import java.util.Collection;
import java.util.List;
import java.util.Map;
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 );
int remove( String whereClause ) throws BackendlessException;
void remove( String whereClause, AsyncCallback responder ) throws BackendlessException;
int update( String whereClause, Map changes ) throws BackendlessException;
void update( String whereClause, Map changes, AsyncCallback responder ) throws BackendlessException;
E findFirst() throws BackendlessException;
E findFirst( Integer relationsDepth ) throws BackendlessException;
E findFirst( List relations ) throws BackendlessException;
void findFirst( AsyncCallback responder );
void findFirst( Integer relationsDepth, AsyncCallback responder );
void findFirst( List relations, AsyncCallback responder );
E findLast() throws BackendlessException;
E findLast( Integer relationsDepth ) throws BackendlessException;
E findLast( List relations ) throws BackendlessException;
void findLast( AsyncCallback responder );
void findLast( Integer relationsDepth, AsyncCallback responder );
void findLast( List relations, AsyncCallback responder );
List find() throws BackendlessException;
List find( DataQueryBuilder dataQueryBuilder ) throws BackendlessException;
void find( AsyncCallback> responder );
void find( DataQueryBuilder dataQueryBuilder, AsyncCallback> responder );
E findById( String id ) throws BackendlessException;
E findById( String id, List relations ) throws BackendlessException;
E findById( String id, Integer relationsDepth ) throws BackendlessException;
E findById( String id, List relations, Integer relationsDepth ) throws BackendlessException;
E findById( String id, DataQueryBuilder queryBuilder ) throws BackendlessException;
E findById( E entity ) throws BackendlessException;
E findById( E entity, List relations ) throws BackendlessException;
E findById( E entity, Integer relationsDepth ) throws BackendlessException;
E findById( E entity, List relations, Integer relationsDepth ) throws BackendlessException;
E findById( E entity, DataQueryBuilder queryBuilder ) throws BackendlessException;
int getObjectCount();
int getObjectCount( DataQueryBuilder dataQueryBuilder );
void findById( String id, AsyncCallback responder );
void findById( String id, List relations, AsyncCallback responder );
void findById( String id, Integer relationsDepth, AsyncCallback responder );
void findById( String id, List relations, Integer relationsDepth, AsyncCallback responder );
void findById( String id, DataQueryBuilder queryBuilder, AsyncCallback responder );
void findById( E entity, AsyncCallback responder );
void findById( E entity, List relations, AsyncCallback responder );
void findById( E entity, Integer relationsDepth, AsyncCallback responder );
void findById( E entity, List relations, Integer relationsDepth, AsyncCallback responder );
void findById( E entity, DataQueryBuilder queryBuilder, AsyncCallback responder );
/**
* @see com.backendless.persistence.LoadRelationsQueryBuilder
*
* @param objectId parentObjectId
* @param child relation type
*/
List loadRelations( String objectId, LoadRelationsQueryBuilder queryBuilder );
/**
* @see com.backendless.persistence.LoadRelationsQueryBuilder
*
* @param objectId parentObjectId
* @param child relation type
* @param responder asynchronous callback
*/
void loadRelations( String objectId, LoadRelationsQueryBuilder queryBuilder, AsyncCallback> responder );
void getObjectCount( AsyncCallback responder );
void getObjectCount( DataQueryBuilder dataQueryBuilder, AsyncCallback responder );
int addRelation( E parent, String relationColumnName, Collection children );
void addRelation( E parent, String relationColumnName, Collection children, AsyncCallback callback );
int addRelation( E parent, String relationColumnName, String whereClause );
void addRelation( E parent, String relationColumnName, String whereClause, AsyncCallback callback );
int setRelation( E parent, String relationColumnName, Collection children );
void setRelation( E parent, String relationColumnName, Collection children, AsyncCallback callback );
int setRelation( E parent, String relationColumnName, String whereClause );
void setRelation( E parent, String relationColumnName, String whereClause, AsyncCallback callback );
int deleteRelation( E parent, String relationColumnName, Collection children );
void deleteRelation( E parent, String relationColumnName, Collection children, AsyncCallback callback );
int deleteRelation( E parent, String relationColumnName, String whereClause );
void deleteRelation( E parent, String relationColumnName, String whereClause, AsyncCallback callback );
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy