1 19 20 package org.apache.cayenne.remote.hessian.service; 21 22 import java.io.IOException ; 23 24 import org.apache.cayenne.util.PersistentObjectList; 25 26 import com.caucho.hessian.io.AbstractHessianOutput; 27 import com.caucho.hessian.io.JavaSerializer; 28 29 35 class ServerPersistentObjectListSerializer extends JavaSerializer { 36 37 ServerPersistentObjectListSerializer() { 38 super(PersistentObjectList.class); 39 } 40 41 public void writeObject(Object object, AbstractHessianOutput out) throws IOException { 42 PersistentObjectList list = (PersistentObjectList) object; 43 if (list.isFault()) { 44 out.writeNull(); 45 } 46 else { 47 super.writeObject(object, out); 48 } 49 } 50 } 51 | Popular Tags |