public class DoForceInsertExistingDocumentWithHistoryCallable extends java.lang.Object implements SQLCallable<java.lang.Long>
Constructor and Description |
---|
DoForceInsertExistingDocumentWithHistoryCallable(DocumentRevision newRevision,
long docNumericId,
java.util.List<java.lang.String> revisions,
java.util.Map<java.lang.String,java.lang.Object> attachments,
java.lang.String attachmentsDir,
AttachmentStreamFactory attachmentStreamFactory) |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
call(SQLDatabase db) |
public DoForceInsertExistingDocumentWithHistoryCallable(DocumentRevision newRevision, long docNumericId, java.util.List<java.lang.String> revisions, java.util.Map<java.lang.String,java.lang.Object> attachments, java.lang.String attachmentsDir, AttachmentStreamFactory attachmentStreamFactory)
newRevision
- DocumentRevision to insertrevisions
- revision history to insert, it includes all revisions (include the
revision of the DocumentRevision
as well) sorted in ascending order.public java.lang.Long call(SQLDatabase db) throws AttachmentException, DocumentNotFoundException, DatastoreException
call
in interface SQLCallable<java.lang.Long>
AttachmentException
DocumentNotFoundException
DatastoreException