--- /dev/null
+/*\r
+\r
+ Derby - Class org.apache.derby.iapi.store.access.conglomerate.MethodFactory\r
+\r
+ Licensed to the Apache Software Foundation (ASF) under one or more\r
+ contributor license agreements. See the NOTICE file distributed with\r
+ this work for additional information regarding copyright ownership.\r
+ The ASF licenses this file to you under the Apache License, Version 2.0\r
+ (the "License"); you may not use this file except in compliance with\r
+ the License. You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+ Unless required by applicable law or agreed to in writing, software\r
+ distributed under the License is distributed on an "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ See the License for the specific language governing permissions and\r
+ limitations under the License.\r
+\r
+ */\r
+\r
+package org.apache.derby.iapi.store.access.conglomerate;\r
+\r
+import java.util.Properties;\r
+import org.apache.derby.catalog.UUID;\r
+import org.apache.derby.iapi.error.StandardException;\r
+import org.apache.derby.iapi.services.monitor.ModuleSupportable;\r
+\r
+/**\r
+\r
+ The interface of all access method factories. Specific method factories\r
+ (sorts, conglomerates), extend this interface.\r
+\r
+**/\r
+\r
+public interface MethodFactory extends ModuleSupportable\r
+{\r
+ /**\r
+ Used to identify this interface when finding it with the Monitor.\r
+ **/\r
+ public static final String MODULE = \r
+ "org.apache.derby.iapi.store.access.conglomerate.MethodFactory";\r
+\r
+ /**\r
+ Return the default properties for this access method.\r
+ **/\r
+ Properties defaultProperties();\r
+\r
+ /**\r
+ Return whether this access method implements the implementation\r
+ type given in the argument string.\r
+ **/\r
+ boolean supportsImplementation(String implementationId);\r
+\r
+ /**\r
+ Return the primary implementation type for this access method.\r
+ Although an access method may implement more than one implementation\r
+ type, this is the expected one. The access manager will put the\r
+ primary implementation type in a hash table for fast access.\r
+ **/\r
+ String primaryImplementationType();\r
+\r
+ /**\r
+ Return whether this access method supports the format supplied in\r
+ the argument.\r
+ **/\r
+ boolean supportsFormat(UUID formatid);\r
+\r
+ /**\r
+ Return the primary format that this access method supports.\r
+ Although an access method may support more than one format, this\r
+ is the usual one. the access manager will put the primary format\r
+ in a hash table for fast access to the appropriate method.\r
+ **/\r
+ UUID primaryFormat();\r
+}\r
+\r