01: /*
02:
03: Derby - Class org.apache.derby.iapi.store.access.conglomerate.MethodFactory
04:
05: Licensed to the Apache Software Foundation (ASF) under one or more
06: contributor license agreements. See the NOTICE file distributed with
07: this work for additional information regarding copyright ownership.
08: The ASF licenses this file to you under the Apache License, Version 2.0
09: (the "License"); you may not use this file except in compliance with
10: the License. You may obtain a copy of the License at
11:
12: http://www.apache.org/licenses/LICENSE-2.0
13:
14: Unless required by applicable law or agreed to in writing, software
15: distributed under the License is distributed on an "AS IS" BASIS,
16: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: See the License for the specific language governing permissions and
18: limitations under the License.
19:
20: */
21:
22: package org.apache.derby.iapi.store.access.conglomerate;
23:
24: import java.util.Properties;
25: import org.apache.derby.catalog.UUID;
26: import org.apache.derby.iapi.error.StandardException;
27: import org.apache.derby.iapi.services.monitor.ModuleSupportable;
28:
29: /**
30:
31: The interface of all access method factories. Specific method factories
32: (sorts, conglomerates), extend this interface.
33:
34: **/
35:
36: public interface MethodFactory extends ModuleSupportable {
37: /**
38: Used to identify this interface when finding it with the Monitor.
39: **/
40: public static final String MODULE = "org.apache.derby.iapi.store.access.conglomerate.MethodFactory";
41:
42: /**
43: Return the default properties for this access method.
44: **/
45: Properties defaultProperties();
46:
47: /**
48: Return whether this access method implements the implementation
49: type given in the argument string.
50: **/
51: boolean supportsImplementation(String implementationId);
52:
53: /**
54: Return the primary implementation type for this access method.
55: Although an access method may implement more than one implementation
56: type, this is the expected one. The access manager will put the
57: primary implementation type in a hash table for fast access.
58: **/
59: String primaryImplementationType();
60:
61: /**
62: Return whether this access method supports the format supplied in
63: the argument.
64: **/
65: boolean supportsFormat(UUID formatid);
66:
67: /**
68: Return the primary format that this access method supports.
69: Although an access method may support more than one format, this
70: is the usual one. the access manager will put the primary format
71: in a hash table for fast access to the appropriate method.
72: **/
73: UUID primaryFormat();
74: }
|