List of usage examples for java.util Date clone
public Object clone()
From source file:org.wso2.carbon.bpel.core.ode.integration.store.ProcessConfigurationImpl.java
public ProcessConfigurationImpl(Integer tenantId, TDeployment.Process processDescriptor, DeploymentUnitDir du, Date deployDate, EndpointReferenceContext eprContext, ConfigurationContext tenantConfigContext) { this.deployDate = (Date) deployDate.clone(); this.type = Utils.getProcessType(processDescriptor); this.du = du; this.processInfo = processDescriptor; this.version = du.getVersion(); this.processId = Utils.toPid(processDescriptor.getName(), version); this.eprContext = eprContext; this.state = Utils.calcInitialState(processDescriptor); this.properties = Collections .unmodifiableMap(Utils.calcInitialProperties(du.getProperties(), processDescriptor)); this.inMemory = processDescriptor.isSetInMemory() && processDescriptor.getInMemory(); // this.inMemory = (processDescriptor.isSetInMemory() && processDescriptor.getInMemory()) || // !processDescriptor.isSetInMemory() ; this.tenatConfigurationContext = tenantConfigContext; // this.tenantId = MultitenantUtils.getTenantId(tenantConfigContext); this.tenantId = tenantId; this.deployer = tenantId.toString(); //TODO readPackageConfiguration() and initPartnerLinks() should be merged readPackageConfiguration();//w ww. ja va2 s. co m initPartnerLinks(); initMexInterceptors(); initEventList(); this.processCleanupConfImpl = new ProcessCleanupConfImpl(processDescriptor); initSchedules(); }
From source file:com.sixsq.slipstream.persistence.Run.java
public void setEnd(Date end) { this.endTime = (Date) end.clone(); }
From source file:com.sixsq.slipstream.persistence.Run.java
public void setStart(Date start) { this.startTime = (Date) start.clone(); }
From source file:de.fhg.fokus.odp.registry.ckan.impl.MetadataImpl.java
public void setCreated(Date created) { this.created = created == null ? null : (Date) created.clone(); }
From source file:org.sofun.core.kup.KupImpl.java
@Override public void setEndDate(Date date) { if (date != null) { this.endDate = (Date) date.clone(); } else {//from w w w . j av a 2 s . c om this.endDate = null; } }
From source file:org.sofun.core.kup.KupImpl.java
@Override public void setStartDate(Date date) { if (date != null) { this.startDate = (Date) date.clone(); } else {/*from ww w. jav a 2 s. c om*/ this.startDate = null; } }
From source file:de.fhg.fokus.odp.registry.ckan.impl.MetadataImpl.java
@Override public void setModified(Date modified) { this.modified = modified == null ? null : (Date) modified.clone(); }
From source file:org.sofun.core.kup.KupImpl.java
@Override public void setCreated(Date created) { if (created != null) { this.created = (Date) created.clone(); }//from w ww. j a va2s . c o m }
From source file:de.fhg.fokus.odp.registry.ckan.impl.MetadataImpl.java
@Override public void setPublished(Date published) { this.published = published == null ? null : (Date) published.clone(); }
From source file:de.fhg.fokus.odp.registry.ckan.impl.MetadataImpl.java
@Override public void setTemporalCoverageTo(Date temporalCoverageTo) { this.temporalCoverageTo = temporalCoverageTo == null ? null : (Date) temporalCoverageTo.clone(); }