1 24 25 package org.objectweb.perseus; 26 27 import org.objectweb.perseus.cache.api.CacheEntry; 28 import org.objectweb.perseus.persistence.api.State; 29 30 public class PIntegerState extends PInteger implements State, StatusOwner { 31 CacheEntry ce; 32 public byte status; 33 34 PIntegerState(CacheEntry c) { 35 super(((PInteger) c.getCeObject())); 36 ce = c; 37 status = 0; 38 } 39 40 PIntegerState(State s) { 41 super((PInteger) s); 42 ce = s.getCacheEntry(); 43 status = 0; 44 } 45 46 public CacheEntry getCacheEntry() { 47 return ce; 48 } 49 50 public byte getStatus() { 51 return status; 52 } 53 54 public void setStatus(byte status) { 55 this.status = status; 56 } 57 58 59 } 60 | Popular Tags |