@Entity public class Document extends Object implements Serializable
The data attribute is used to hold the ItemCollection data. It is mapped by a OR-Mapper to a large object (Lob). A Client should not work directly with an instance of the Document entity. It's recommended to use the DocumentService which acts as a session facade to manage instances of ItemCollection persisted in a database system.
EntityService,
EntityService,
Serialized Form| Constructor and Description |
|---|
Document()
A Document will be automatically initialized with a unique id and a creation
date.
|
Document(String aID)
This constructor allows the creation of an Document Instance with a default
uniqueID
|
| Modifier and Type | Method and Description |
|---|---|
Calendar |
getCreated()
returns the creation point of time.
|
Map<String,List<Object>> |
getData()
returns the data object part of the Entity represented by a java.util.Map
Data is loaded eager because it is read in any case by the DocumentService.
|
String |
getId()
returns the unique identifier for the Entity.
|
Calendar |
getModified()
Returns the last modification point of time
Note: The field 'modified' is only a complement and is not
used by the DocumentService.
|
String |
getType()
returns the type property of the entity instance.
|
Integer |
getVersion() |
boolean |
isPending()
This transient flag indicates if the document was just saved and is still
managed by the entityManager.
|
void |
setCreated(Calendar created) |
void |
setData(Map<String,List<Object>> itemCol)
sets a data object for this Entity.
|
protected void |
setId(String aID) |
void |
setModified(Calendar modified)
Set the modification point of time
Note: The field 'modified' is only a complement and is not
used by the DocumentService.
|
void |
setPending(boolean pandingState) |
void |
setType(String type) |
void |
setVersion(Integer version) |
public Document()
public Document(String aID)
aID - public boolean isPending()
public void setPending(boolean pandingState)
public String getId()
protected void setId(String aID)
public Integer getVersion()
public void setVersion(Integer version)
public String getType()
EntityServicepublic void setType(String type)
public Calendar getCreated()
public void setCreated(Calendar created)
public Calendar getModified()
Note: The field 'modified' is only a complement and is not used by the DocumentService.
public void setModified(Calendar modified)
Note: The field 'modified' is only a complement and is not used by the DocumentService.
public Map<String,List<Object>> getData()
Data is loaded eager because it is read in any case by the DocumentService.
Copyright © 2006–2018 Imixs Software Solutions GmbH. All rights reserved.