EMMA Coverage Report (generated Tue Feb 12 22:23:49 ICT 2008)
[all classes][net.sourceforge.hivetranse.transaction.ibatis]

COVERAGE SUMMARY FOR SOURCE FILE [SqlMapClientFactoryContribution.java]

nameclass, %method, %block, %line, %
SqlMapClientFactoryContribution.java100% (1/1)83%  (5/6)49%  (17/35)64%  (7/11)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SqlMapClientFactoryContribution100% (1/1)83%  (5/6)49%  (17/35)64%  (7/11)
toString (): String 0%   (0/1)0%   (0/18)0%   (0/4)
SqlMapClientFactoryContribution (): void 100% (1/1)100% (3/3)100% (1/1)
getConfig (): Resource 100% (1/1)100% (3/3)100% (1/1)
getConnection (): Connection 100% (1/1)100% (3/3)100% (1/1)
setConfig (Resource): void 100% (1/1)100% (4/4)100% (2/2)
setConnection (Connection): void 100% (1/1)100% (4/4)100% (2/2)

1//  Copyright 2004-2007 Jean-Francois Poilpret
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14 
15package net.sourceforge.hivetranse.transaction.ibatis;
16 
17import java.sql.Connection;
18 
19import org.apache.hivemind.Resource;
20import org.apache.hivemind.impl.BaseLocatable;
21import org.apache.hivemind.util.ToStringBuilder;
22 
23/**
24 * Represents a configuration parameter to the <code>SqlMapClientFactory</code>
25 * configured for building a <code>SqlMapClient</code> service.
26 * Each instance defines a iBATIS SqlMaps configuration file and a 
27 * <code>Connection</code> service reference (must be built by 
28 * <code>hivetranse.jdbc.ConnectionFactory</code>).
29 *
30 * @author Jean-Francois Poilpret
31 */
32public class SqlMapClientFactoryContribution extends BaseLocatable
33{
34        public void                setConfig(Resource config)
35        {
36                _config = config;
37        }
38        public Resource        getConfig()
39        {
40                return _config;
41        }
42        
43        public void                setConnection(Connection connection)
44        {
45                _connection = connection;
46        }
47        public Connection        getConnection()
48        {
49                return _connection;
50        }
51        
52    public String toString()
53    {
54        ToStringBuilder builder = new ToStringBuilder(this);
55        builder.append("config", _config);
56        builder.append("connection", _connection);
57        return builder.toString();
58    }
59    
60    private Resource        _config;
61    private Connection        _connection;
62}

[all classes][net.sourceforge.hivetranse.transaction.ibatis]
EMMA 2.0.5312 (C) Vladimir Roubtsov