KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > triactive > jdo > StateManager


1 /*
2  * Copyright 2004 (C) TJDO.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the TJDO License version 1.0.
6  * See the terms of the TJDO License in the documentation provided with this software.
7  *
8  * $Id: StateManager.java,v 1.6 2004/01/18 03:01:05 jackknifebarber Exp $
9  */

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 JavaDoc;
16 import javax.jdo.spi.PersistenceCapable;
17
18
19 public interface StateManager extends javax.jdo.spi.StateManager
20 {
21     PersistenceCapable getObject();
22
23     Object JavaDoc 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 JavaDoc getField(int fieldNumber);
58
59     void setField(int fieldNumber, Object JavaDoc currentValue, Object JavaDoc newValue);
60
61     void provideFields(int fieldNumbers[], FieldManager fm);
62
63     void replaceFields(int fieldNumbers[], FieldManager fm);
64
65     void dump(PrintWriter JavaDoc out);
66 }
67
Popular Tags