package sgcib.nemo.nails.server;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.Serializable;

public class Trade implements Serializable
{
	private String ENTITY_TRACKING_ID;
	private String ENTITY_ID;
	private String DS_REF;
	private java.sql.Timestamp TIME;
	private String VERSION_NO;
	private String PART_NO;
	private String MESSAGE;
	public Trade(){}
	public String getENTITY_TRACKING_ID() {
		return ENTITY_TRACKING_ID;
	}
	public void setENTITY_TRACKING_ID(String eNTITY_TRACKING_ID) {
		ENTITY_TRACKING_ID = eNTITY_TRACKING_ID;
	}
	public String getENTITY_ID() {
		return ENTITY_ID;
	}
	public void setENTITY_ID(String eNTITY_ID) {
		ENTITY_ID = eNTITY_ID;
	}
	public String getDS_REF() {
		return DS_REF;
	}
	public void setDS_REF(String dS_REF) {
		DS_REF = dS_REF;
	}
	public java.sql.Timestamp getTIME() {
		return TIME;
	}
	public void setTIME(java.sql.Timestamp tIME) {
		TIME = tIME;
	}
	public String getVERSION_NO() {
		return VERSION_NO;
	}
	public void setVERSION_NO(String vERSION_NO) {
		VERSION_NO = vERSION_NO;
	}
	public String getPART_NO() {
		return PART_NO;
	}
	public void setPART_NO(String pART_NO) {
		PART_NO = pART_NO;
	}
	public String getMESSAGE() 
	{
		return MESSAGE;
	}
	public void setMESSAGE(oracle.jdbc.driver.OracleClobReader reader) 
	{
		BufferedReader br = new BufferedReader(reader); 
		StringBuilder sb = new StringBuilder(); 
		String line;         
		try 
		{
			while(null != (line = br.readLine())) 
			{
				sb.append(line);         
			}        
			br.close();
		} 
		catch (IOException e) 
		{e.printStackTrace();} 
		
		MESSAGE = sb.toString();
	}
	public void setMESSAGE(String message) 
	{
		
		MESSAGE = message;
	}
}
