public class ByteArrayRef extends Object implements Serializable
Encapsulates the logic for transparently working with ByteArrayEntity .
| Modifier and Type | Field and Description |
|---|---|
protected CommandExecutor |
commandExecutor |
protected boolean |
deleted |
| Constructor and Description |
|---|
ByteArrayRef() |
ByteArrayRef(String id,
CommandExecutor commandExecutor) |
| Modifier and Type | Method and Description |
|---|---|
String |
asString(String engineType)
|
ByteArrayRef |
copy()
This makes a copy of this
ByteArrayRef: a new
ByteArrayRef instance will be created, however with the same id,
name and ByteArrayEntity instances. |
void |
delete(String engineType) |
protected void |
ensureInitialized(String engineType) |
byte[] |
getBytes(String engineType) |
protected AbstractEngineConfiguration |
getEngineConfiguration(String engineType) |
protected AbstractEngineConfiguration |
getEngineConfiguration(String engineType,
CommandContext commandContext) |
protected AbstractEngineConfiguration |
getEngineConfigurationForAllType(CommandContext commandContext) |
ByteArrayEntity |
getEntity(String engineType) |
protected AbstractEngineConfiguration |
getFirstEngineConfigurationWithByteArrayEntityManager(CommandContext commandContext) |
String |
getId() |
String |
getName() |
boolean |
isDeleted() |
protected void |
setBytes(byte[] bytes,
String engineType) |
void |
setValue(String name,
byte[] bytes,
String engineType) |
void |
setValue(String name,
String value,
String engineType)
Set the specified
String as the value of the byte array reference. |
String |
toString() |
protected CommandExecutor commandExecutor
protected boolean deleted
public ByteArrayRef()
public ByteArrayRef(String id, CommandExecutor commandExecutor)
public String getId()
public String getName()
public byte[] getBytes(String engineType)
public String asString(String engineType)
StandardCharsets.UTF_8 Stringpublic void setValue(String name, String value, String engineType)
String as the value of the byte array reference. It uses the
StandardCharsets.UTF_8 charset to convert the String to the byte array.name - the name of the byte array referencevalue - the value of the byte array referenceprotected void setBytes(byte[] bytes,
String engineType)
public ByteArrayEntity getEntity(String engineType)
public void delete(String engineType)
protected void ensureInitialized(String engineType)
public boolean isDeleted()
public ByteArrayRef copy()
ByteArrayRef: a new
ByteArrayRef instance will be created, however with the same id,
name and ByteArrayEntity instances.protected AbstractEngineConfiguration getEngineConfiguration(String engineType)
protected AbstractEngineConfiguration getEngineConfiguration(String engineType, CommandContext commandContext)
protected AbstractEngineConfiguration getEngineConfigurationForAllType(CommandContext commandContext)
protected AbstractEngineConfiguration getFirstEngineConfigurationWithByteArrayEntityManager(CommandContext commandContext)
Copyright © 2021 Flowable. All rights reserved.