KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > continuent > sequoia > controller > core > SequoiaControllerFactory


1 /**
2  * Sequoia: Database clustering technology.
3  * Copyright (C) 2005 AmicoSoft, Inc. dba Emic Networks
4  * Contact: sequoia@continuent.org
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  * Initial developer(s): Emmanuel Cecchet.
19  * Contributor(s): ______________________.
20  */

21
22 package org.continuent.sequoia.controller.core;
23
24 import org.continuent.sequoia.controller.backend.BackendObjectConverter;
25 import org.continuent.sequoia.controller.backend.ResultSetMetaDataFactory;
26 import org.continuent.sequoia.controller.backend.SequoiaBackendObjectConverter;
27 import org.continuent.sequoia.controller.backend.SequoiaResultSetMetaDataFactory;
28 import org.continuent.sequoia.controller.requests.RequestFactory;
29 import org.continuent.sequoia.controller.requests.SequoiaRequestFactory;
30
31 /**
32  * This class defines a SequoiaControllerFactory
33  *
34  * @author <a HREF="mailto:emmanuel.cecchet@emicnetworks.com">Emmanuel Cecchet</a>
35  * @version 1.0
36  */

37 public class SequoiaControllerFactory implements ControllerFactory
38 {
39   private static final RequestFactory REQUEST_FACTORY = new SequoiaRequestFactory();
40   private static final BackendObjectConverter BACKEND_OBJECT_CONVERTER = new SequoiaBackendObjectConverter();
41   private static final ResultSetMetaDataFactory RESULTSET_METADATA = new SequoiaResultSetMetaDataFactory();
42
43   /**
44    * @see org.continuent.sequoia.controller.core.ControllerFactory#getBackendObjectConverter()
45    */

46   public BackendObjectConverter getBackendObjectConverter()
47   {
48     return BACKEND_OBJECT_CONVERTER;
49   }
50
51   /**
52    * @see org.continuent.sequoia.controller.core.ControllerFactory#getRequestFactory()
53    */

54   public RequestFactory getRequestFactory()
55   {
56     return REQUEST_FACTORY;
57   }
58
59   /**
60    * @see org.continuent.sequoia.controller.core.ControllerFactory#getResultSetMetaDataFactory()
61    */

62   public ResultSetMetaDataFactory getResultSetMetaDataFactory()
63   {
64     return RESULTSET_METADATA;
65   }
66
67 }
68
Popular Tags