API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.db. JOTTaggedConnection View Javadoc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71

/*
------------------------------------
JavaOnTracks          Thibaut Colar
tcolar-jot AT colar DOT net
Artistic Licence 2.0
http://www.javaontracks.net
------------------------------------
 */
package net.jot.db;

import java.sql.Connection;

/**
 * A TaggedConnection is basically a Standard DB connection with a name(tag), that allows us to know 
 * which pool it is part of.
 *@author     tcolar
 *@created    May 6, 2003
 */
public class JOTTaggedConnection {
    private int id = -1;
    private Connection con;
    private String poolName = "";


    /**
     *Constructor for the TaggedConnection object
     *
     *@param  i     Description of Parameter
     *@param  con   Description of Parameter
     *@param  name  Description of the Parameter
     */
    JOTTaggedConnection(String name, int i, Connection con)
    {
        id = i;
        this.con = con;
        poolName = name;
    }


    /**
     *Gets the connection attribute of the TaggedConnection object
     *
     *@return    The connection value
     */
    public Connection getConnection()
    {
        return con;
    }


    /**
     *  Gets the poolName attribute of the TaggedConnection object
     *
     *@return    The poolName value
     */
    public String getPoolName()
    {
        return poolName;
    }


    /**
     *Gets the ID of the connection.
     *
     *@return    The dataId value
     */
    int getId()
    {
        return id;
    }
}

Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar