@@ -746,23 +746,6 @@ public <T> DocumentEntity<T> createDocument(
746746 return documentDriver .createDocument (getDefaultDatabase (), collectionName , documentKey , value , waitForSync );
747747 }
748748
749- /**
750- * This method replaces the content of the document defined by documentId.
751- *
752- * @param collectionName
753- * The collection's name.
754- * @param documentId
755- * The document's id.
756- * @param value
757- * An object containing the documents attributes
758- * @return DocumentEntity<?>
759- * @throws ArangoException
760- */
761- public <T > DocumentEntity <T > replaceDocument (final String collectionName , final long documentId , final T value )
762- throws ArangoException {
763- return replaceDocument (createDocumentHandle (collectionName , String .valueOf (documentId )), value , null , null );
764- }
765-
766749 /**
767750 * This method replaces the content of the document defined by documentKey.
768751 *
@@ -795,36 +778,6 @@ public <T> DocumentEntity<T> replaceDocument(final String documentHandle, final
795778 return documentDriver .replaceDocument (getDefaultDatabase (), documentHandle , value , null , null );
796779 }
797780
798- /**
799- * This method replaces the content of the document defined by documentId.
800- * This method offers a parameter rev (revision). If the revision of the
801- * document on the server does not match the given revision an error is
802- * thrown.
803- *
804- * @param collectionName
805- * The collection's name.
806- * @param documentId
807- * The document's id.
808- * @param value
809- * An object containing the new attributes of the document.
810- * @param rev
811- * the desired revision.
812- * @param waitForSync
813- * if set to true the response is returned when the server has
814- * finished.
815- * @return a DocumentEntity object
816- * @throws ArangoException
817- */
818- public DocumentEntity <?> replaceDocument (
819- final String collectionName ,
820- final long documentId ,
821- final Object value ,
822- final String rev ,
823- final Boolean waitForSync ) throws ArangoException {
824- return replaceDocument (createDocumentHandle (collectionName , String .valueOf (documentId )), value , rev ,
825- waitForSync );
826- }
827-
828781 /**
829782 * This method replaces the content of the document defined by documentKey.
830783 * This method offers a parameter rev (revision). If the revision of the
@@ -880,24 +833,6 @@ public <T> DocumentEntity<T> replaceDocument(
880833 return documentDriver .replaceDocument (getDefaultDatabase (), documentHandle , value , rev , waitForSync );
881834 }
882835
883- /**
884- * This method updates a document defined by documentId.
885- *
886- * @param collectionName
887- * The collection's name.
888- * @param documentId
889- * The document's id.
890- * @param value
891- * An object containing the documents attributes
892- * @return DocumentEntity<?>
893- * @throws ArangoException
894- */
895- public DocumentEntity <?> updateDocument (final String collectionName , final long documentId , final Object value )
896- throws ArangoException {
897- return updateDocument (createDocumentHandle (collectionName , String .valueOf (documentId )), value , null , null ,
898- null );
899- }
900-
901836 /**
902837 * This method updates a document defined by documentKey.
903838 *
@@ -929,29 +864,6 @@ public <T> DocumentEntity<T> updateDocument(final String documentHandle, final T
929864 return documentDriver .updateDocument (getDefaultDatabase (), documentHandle , value , null , null , null );
930865 }
931866
932- /**
933- * This method updates a document defined by documentId.
934- *
935- * @param collectionName
936- * The collection name.
937- * @param documentId
938- * The document id.
939- * @param value
940- * An object containing the documents attributes
941- * @param keepNull
942- * If true null values are kept.
943- * @return DocumentEntity<?>
944- * @throws ArangoException
945- */
946- public DocumentEntity <?> updateDocument (
947- final String collectionName ,
948- final long documentId ,
949- final Object value ,
950- final Boolean keepNull ) throws ArangoException {
951- return updateDocument (createDocumentHandle (collectionName , String .valueOf (documentId )), value , null , null ,
952- keepNull );
953- }
954-
955867 /**
956868 * This method updates a document defined by documentKey.
957869 *
@@ -991,38 +903,6 @@ public <T> DocumentEntity<T> updateDocument(final String documentHandle, final T
991903 return documentDriver .updateDocument (getDefaultDatabase (), documentHandle , value , null , null , keepNull );
992904 }
993905
994- /**
995- * This method updates a document defined by documentId. This method offers
996- * a parameter rev (revision). If the revision of the document on the server
997- * does not match the given revision an error is thrown.
998- *
999- * @param collectionName
1000- * The collection name.
1001- * @param documentId
1002- * The document id.
1003- * @param value
1004- * An object containing the documents attributes
1005- * @param rev
1006- * The desired revision
1007- * @param waitForSync
1008- * if set to true the response is returned when the server has
1009- * finished.
1010- * @param keepNull
1011- * If true null values are kept.
1012- * @return a DocumentEntity object
1013- * @throws ArangoException
1014- */
1015- public DocumentEntity <?> updateDocument (
1016- final String collectionName ,
1017- final long documentId ,
1018- final Object value ,
1019- final String rev ,
1020- final Boolean waitForSync ,
1021- final Boolean keepNull ) throws ArangoException {
1022- return updateDocument (createDocumentHandle (collectionName , String .valueOf (documentId )), value , rev , waitForSync ,
1023- keepNull );
1024- }
1025-
1026906 /**
1027907 * This method updates a document defined by documentKey. This method offers
1028908 * a parameter rev (revision). If the revision of the document on the server
@@ -1094,23 +974,6 @@ public List<String> getDocuments(final String collectionName) throws ArangoExcep
1094974 return documentDriver .getDocuments (getDefaultDatabase (), collectionName );
1095975 }
1096976
1097- /**
1098- * The exists method determines whether a document exists given its
1099- * identifier. Instead of returning the found document or an error, this
1100- * method will return either true or false. It can thus be used for easy
1101- * existence checks.
1102- *
1103- * @param collectionName
1104- * The collection name.
1105- * @param documentId
1106- * The document id
1107- * @return true, if the document exists
1108- * @throws ArangoException
1109- */
1110- public boolean exists (final String collectionName , final long documentId ) throws ArangoException {
1111- return exists (createDocumentHandle (collectionName , String .valueOf (documentId )));
1112- }
1113-
1114977 /**
1115978 * The exists method determines whether a document exists given its
1116979 * identifier. Instead of returning the found document or an error, this
@@ -1151,20 +1014,6 @@ public boolean exists(final String documentHandle) throws ArangoException {
11511014 return true ;
11521015 }
11531016
1154- /**
1155- * This method returns the current revision of a document.
1156- *
1157- * @param collectionName
1158- * The collection name.
1159- * @param documentId
1160- * The document id
1161- * @return the document revision number
1162- * @throws ArangoException
1163- */
1164- public String checkDocument (final String collectionName , final long documentId ) throws ArangoException {
1165- return checkDocument (createDocumentHandle (collectionName , String .valueOf (documentId )));
1166- }
1167-
11681017 /**
11691018 * This method returns the current revision of a document.
11701019 *
@@ -1191,24 +1040,6 @@ public String checkDocument(final String documentHandle) throws ArangoException
11911040 return documentDriver .checkDocument (getDefaultDatabase (), documentHandle );
11921041 }
11931042
1194- /**
1195- * Returns a document entity.
1196- *
1197- * @param collectionName
1198- * The collection name.
1199- * @param documentId
1200- * The document id
1201- * @param clazz
1202- * The expected class, the result from the server request is
1203- * deserialized to an instance of this class.
1204- * @return a DocumentEntity object
1205- * @throws ArangoException
1206- */
1207- public <T > DocumentEntity <T > getDocument (final String collectionName , final long documentId , final Class <T > clazz )
1208- throws ArangoException {
1209- return getDocument (createDocumentHandle (collectionName , String .valueOf (documentId )), clazz );
1210- }
1211-
12121043 /**
12131044 * Returns a document entity.
12141045 *
@@ -1272,20 +1103,6 @@ public <T> DocumentEntity<T> getDocument(
12721103 ifMatchRevision );
12731104 }
12741105
1275- /**
1276- * Deletes a document from the database.
1277- *
1278- * @param collectionName
1279- * The collection name.
1280- * @param documentId
1281- * The document id.
1282- * @return a DocumentEntity object
1283- * @throws ArangoException
1284- */
1285- public DocumentEntity <?> deleteDocument (final String collectionName , final long documentId ) throws ArangoException {
1286- return deleteDocument (createDocumentHandle (collectionName , String .valueOf (documentId )));
1287- }
1288-
12891106 /**
12901107 * Deletes a document from the database.
12911108 *
@@ -1313,25 +1130,6 @@ public DocumentEntity<?> deleteDocument(final String documentHandle) throws Aran
13131130 return documentDriver .deleteDocument (getDefaultDatabase (), documentHandle , null );
13141131 }
13151132
1316- /**
1317- * Deletes a document from the database. This method offers a parameter rev
1318- * (revision). If the revision of the document on the server does not match
1319- * the given revision an error is thrown.
1320- *
1321- * @param collectionName
1322- * The collection name.
1323- * @param documentId
1324- * The document id.
1325- * @param rev
1326- * The desired revision
1327- * @return a DocumentEntity object
1328- * @throws ArangoException
1329- */
1330- public DocumentEntity <?> deleteDocument (final String collectionName , final long documentId , final String rev )
1331- throws ArangoException {
1332- return deleteDocument (createDocumentHandle (collectionName , String .valueOf (documentId )), rev );
1333- }
1334-
13351133 /**
13361134 * Deletes a document from the database. This method offers a parameter rev
13371135 * (revision). If the revision of the document on the server does not match
0 commit comments