#region Apache Notice /***************************************************************************** * $Revision: 408099 $ * $LastChangedDate$ * $LastChangedBy$ * * iBATIS.NET Data Mapper * Copyright (C) 2008/2005 - The Apache Software Foundation * * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ********************************************************************************/ #endregion using System.Collections.Generic; using Apache.Ibatis.Common.Configuration; using Apache.Ibatis.Common.Data; namespace Apache.Ibatis.DataMapper.Configuration { /// /// The contract of the configuration storage /// It is used by the to build /// an . /// public interface IConfigurationStore { #region IDataMapperConfigurationStore /// /// Associates a configuration node with a property key /// /// Configuration node void AddPropertyConfiguration(IConfiguration config); /// /// Associates a configuration node with a Setting key /// /// Configuration node void AddSettingConfiguration(IConfiguration config); /// /// Associates a configuration node with a Provider key /// /// Configuration node void AddProviderConfiguration(IConfiguration config); /// /// Associates a configuration node with a Database key /// /// Configuration node void AddDatabaseConfiguration(IConfiguration config); /// /// Associates a configuration node with a TypeHandler key /// /// Configuration node void AddTypeHandlerConfiguration(IConfiguration config); /// /// Associates a configuration node with a Alias key /// /// Configuration node void AddAliasConfiguration(IConfiguration config); ///// ///// Associates a configuration node with a SqlMap key ///// ///// Configuration node //void AddSqlMappingConfiguration(IConfiguration config); /// /// Returns the configuration node associated with /// the specified setting key. Should return null /// if no association exists. /// /// item key /// IConfiguration GetPropertyConfiguration(string key); /// /// Returns all configuration nodes for properties /// /// IConfiguration[] Properties { get; } /// /// Returns the configuration node associated with /// the specified setting key. Should return null /// if no association exists. /// /// item key /// IConfiguration GetSettingConfiguration(string key); /// /// Returns all configuration nodes for setting /// /// ConfigurationCollection Settings { get; } /// /// Returns the configuration node associated with /// the specified key. Should return null /// if no association exists. /// /// item key /// IConfiguration GetProviderConfiguration(string key); /// /// Returns all configuration nodes for /// /// IConfiguration[] Providers { get; } /// /// Returns the configuration node associated with /// the specified Database key. Should return null /// if no association exists. /// /// item key /// IConfiguration GetDatabaseConfiguration(string key); /// /// Returns all configuration nodes for Database /// /// IConfiguration[] Databases { get; } /// /// Returns the configuration node associated with /// the specified TypeHandler key. Should return null /// if no association exists. /// /// item key /// IConfiguration GetTypeHandlerConfiguration(string key); /// /// Returns all configuration nodes for TypeHandler /// /// IConfiguration[] TypeHandlers { get; } /// /// Returns the configuration node associated with /// the specified Alias key. Should return null /// if no association exists. /// /// item key /// IConfiguration GetAliasConfiguration(string key); /// /// Returns all configuration nodes for Alias /// /// IConfiguration[] Alias { get; } #endregion #region IMappingConfigurationStore /// /// Associates a configuration node with a Cache key /// /// Configuration node void AddCacheConfiguration(IConfiguration config); /// /// Associates a configuration node with a ResultMap key /// /// Configuration node void AddResultMapConfiguration(IConfiguration config); /// /// Associates a configuration node with a Statement key /// /// Configuration node void AddStatementConfiguration(IConfiguration config); /// /// Associates a configuration node with a ParameterMap key /// /// Configuration node void AddParameterMapConfiguration(IConfiguration config); /// /// Returns the configuration node associated with /// the specified Cache key. Should return null /// if no association exists. /// /// item key /// IConfiguration GetCacheConfiguration(string key); /// /// Returns all configuration nodes for Cache /// /// IConfiguration[] CacheModels { get; } /// /// Returns the configuration node associated with /// the specified ResultMap key. Should return null /// if no association exists. /// /// item key /// IConfiguration GetResultMapConfiguration(string key); /// /// Returns all configuration nodes for ResultMap /// /// IConfiguration[] ResultMaps { get; } /// /// Returns the configuration node associated with /// the specified Statement key. Should return null /// if no association exists. /// /// item key /// IConfiguration GetStatementConfiguration(string key); /// /// Returns all configuration nodes for Statement /// /// IConfiguration[] Statements { get; } /// /// Returns the configuration node associated with /// the specified ParameterMap key. Should return null /// if no association exists. /// /// item key /// IConfiguration GetParameterMapConfiguration(string key); /// /// Returns all configuration nodes for ParameterMap /// /// IConfiguration[] ParameterMaps { get; } #endregion } }