public final class com.mongodb.internal.operation.WriteConcernHelper
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.mongodb.internal.operation.WriteConcernHelper
super_class: java.lang.Object
{
public static void appendWriteConcernToCommand(com.mongodb.WriteConcern, org.bson.BsonDocument, com.mongodb.connection.ConnectionDescription);
descriptor: (Lcom/mongodb/WriteConcern;Lorg/bson/BsonDocument;Lcom/mongodb/connection/ConnectionDescription;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ifnull 2
aload 0
invokevirtual com.mongodb.WriteConcern.isServerDefault:()Z
ifne 2
aload 2
invokestatic com.mongodb.internal.operation.ServerVersionHelper.serverIsAtLeastVersionThreeDotFour:(Lcom/mongodb/connection/ConnectionDescription;)Z
ifeq 2
1: aload 1
ldc "writeConcern"
aload 0
invokevirtual com.mongodb.WriteConcern.asDocument:()Lorg/bson/BsonDocument;
invokevirtual org.bson.BsonDocument.put:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonValue;
pop
2: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 writeConcern Lcom/mongodb/WriteConcern;
0 3 1 commandDocument Lorg/bson/BsonDocument;
0 3 2 description Lcom/mongodb/connection/ConnectionDescription;
MethodParameters:
Name Flags
writeConcern final
commandDocument final
description final
public static void throwOnWriteConcernError(org.bson.BsonDocument, com.mongodb.ServerAddress);
descriptor: (Lorg/bson/BsonDocument;Lcom/mongodb/ServerAddress;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokestatic com.mongodb.internal.operation.WriteConcernHelper.hasWriteConcernError:(Lorg/bson/BsonDocument;)Z
ifeq 3
1: aload 0
aload 1
invokestatic com.mongodb.internal.operation.WriteConcernHelper.throwOnSpecialException:(Lorg/bson/BsonDocument;Lcom/mongodb/ServerAddress;)V
2: aload 0
aload 1
invokestatic com.mongodb.internal.operation.WriteConcernHelper.createWriteConcernException:(Lorg/bson/BsonDocument;Lcom/mongodb/ServerAddress;)Lcom/mongodb/MongoWriteConcernException;
athrow
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 result Lorg/bson/BsonDocument;
0 4 1 serverAddress Lcom/mongodb/ServerAddress;
MethodParameters:
Name Flags
result final
serverAddress final
public static void throwOnSpecialException(org.bson.BsonDocument, com.mongodb.ServerAddress);
descriptor: (Lorg/bson/BsonDocument;Lcom/mongodb/ServerAddress;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ldc "errmsg"
invokestatic com.mongodb.internal.connection.ProtocolHelper.createSpecialException:(Lorg/bson/BsonDocument;Lcom/mongodb/ServerAddress;Ljava/lang/String;)Lcom/mongodb/MongoException;
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
athrow
3: StackMap locals: com.mongodb.MongoException
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 result Lorg/bson/BsonDocument;
0 4 1 serverAddress Lcom/mongodb/ServerAddress;
1 4 2 specialException Lcom/mongodb/MongoException;
MethodParameters:
Name Flags
result final
serverAddress final
public static boolean hasWriteConcernError(org.bson.BsonDocument);
descriptor: (Lorg/bson/BsonDocument;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "writeConcernError"
invokevirtual org.bson.BsonDocument.containsKey:(Ljava/lang/Object;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 result Lorg/bson/BsonDocument;
MethodParameters:
Name Flags
result final
public static com.mongodb.MongoWriteConcernException createWriteConcernException(org.bson.BsonDocument, com.mongodb.ServerAddress);
descriptor: (Lorg/bson/BsonDocument;Lcom/mongodb/ServerAddress;)Lcom/mongodb/MongoWriteConcernException;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: new com.mongodb.MongoWriteConcernException
dup
aload 0
ldc "writeConcernError"
invokevirtual org.bson.BsonDocument.getDocument:(Ljava/lang/Object;)Lorg/bson/BsonDocument;
invokestatic com.mongodb.internal.operation.WriteConcernHelper.createWriteConcernError:(Lorg/bson/BsonDocument;)Lcom/mongodb/bulk/WriteConcernError;
1: iconst_0
iconst_0
aconst_null
invokestatic com.mongodb.WriteConcernResult.acknowledged:(IZLorg/bson/BsonValue;)Lcom/mongodb/WriteConcernResult;
aload 1
2: invokespecial com.mongodb.MongoWriteConcernException.<init>:(Lcom/mongodb/bulk/WriteConcernError;Lcom/mongodb/WriteConcernResult;Lcom/mongodb/ServerAddress;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 result Lorg/bson/BsonDocument;
0 3 1 serverAddress Lcom/mongodb/ServerAddress;
MethodParameters:
Name Flags
result final
serverAddress final
public static com.mongodb.bulk.WriteConcernError createWriteConcernError(org.bson.BsonDocument);
descriptor: (Lorg/bson/BsonDocument;)Lcom/mongodb/bulk/WriteConcernError;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=9, locals=1, args_size=1
start local 0 0: new com.mongodb.bulk.WriteConcernError
dup
aload 0
ldc "code"
invokevirtual org.bson.BsonDocument.getNumber:(Ljava/lang/Object;)Lorg/bson/BsonNumber;
invokevirtual org.bson.BsonNumber.intValue:()I
1: aload 0
ldc "codeName"
new org.bson.BsonString
dup
ldc ""
invokespecial org.bson.BsonString.<init>:(Ljava/lang/String;)V
invokevirtual org.bson.BsonDocument.getString:(Ljava/lang/Object;Lorg/bson/BsonString;)Lorg/bson/BsonString;
invokevirtual org.bson.BsonString.getValue:()Ljava/lang/String;
2: aload 0
ldc "errmsg"
invokevirtual org.bson.BsonDocument.getString:(Ljava/lang/Object;)Lorg/bson/BsonString;
invokevirtual org.bson.BsonString.getValue:()Ljava/lang/String;
3: aload 0
ldc "errInfo"
new org.bson.BsonDocument
dup
invokespecial org.bson.BsonDocument.<init>:()V
invokevirtual org.bson.BsonDocument.getDocument:(Ljava/lang/Object;Lorg/bson/BsonDocument;)Lorg/bson/BsonDocument;
4: invokespecial com.mongodb.bulk.WriteConcernError.<init>:(ILjava/lang/String;Ljava/lang/String;Lorg/bson/BsonDocument;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 writeConcernErrorDocument Lorg/bson/BsonDocument;
MethodParameters:
Name Flags
writeConcernErrorDocument final
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/internal/operation/WriteConcernHelper;
}
SourceFile: "WriteConcernHelper.java"