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 |
Modifier | Constructor and Description |
---|---|
protected |
ByteArrayEntity() |
|
ByteArrayEntity(byte[] bytes) |
|
ByteArrayEntity(String name,
byte[] bytes) |
Modifier and Type | Method and Description |
---|---|
static ByteArrayEntity |
createAndInsert(byte[] bytes) |
static ByteArrayEntity |
createAndInsert(String name,
byte[] bytes) |
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 |
setName(String name) |
void |
setRevision(int revision) |
String |
toString() |
protected String id
protected int revision
protected String name
protected byte[] bytes
protected String deploymentId
protected ByteArrayEntity()
public ByteArrayEntity(String name, byte[] bytes)
public ByteArrayEntity(byte[] bytes)
public static ByteArrayEntity createAndInsert(String name, byte[] bytes)
public static ByteArrayEntity createAndInsert(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 void setName(String name)
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 © 2016 Alfresco. All rights reserved.