public class CommandJdo extends org.apache.isis.objectstore.jdo.applib.service.DomainChangeJdoAbstract implements org.apache.isis.applib.services.command.Command
| Constructor and Description |
|---|
CommandJdo() |
| Modifier and Type | Method and Description |
|---|---|
String |
getArguments() |
Timestamp |
getCompletedAt()
The date/time at which this interaction completed.
|
BigDecimal |
getDuration()
The number of seconds (to 3 decimal places) that this interaction lasted.
|
String |
getException()
Stack trace of any exception that might have occurred if this interaction/transaction aborted.
|
org.apache.isis.applib.annotation.Command.ExecuteIn |
getExecuteIn()
Whether the action was invoked explicitly by the user, or scheduled as a background
task, or as for some other reason, eg a side-effect of rendering an object due to
get-after-post).
|
org.apache.isis.applib.services.command.Command.Executor |
getExecutor() |
String |
getMemberIdentifier() |
String |
getMemento() |
org.apache.isis.applib.services.command.Command |
getParent() |
org.apache.isis.applib.annotation.Command.Persistence |
getPersistence() |
org.apache.isis.applib.services.bookmark.Bookmark |
getResult() |
String |
getResultStr() |
String |
getResultSummary() |
Timestamp |
getStartedAt() |
String |
getTargetAction() |
String |
getTargetClass() |
String |
getTargetStr() |
Timestamp |
getTimestamp()
The date/time at which this action was created.
|
UUID |
getTransactionId()
The unique identifier (a GUID) of the transaction in which this command occurred.
|
String |
getUser() |
boolean |
hideOpenResultObject() |
boolean |
hideShowException() |
boolean |
isCausedException() |
boolean |
isComplete() |
boolean |
isPersistHint() |
int |
next(String sequenceName) |
Object |
openResultObject() |
void |
setArguments(String arguments) |
void |
setCompletedAt(Timestamp completed) |
void |
setException(String exception) |
void |
setExecuteIn(org.apache.isis.applib.annotation.Command.ExecuteIn nature)
NOT API: intended to be called only by the framework.
|
void |
setExecutor(org.apache.isis.applib.services.command.Command.Executor nature) |
void |
setMemberIdentifier(String memberIdentifier) |
void |
setMemento(String memento) |
void |
setParent(org.apache.isis.applib.services.command.Command parent) |
void |
setPersistence(org.apache.isis.applib.annotation.Command.Persistence persistence) |
void |
setPersistHint(boolean persistHint) |
void |
setResult(org.apache.isis.applib.services.bookmark.Bookmark result) |
void |
setResultStr(String resultStr) |
void |
setStartedAt(Timestamp startedAt)
NOT API: intended to be called only by the framework.
|
void |
setTargetAction(String targetAction) |
void |
setTargetClass(String targetClass) |
void |
setTargetStr(String targetStr) |
void |
setTimestamp(Timestamp timestamp)
NOT API: intended to be called only by the framework.
|
void |
setTransactionId(UUID transactionId)
NOT API: intended to be called only by the framework.
|
void |
setUser(String user) |
String |
showException() |
String |
title() |
String |
toString() |
compareByTargetThenTimestampDescThenType, compareByTargetThenUserThenTimestampDescThenType, compareByTimestampDescThenType, compareByUserThenTargetThenTimestampDescThenType, compareByUserThenTimestampDescThenType, getPostValue, getPreValue, getPropertyId, getTarget, getType, hideOpenTargetObject, openTargetObject, setTargetpublic CommandJdo()
public String getUser()
getUser in interface org.apache.isis.applib.services.command.CommandgetUser in class org.apache.isis.objectstore.jdo.applib.service.DomainChangeJdoAbstractpublic void setUser(String user)
setUser in interface org.apache.isis.applib.services.command.Commandpublic Timestamp getTimestamp()
getTimestamp in interface org.apache.isis.applib.services.command.CommandgetTimestamp in class org.apache.isis.objectstore.jdo.applib.service.DomainChangeJdoAbstractpublic void setTimestamp(Timestamp timestamp)
setTimestamp in interface org.apache.isis.applib.services.command.Commandpublic org.apache.isis.applib.services.command.Command.Executor getExecutor()
getExecutor in interface org.apache.isis.applib.services.command.Commandpublic void setExecutor(org.apache.isis.applib.services.command.Command.Executor nature)
setExecutor in interface org.apache.isis.applib.services.command.Commandpublic org.apache.isis.applib.annotation.Command.ExecuteIn getExecuteIn()
getExecuteIn in interface org.apache.isis.applib.services.command.Commandpublic void setExecuteIn(org.apache.isis.applib.annotation.Command.ExecuteIn nature)
setExecuteIn in interface org.apache.isis.applib.services.command.Commandpublic org.apache.isis.applib.services.command.Command getParent()
getParent in interface org.apache.isis.applib.services.command.Commandpublic void setParent(org.apache.isis.applib.services.command.Command parent)
setParent in interface org.apache.isis.applib.services.command.Commandpublic UUID getTransactionId()
getTransactionId in interface org.apache.isis.applib.services.HasTransactionIdgetTransactionId in class org.apache.isis.objectstore.jdo.applib.service.DomainChangeJdoAbstractpublic void setTransactionId(UUID transactionId)
Implementation notes: copied over from the Isis transaction when the command is persisted.
setTransactionId in interface org.apache.isis.applib.services.HasTransactionIdpublic String getTargetClass()
getTargetClass in interface org.apache.isis.applib.services.command.CommandgetTargetClass in class org.apache.isis.objectstore.jdo.applib.service.DomainChangeJdoAbstractpublic void setTargetClass(String targetClass)
setTargetClass in interface org.apache.isis.applib.services.command.Commandpublic String getTargetAction()
getTargetAction in interface org.apache.isis.applib.services.command.CommandgetTargetAction in class org.apache.isis.objectstore.jdo.applib.service.DomainChangeJdoAbstractpublic void setTargetAction(String targetAction)
setTargetAction in interface org.apache.isis.applib.services.command.Commandpublic String getTargetStr()
getTargetStr in class org.apache.isis.objectstore.jdo.applib.service.DomainChangeJdoAbstractpublic void setTargetStr(String targetStr)
setTargetStr in class org.apache.isis.objectstore.jdo.applib.service.DomainChangeJdoAbstractpublic String getArguments()
getArguments in interface org.apache.isis.applib.services.command.Commandpublic void setArguments(String arguments)
setArguments in interface org.apache.isis.applib.services.command.Commandpublic String getMemberIdentifier()
getMemberIdentifier in interface org.apache.isis.applib.services.command.Commandpublic void setMemberIdentifier(String memberIdentifier)
setMemberIdentifier in interface org.apache.isis.applib.services.command.Commandpublic String getMemento()
getMemento in interface org.apache.isis.applib.services.command.Commandpublic void setMemento(String memento)
setMemento in interface org.apache.isis.applib.services.command.Commandpublic Timestamp getStartedAt()
getStartedAt in interface org.apache.isis.applib.services.command.Commandpublic void setStartedAt(Timestamp startedAt)
setStartedAt in interface org.apache.isis.applib.services.command.Commandpublic Timestamp getCompletedAt()
getCompletedAt in interface org.apache.isis.applib.services.command.Commandpublic void setCompletedAt(Timestamp completed)
setCompletedAt in interface org.apache.isis.applib.services.command.Command@Digits(integer=5,
fraction=3)
public BigDecimal getDuration()
Populated only if it has completed.
public boolean isComplete()
public String getResultSummary()
public org.apache.isis.applib.services.bookmark.Bookmark getResult()
getResult in interface org.apache.isis.applib.services.command.Commandpublic void setResult(org.apache.isis.applib.services.bookmark.Bookmark result)
setResult in interface org.apache.isis.applib.services.command.Commandpublic String getResultStr()
public void setResultStr(String resultStr)
public Object openResultObject()
public boolean hideOpenResultObject()
public String getException()
Not visible in the UI, but accessible
Not part of the applib API, because the default implementation is not persistent and so there's no object that can be accessed to be annotated.
getException in interface org.apache.isis.applib.services.command.Commandpublic void setException(String exception)
setException in interface org.apache.isis.applib.services.command.Commandpublic boolean isCausedException()
public String showException()
public boolean hideShowException()
public int next(String sequenceName)
next in interface org.apache.isis.applib.services.command.Commandpublic org.apache.isis.applib.annotation.Command.Persistence getPersistence()
getPersistence in interface org.apache.isis.applib.services.command.Commandpublic void setPersistence(org.apache.isis.applib.annotation.Command.Persistence persistence)
setPersistence in interface org.apache.isis.applib.services.command.Commandpublic boolean isPersistHint()
isPersistHint in interface org.apache.isis.applib.services.command.Commandpublic void setPersistHint(boolean persistHint)
setPersistHint in interface org.apache.isis.applib.services.command.CommandCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.