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

com.arangodb.InternalDocumentDriver Maven / Gradle / Ivy

There is a newer version: 7.15.0
Show newest version
package com.arangodb;

import java.util.List;

import com.arangodb.entity.DocumentEntity;
import com.arangodb.entity.EdgeEntity;
import com.arangodb.impl.BaseDriverInterface;

/**
 * Created by fbartels on 10/27/14.
 */
public interface InternalDocumentDriver extends BaseDriverInterface {
	 DocumentEntity createDocument(
		String database,
		String collectionName,
		String documentKey,
		T value,
		Boolean waitForSync) throws ArangoException;

	DocumentEntity createDocumentRaw(
		String database,
		String collectionName,
		String rawJsonString,
		Boolean waitForSync) throws ArangoException;

	 DocumentEntity replaceDocument(
		String database,
		String documentHandle,
		T value,
		String rev,
		Boolean waitForSync) throws ArangoException;

	DocumentEntity replaceDocumentRaw(
		String database,
		String documentHandle,
		String rawJsonString,
		String rev,
		Boolean waitForSync) throws ArangoException;

	 DocumentEntity updateDocument(
		String database,
		String documentHandle,
		T value,
		String rev,
		Boolean waitForSync,
		Boolean keepNull) throws ArangoException;

	DocumentEntity updateDocumentRaw(
		String database,
		String documentHandle,
		String rawJsonString,
		String rev,
		Boolean waitForSync,
		Boolean keepNull) throws ArangoException;

	List getDocuments(String database, String collectionName) throws ArangoException;

	String checkDocument(String database, String documentHandle) throws ArangoException;

	 DocumentEntity getDocument(
		String database,
		String documentHandle,
		Class clazz,
		String ifNoneMatchRevision,
		String ifMatchRevision) throws ArangoException;

	String getDocumentRaw(String database, String documentHandle, String ifNoneMatchRevision, String ifMatchRevision)
			throws ArangoException;

	DocumentEntity deleteDocument(String database, String documentHandle, String rev) throws ArangoException;

	 EdgeEntity createEdge(
		String database,
		String collectionName,
		String documentKey,
		T value,
		String fromHandle,
		String toHandle,
		Boolean waitForSync) throws ArangoException;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy