commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ujjwala Kulkarni" <ujjwala.kulk...@bea.com>
Subject RE: Set date issue
Date Tue, 22 Jul 2003 17:39:18 GMT
Hi , 

Not sure why I am not able to attach the java file but pasting the code for 

/*
 * Created on Feb 20, 2003
 *
 * To change this generated comment go to
 * Window>Preferences>Java>Code Generation>Code Template
 */
package com.bea.it.cib.common.license;

import java.util.Collection;
import java.util.Date;
import java.util.ArrayList;
import java.io.Serializable;

import com.bea.it.cib.common.order.OrderRequestLineDTO;
import com.bea.is.domain.DomainObject;
import com.bea.is.data.persistence.PersistenceCommand;

/**
 * @author CIB Team
 */
public class LicenseActivityDTO extends DomainObject implements Serializable {

	private String activitySeq = null;
	private Collection fromLicense = new ArrayList();
	private Collection toLicense = new ArrayList();
	private LicenseActivityType activityType = null; //constants
	private SourceType SourceType = null;
	private Date createDate = null;
	private Date lastUpdate = null;
	private Date lastUpdateUserId = null;
	private OrderRequestLineDTO orderRequestLine = null;
	private Collection oldKeysRef = new ArrayList();
	// only used if old lic isnt avail
	private Collection oldOrderLinesRef = new ArrayList();
	//used in the ELA Burndown scenario

	public LicenseActivityDTO() {
		this(null);
	}

	public LicenseActivityDTO(LicenseActivityType activityType) {
		this.activityType = activityType;
		this.setCommand(PersistenceCommand.NEW);
	}

	/**
	 * @return String
	 */
	public String getActivitySeq() {
		return activitySeq;
	}

	/**
	 * @return Calendar
	 */
	public Date getCreateDate() {
		return createDate;
	}

	/**
	 * @return LicenseDTO
	 */
	public Collection getFromLicense() {
		return fromLicense;
	}

	/**
	 * @return Date
	 */
	public Date getLastUpdate() {
		return lastUpdate;
	}

	/**
	 * @return Date
	 */
	public Date getLastUpdateUserId() {
		return lastUpdateUserId;
	}

	/**
	 * @return OrderRequestLineDTO
	 */
	public OrderRequestLineDTO getOrderRequestLine() {
		return orderRequestLine;
	}

	/**
	 * @return RequestSourceType
	 */
	public SourceType getSourceType() {
		return SourceType;
	}

	/**
	 * @return LicenseDTO
	 */
	public Collection getToLicense() {
		return toLicense;
	}

	/**
	 * Sets the activitySeq.
	 * @param activitySeq The activitySeq to set
	 */
	public void setActivitySeq(String activitySeq) {
		this.activitySeq = activitySeq;
	}

	/**
	 * Sets the createDate.
	 * @param createDate The createDate to set
	 */
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	/**
	 * Sets the lastUpdate.
	 * @param lastUpdate The lastUpdate to set
	 */
	public void setLastUpdate(Date lastUpdate) {
		this.lastUpdate = lastUpdate;
	}

	/**
	 * Sets the lastUpdateUserId.
	 * @param lastUpdateUserId The lastUpdateUserId to set
	 */
	public void setLastUpdateUserId(Date lastUpdateUserId) {
		this.lastUpdateUserId = lastUpdateUserId;
	}

	/**
	 * Sets the orderRequestLine.
	 * @param orderRequestLine The orderRequestLine to set
	 */
	public void setOrderRequestLine(OrderRequestLineDTO orderRequestLine) {
		this.orderRequestLine = orderRequestLine;
	}

	/**
	 * Sets the requestSourceType.
	 * @param SourceType The SourceType to set
	 */
	public void setRequestSourceType(SourceType SourceType) {
		this.SourceType = SourceType;
	}

	/**
	 * @return LicenseActivityTypeEnum
	 */
	public LicenseActivityType getActivityType() {
		return activityType;
	}

	/**
	 * Sets the activityType.
	 * @param activityType The activityType to set
	 */
	public void setActivityType(LicenseActivityType activityType) {
		this.activityType = activityType;
	}

	public Collection getOldKeysRef() {
		return oldKeysRef;
	}

	public void addOldKeyRef(LicenseKeyDTO licKey) {
		this.oldKeysRef.add(licKey);
	}

	public Collection getOldOrderLinesRef() {
		return oldOrderLinesRef;
	}

	public void addOldOrderLinesRef(OrderRequestLineDTO orld) {
		this.oldOrderLinesRef.add(orld);
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		StringBuffer strBuf = new StringBuffer();
		strBuf.append("\n\t===================================");
		strBuf.append("\n\tStart Contents of License Activity ");
		strBuf.append("\n\t===================================");
		strBuf.append("\n\tActivity Sequence = " + this.activitySeq);
		strBuf.append("\n\tActivity Type = " + this.activityType);
		strBuf.append("\n\tPersistence Command = " + this.command);
		strBuf.append("\n\tCreate Date = " + this.createDate);
		strBuf.append("\n\tFrom License = " + this.fromLicense);
		strBuf.append("\n\tLast Update = " + this.lastUpdate);
		strBuf.append("\n\tLast Updated User ID = " + this.lastUpdateUserId);
		strBuf.append("\n\tOld Keys Ref = " + this.oldKeysRef);
		strBuf.append("\n\tOld Order Line Ref = " + this.oldOrderLinesRef);
		strBuf.append("\n\tOrder Request Line = " + this.orderRequestLine);
		strBuf.append("\n\tSource Type = " + this.SourceType);
		strBuf.append("\n\t===================================");
		strBuf.append("\n\tEnd Contents of License Activity ");
		strBuf.append("\n\t===================================");

		return strBuf.toString();
	}

}


Mime
View raw message