@PersistenceCapable public class ScheduledRequestWorkflowImpl extends WorkflowImpl implements BasicRequestWorkflow { @SuppressWarnings("unused") private final static String SVN_ID = "$Id: ScheduledRequestWorkflowImpl.java 27417 2011-03-19 21:10:32Z bvanhalderen $"; @Persistent(column=".") protected ScheduledRequest request; public ScheduledRequestWorkflowImpl() throws RemoteException { } @Override public Map<String,Serializable> hints() { Map<String,Serializable> info = super.hints(); return info; } public void cancelRequest() throws WorkflowException, MappingException, RepositoryException { request = null; } }
@PersistenceCapable public class UnlockWorkflowImpl extends WorkflowImpl implements UnlockWorkflow { @SuppressWarnings("unused") private final static String SVN_ID = "$Id: UnlockWorkflowImpl.java 27417 2011-03-19 21:10:32Z bvanhalderen $"; @Persistent(column=".") protected PublishableDocument document; public UnlockWorkflowImpl() throws RemoteException { } @Override public Map<String, Serializable> hints() { Map<String, Serializable> info = super.hints(); if (document == null || !"draft".equals(document.getState())) { info.put("unlock", new Boolean(false)); } return info; } public void unlock() throws WorkflowException, MappingException, RepositoryException, RemoteException { if (document == null) { throw new WorkflowException("No document to unlock"); } document.setOwner(getWorkflowContext().getUserIdentity()); } }
@PersistenceCapable public class BasicRequestWorkflowImpl extends WorkflowImpl implements BasicRequestWorkflow { @SuppressWarnings("unused") private final static String SVN_ID = "$Id: BasicRequestWorkflowImpl.java 27417 2011-03-19 21:10:32Z bvanhalderen $"; @Persistent(column=".") protected PublicationRequest request; public BasicRequestWorkflowImpl() throws RemoteException { } @Override public Map<String,Serializable> hints() { Map<String,Serializable> info = super.hints(); if(request.getOwner() != null) { if(request.getOwner().equals(getWorkflowContext().getUserIdentity())) { info.put("cancelRequest", new Boolean(true)); } else { info.put("cancelRequest", new Boolean(false)); } } return info; } public void cancelRequest() throws WorkflowException, MappingException, RepositoryException { request = null; } }
@javax.jdo.annotations.Persistent @Optional @MemberOrder(name="dates", sequence = "1") public java.sql.Date getJavaSqlDate() { return javaSqlDate; }
@Persistent private String key; @Persistent private String id; @Persistent private byte[] bytes;
@javax.jdo.annotations.Persistent @Optional @MemberOrder(sequence = "1") public MyEnum getMyEnum() { return myEnum; }
@javax.jdo.annotations.Persistent @Optional @MemberOrder(name="dates", sequence = "1") public org.apache.isis.applib.value.Date getApplibDate() { return applibDate; }
@javax.jdo.annotations.Persistent @Optional @MemberOrder(name="dates", sequence = "1") public org.joda.time.LocalDate getJodaLocalDate() { return jodaLocalDate; }
@javax.jdo.annotations.Persistent @Optional @MemberOrder(name="dates", sequence = "1") public org.apache.isis.applib.value.DateTime getApplibDateTime() { return applibDateTime; }
@javax.jdo.annotations.Persistent @Optional @MemberOrder(name="dates", sequence = "1") public org.joda.time.DateTime getJodaDateTime() { return jodaDateTime; }
@javax.jdo.annotations.Persistent() // since not persistent by default @Optional @MemberOrder(sequence = "1") public java.sql.Date getJavaSqlDateProperty() { return javaSqlDateProperty; }
@javax.jdo.annotations.Persistent @Optional @MemberOrder(name="dates", sequence = "1") public org.joda.time.LocalDateTime getJodaLocalDateTime() { return jodaLocalDateTime; } public void setJodaLocalDateTime(final org.joda.time.LocalDateTime jodaLocalDateTime) {
@javax.jdo.annotations.Column(length=JdoColumnLength.DESCRIPTION) @javax.jdo.annotations.Persistent @Property( domainEvent = DescriptionDomainEvent.class ) @Override public String getDescription() { return super.getDescription(); } @Override
@javax.jdo.annotations.Column(allowsNull="false", length=20) @javax.jdo.annotations.Persistent @Property( domainEvent = TypeDomainEvent.class ) @Override public SettingType getType() { return super.getType(); } @Override
@javax.jdo.annotations.Column(length=JdoColumnLength.DESCRIPTION) @javax.jdo.annotations.Persistent @Property( domainEvent=DescriptionDomainEvent.class ) @Override public String getDescription() { return super.getDescription(); } @Override
@javax.jdo.annotations.Column(allowsNull="false", length=JdoColumnLength.SettingAbstract.VALUE_RAW) @javax.jdo.annotations.Persistent @Property( domainEvent = ValueRawDomainEvent.class ) @Override public String getValueRaw() { return super.getValueRaw(); } @Override
@javax.jdo.annotations.Column(allowsNull="false", length=20) @javax.jdo.annotations.Persistent @Property( domainEvent = TypeDomainEvent.class ) @Override public SettingType getType() { return super.getType(); } @Override
@javax.jdo.annotations.Column(allowsNull="false", length=JdoColumnLength.SettingAbstract.VALUE_RAW) @javax.jdo.annotations.Persistent @Property( domainEvent = ValueRawDomainEvent.class ) @Override public String getValueRaw() { return super.getValueRaw(); } @Override
@Persistent(mappedBy="parent") private SortedSet<ChildDomainObject> children = new TreeSet<ChildDomainObject>();
@Persistent(mappedBy="parent") private List<BidirWithListChildEntity> children = new ArrayList<BidirWithListChildEntity>();