01: /*
02: * Copyright 2004 (C) TJDO.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the TJDO License version 1.0.
06: * See the terms of the TJDO License in the documentation provided with this software.
07: *
08: * $Id: StateManager.java,v 1.6 2004/01/18 03:01:05 jackknifebarber Exp $
09: */
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: public interface StateManager extends javax.jdo.spi.StateManager {
19: PersistenceCapable getObject();
20:
21: Object getObjectId();
22:
23: PersistenceManager getPersistenceManager();
24:
25: StoreManager getStoreManager();
26:
27: boolean makePersistent();
28:
29: void makeDirty(int fieldNumber);
30:
31: void makeTransactional();
32:
33: void makeNontransactional();
34:
35: void makeTransient();
36:
37: void evict();
38:
39: void refresh();
40:
41: void retrieve(boolean DFGOnly);
42:
43: void postCommit();
44:
45: void preRollback();
46:
47: void deletePersistent();
48:
49: void validate();
50:
51: void offerPrefetchedFields(int fieldNumbers[], FieldManager fm);
52:
53: void flush();
54:
55: Object getField(int fieldNumber);
56:
57: void setField(int fieldNumber, Object currentValue, Object newValue);
58:
59: void provideFields(int fieldNumbers[], FieldManager fm);
60:
61: void replaceFields(int fieldNumbers[], FieldManager fm);
62:
63: void dump(PrintWriter out);
64: }
|