TransactionContainer

public class TransactionContainer extends Container<EntityInterface> implements ToElementable, JobTarget

Base class for transaction containers used by classes such as RetrieveContainer or WritableContainer.

Author:

Timm Fitschen

Constructors

TransactionContainer

public TransactionContainer()

TransactionContainer

public TransactionContainer(Subject owner, Long timestamp, String requestId)

TransactionContainer

public TransactionContainer(Subject user, Long timestamp, String srid, HashMap<String, String> flags)

Methods

addError

public void addError(Message m)

addFile

public void addFile(String name, FileProperties file)

addMessage

public void addMessage(ToElementable m)

addToElement

public void addToElement(Element element)
Parameters:
  • element

Returns:

Add List of Elements which represent the contained Entities to an predefined element.

getEntityByName

public EntityInterface getEntityByName(String name)

Get the first entity from this container which has this name.

Return null if no matching is in this container.

Parameters:
  • name

getFiles

public HashMap<String, FileProperties> getFiles()

getFlags

public HashMap<String, String> getFlags()

getMessages

public List<ToElementable> getMessages()

getOwner

public Subject getOwner()

getQuery

public Query getQuery()

getRequestId

public String getRequestId()

getStatus

public EntityStatus getStatus()

getTimestamp

public Long getTimestamp()

getTransactionBenchmark

public TransactionBenchmark getTransactionBenchmark()

setFiles

public void setFiles(HashMap<String, FileProperties> files)

setFlags

public void setFlags(HashMap<String, String> flags)

setQuery

public void setQuery(Query query)

setStatus

public void setStatus(EntityStatus status)

skipJob

public boolean skipJob()