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()
PersistentObjectgetPersistentState in interface PersistentObjectpublic int getRevisionNext()
getRevisionNext in interface HasRevisionpublic String getId()
getId in interface PersistentObjectpublic void setId(String id)
setId in interface PersistentObjectpublic String getName()
public String getDeploymentId()
public void setDeploymentId(String deploymentId)
public void setBytes(byte[] bytes)
public int getRevision()
getRevision in interface HasRevisionpublic void setRevision(int revision)
setRevision in interface HasRevisionCopyright © 2015. All rights reserved.