public class ByteArrayEntity extends Object implements Serializable, PersistentObject, HasRevision
Modifier and Type | Field and Description |
---|---|
protected byte[] |
bytes |
protected String |
deploymentId |
protected String |
id |
protected String |
name |
protected int |
revision |
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() |
void |
setBytes(byte[] bytes) |
void |
setDeploymentId(String deploymentId) |
void |
setId(String id) |
void |
setRevision(int revision) |
String |
toString() |
protected String id
protected int revision
protected String name
protected byte[] bytes
protected String deploymentId
public ByteArrayEntity()
public ByteArrayEntity(String name, byte[] bytes)
public ByteArrayEntity(byte[] bytes)
public byte[] getBytes()
public Object getPersistentState()
PersistentObject
getPersistentState
in interface PersistentObject
public int getRevisionNext()
getRevisionNext
in interface HasRevision
public String getId()
getId
in interface PersistentObject
public void setId(String id)
setId
in interface PersistentObject
public String getName()
public String getDeploymentId()
public void setDeploymentId(String deploymentId)
public void setBytes(byte[] bytes)
public int getRevision()
getRevision
in interface HasRevision
public void setRevision(int revision)
setRevision
in interface HasRevision
Copyright © 2015. All rights reserved.