1 5 package org.exoplatform.services.wsrp.producer.impl; 6 7 import org.exoplatform.commons.utils.IOUtil; 8 17 public class StateData { 18 private String id_ ; 19 private String type_ ; 20 transient private Object object_ ; 21 22 public StateData() { 23 } 24 25 28 public String getId() { return id_ ; } 29 public void setId(String s) { id_ = s ; } 30 31 34 public String getDataType() { return type_ ; } 35 public void setDataType(String s) { type_ = s ; } 36 37 40 public byte[] getData() throws Exception { 41 return IOUtil.serialize(object_) ; 42 } 43 public void setData(byte[] data) throws Exception { 44 object_ = IOUtil.deserialize(data) ; 45 } 46 47 public Object getDataObject() { return object_ ; } 48 public void setDataObject(Object o) { object_ = o ; } 49 50 } 51 | Popular Tags |