KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jalisto > se > api > internal > OidTable


1 /*
2  * Jalisto - JAva LIght STOrage
3  * Copyright (C) 2000-2005 Xcalia http://www.xcalia.com
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
18  *
19  * Xcalia
20  * 71, rue Desnouettes
21  * 75014 Paris - France
22  * http://www.xcalia.com
23  */

24 package org.objectweb.jalisto.se.api.internal;
25
26 import org.objectweb.jalisto.se.impl.LogicalOid;
27 import org.objectweb.jalisto.se.impl.*;
28 import org.objectweb.jalisto.se.impl.server.IdentityProvider;
29 import org.objectweb.jalisto.se.impl.server.PhysicalOid;
30
31 import java.util.Collection JavaDoc;
32
33 public interface OidTable {
34     LogicalOid allocateNewFloid(short clid);
35
36     Collection JavaDoc getFloidsFromClid(Object JavaDoc sessionId, Object JavaDoc clid, boolean fullyTransactionnal);
37
38     Collection JavaDoc getFloidsFromClid(Object JavaDoc sessionId, Object JavaDoc clid, ExtentImpl extent, int number);
39
40     PhysicalOid getFpoid(Object JavaDoc sessionId, LogicalOid floid);
41
42     void markAsCreated(Object JavaDoc sessionId, LogicalOid floid);
43
44     boolean containsFloid(Object JavaDoc sessionId, LogicalOid floid);
45
46     PhysicalOid getDeletedFpoid(Object JavaDoc sessionId, LogicalOid floid);
47
48     void setUpdate(Object JavaDoc sessionId, LogicalOid floid, short value);
49
50     short getUpdate(Object JavaDoc sessionId, LogicalOid floid, boolean transactionnal);
51
52     void insertFpoid(Object JavaDoc sessionId, LogicalOid floid, PhysicalOid fpoid);
53
54     void removeFloid(Object JavaDoc sessionId, LogicalOid floid);
55
56     void updatePoid(Object JavaDoc sessionId, LogicalOid floid, PhysicalOid newFpoid);
57
58     void begin(Object JavaDoc sessionId);
59
60     void commit(Object JavaDoc sessionId);
61
62     void rollback(Object JavaDoc sessionId);
63
64     void open(Object JavaDoc sessionId);
65
66     void close(Object JavaDoc sessionId);
67
68     IdentityProvider getIdentityProvider();
69 }
70
Popular Tags