public static class Operations.SetPrimaryType extends Object implements Operation
Operation
which calls
Batch.setMixins(NodeId, Name[])
when applied to a Batch
.Modifier and Type | Field and Description |
---|---|
protected NodeId |
nodeId |
protected Name |
primaryTypeName |
Constructor and Description |
---|
SetPrimaryType(NodeId nodeId,
Name primaryTypeName)
Create a new set-mixin
Operation for the given arguments. |
Modifier and Type | Method and Description |
---|---|
void |
apply(Batch batch)
Apply this operation to the given
Batch |
boolean |
equals(Object other) |
boolean |
equals(Operations.SetPrimaryType other) |
int |
hashCode() |
String |
toString() |
protected final NodeId nodeId
protected final Name primaryTypeName
public SetPrimaryType(NodeId nodeId, Name primaryTypeName)
Operation
for the given arguments.nodeId
- primaryTypeName
- Batch.setMixins(NodeId, Name[])
public void apply(Batch batch) throws RepositoryException
Batch
apply
in interface Operation
RepositoryException
public boolean equals(Operations.SetPrimaryType other)
Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.