public class ByteArrayEntity extends Object implements Serializable, DbEntity, HasDbRevision
Modifier and Type | Field and Description |
---|---|
protected byte[] |
bytes |
protected String |
deploymentId |
protected String |
id |
protected String |
name |
protected int |
revision |
protected String |
tenantId |
Constructor and Description |
---|
ByteArrayEntity() |
ByteArrayEntity(byte[] bytes) |
ByteArrayEntity(String name,
byte[] bytes) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes() |
String |
getDeploymentId() |
String |
getId() |
String |
getName() |
Object |
getPersistentState()
Returns a representation of the object,
as would be stored in the database.
|
int |
getRevision() |
int |
getRevisionNext() |
String |
getTenantId() |
void |
setBytes(byte[] bytes) |
void |
setDeploymentId(String deploymentId) |
void |
setId(String id) |
void |
setName(String name) |
void |
setRevision(int revision) |
void |
setTenantId(String tenantId) |
String |
toString() |
protected String id
protected int revision
protected String name
protected byte[] bytes
protected String deploymentId
protected String tenantId
public ByteArrayEntity()
public ByteArrayEntity(String name, byte[] bytes)
public ByteArrayEntity(byte[] bytes)
public byte[] getBytes()
public Object getPersistentState()
DbEntity
getPersistentState
in interface DbEntity
public int getRevisionNext()
getRevisionNext
in interface HasDbRevision
public String getName()
public void setName(String name)
public String getDeploymentId()
public void setDeploymentId(String deploymentId)
public void setBytes(byte[] bytes)
public int getRevision()
getRevision
in interface HasDbRevision
public void setRevision(int revision)
setRevision
in interface HasDbRevision
public String getTenantId()
public void setTenantId(String tenantId)
Copyright © 2017. All rights reserved.