KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > derby > iapi > store > access > conglomerate > MethodFactory


1 /*
2
3    Derby - Class org.apache.derby.iapi.store.access.conglomerate.MethodFactory
4
5    Licensed to the Apache Software Foundation (ASF) under one or more
6    contributor license agreements. See the NOTICE file distributed with
7    this work for additional information regarding copyright ownership.
8    The ASF licenses this file to you under the Apache License, Version 2.0
9    (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 JavaDoc;
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     /**
39     Used to identify this interface when finding it with the Monitor.
40     **/

41     public static final String JavaDoc MODULE =
42       "org.apache.derby.iapi.store.access.conglomerate.MethodFactory";
43
44     /**
45     Return the default properties for this access method.
46     **/

47     Properties JavaDoc defaultProperties();
48
49     /**
50     Return whether this access method implements the implementation
51     type given in the argument string.
52     **/

53     boolean supportsImplementation(String JavaDoc implementationId);
54
55     /**
56     Return the primary implementation type for this access method.
57     Although an access method may implement more than one implementation
58     type, this is the expected one. The access manager will put the
59     primary implementation type in a hash table for fast access.
60     **/

61     String JavaDoc primaryImplementationType();
62
63     /**
64     Return whether this access method supports the format supplied in
65     the argument.
66     **/

67     boolean supportsFormat(UUID formatid);
68
69     /**
70     Return the primary format that this access method supports.
71     Although an access method may support more than one format, this
72     is the usual one. the access manager will put the primary format
73     in a hash table for fast access to the appropriate method.
74     **/

75     UUID primaryFormat();
76 }
77
78
Popular Tags