1 10 11 package com.triactive.jdo; 12 13 import com.triactive.jdo.PersistenceManager; 14 import com.triactive.jdo.store.StoreManager; 15 import java.io.PrintWriter ; 16 import javax.jdo.spi.PersistenceCapable; 17 18 19 public interface StateManager extends javax.jdo.spi.StateManager 20 { 21 PersistenceCapable getObject(); 22 23 Object getObjectId(); 24 25 PersistenceManager getPersistenceManager(); 26 27 StoreManager getStoreManager(); 28 29 boolean makePersistent(); 30 31 void makeDirty(int fieldNumber); 32 33 void makeTransactional(); 34 35 void makeNontransactional(); 36 37 void makeTransient(); 38 39 void evict(); 40 41 void refresh(); 42 43 void retrieve(boolean DFGOnly); 44 45 void postCommit(); 46 47 void preRollback(); 48 49 void deletePersistent(); 50 51 void validate(); 52 53 void offerPrefetchedFields(int fieldNumbers[], FieldManager fm); 54 55 void flush(); 56 57 Object getField(int fieldNumber); 58 59 void setField(int fieldNumber, Object currentValue, Object newValue); 60 61 void provideFields(int fieldNumbers[], FieldManager fm); 62 63 void replaceFields(int fieldNumbers[], FieldManager fm); 64 65 void dump(PrintWriter out); 66 } 67 | Popular Tags |