1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
/***************************************************************************
* Copyright (c) 2004, 2005, 2006 Eike Stepper, Germany.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Eike Stepper - initial API and implementation
**************************************************************************/
package org.eclipse.emf.cdo.server;
import org.eclipse.net4j.core.Channel;
import org.eclipse.net4j.spring.Service;
import org.eclipse.emf.cdo.core.OIDEncoder;
public interface Mapper extends Service
{
public int getNextPid();
public int getNextCID();
public int getNextRID();
public long getNextOID(int rid);
public void sql(String sql);
public void sql(String sql, Object[] args);
public void sql(String sql, Object[] args, int[] types);
public int getCollectionCount(long oid, int feature);
public boolean lock(long oid, int oca);
public void insertPackage(final PackageInfo packageInfo);
public void insertClass(final ClassInfo classInfo);
public void insertAttribute(final AttributeInfo attributeInfo, final int cid);
public ResourceInfo createResource(String resourcePath);
public ResourceInfo selectResourceInfo(String path);
public ResourceInfo selectResourceInfo(int rid);
public void insertReference(long oid, int feature, int ordinal, long target, boolean content);
public void removeReference(long oid, int feature, int ordinal);
public void moveReferenceAbsolute(long oid, int feature, int toIndex, int fromIndex);
public void moveReferencesRelative(long oid, int feature, int startIndex, int endIndex, int offset);
public void insertObject(long oid, int cid);
public void insertContent(long oid);
public void removeObject(long oid);
public void removeContent(long oid);
public void transmitContent(Channel channel, ResourceInfo resourceInfo);
public void transmitObject(Channel channel, long oid);
public void transmitAttributes(Channel channel, long oid, ClassInfo classInfo);
public void transmitReferences(Channel channel, long oid);
public void transmitAllResources(Channel channel);
public void transmitExtent(Channel channel, int cid, boolean exactMatch, int rid);
public void createAttributeTables(PackageInfo packageInfo);
public void insertResource(int rid, String path);
public OIDEncoder getOidEncoder(); // Don't change case! Spring will be irritated
public PackageManager getPackageManager();
public ResourceManager getResourceManager();
public ColumnConverter getColumnConverter();
}
|