@@ -42,7 +42,7 @@ class PooledConnection implements InvocationHandler {
42
42
private boolean valid ;
43
43
44
44
/**
45
- * Constructor for SimplePooledConnection that uses the Connection and PooledDataSource passed in
45
+ * Constructor for SimplePooledConnection that uses the Connection and PooledDataSource passed in.
46
46
*
47
47
* @param connection - the connection that is to be presented as a pooled connection
48
48
* @param dataSource - the dataSource that the connection is from
@@ -58,14 +58,14 @@ public PooledConnection(Connection connection, PooledDataSource dataSource) {
58
58
}
59
59
60
60
/**
61
- * Invalidates the connection
61
+ * Invalidates the connection.
62
62
*/
63
63
public void invalidate () {
64
64
valid = false ;
65
65
}
66
66
67
67
/**
68
- * Method to see if the connection is usable
68
+ * Method to see if the connection is usable.
69
69
*
70
70
* @return True if the connection is usable
71
71
*/
@@ -74,7 +74,7 @@ public boolean isValid() {
74
74
}
75
75
76
76
/**
77
- * Getter for the *real* connection that this wraps
77
+ * Getter for the *real* connection that this wraps.
78
78
*
79
79
* @return The connection
80
80
*/
@@ -83,7 +83,7 @@ public Connection getRealConnection() {
83
83
}
84
84
85
85
/**
86
- * Getter for the proxy for the connection
86
+ * Getter for the proxy for the connection.
87
87
*
88
88
* @return The proxy
89
89
*/
@@ -92,7 +92,7 @@ public Connection getProxyConnection() {
92
92
}
93
93
94
94
/**
95
- * Gets the hashcode of the real connection (or 0 if it is null)
95
+ * Gets the hashcode of the real connection (or 0 if it is null).
96
96
*
97
97
* @return The hashcode of the real connection (or 0 if it is null)
98
98
*/
@@ -101,7 +101,7 @@ public int getRealHashCode() {
101
101
}
102
102
103
103
/**
104
- * Getter for the connection type (based on url + user + password)
104
+ * Getter for the connection type (based on url + user + password).
105
105
*
106
106
* @return The connection type
107
107
*/
@@ -110,7 +110,7 @@ public int getConnectionTypeCode() {
110
110
}
111
111
112
112
/**
113
- * Setter for the connection type
113
+ * Setter for the connection type.
114
114
*
115
115
* @param connectionTypeCode - the connection type
116
116
*/
@@ -119,7 +119,7 @@ public void setConnectionTypeCode(int connectionTypeCode) {
119
119
}
120
120
121
121
/**
122
- * Getter for the time that the connection was created
122
+ * Getter for the time that the connection was created.
123
123
*
124
124
* @return The creation timestamp
125
125
*/
@@ -128,7 +128,7 @@ public long getCreatedTimestamp() {
128
128
}
129
129
130
130
/**
131
- * Setter for the time that the connection was created
131
+ * Setter for the time that the connection was created.
132
132
*
133
133
* @param createdTimestamp - the timestamp
134
134
*/
@@ -137,7 +137,7 @@ public void setCreatedTimestamp(long createdTimestamp) {
137
137
}
138
138
139
139
/**
140
- * Getter for the time that the connection was last used
140
+ * Getter for the time that the connection was last used.
141
141
*
142
142
* @return - the timestamp
143
143
*/
@@ -146,7 +146,7 @@ public long getLastUsedTimestamp() {
146
146
}
147
147
148
148
/**
149
- * Setter for the time that the connection was last used
149
+ * Setter for the time that the connection was last used.
150
150
*
151
151
* @param lastUsedTimestamp - the timestamp
152
152
*/
@@ -155,7 +155,7 @@ public void setLastUsedTimestamp(long lastUsedTimestamp) {
155
155
}
156
156
157
157
/**
158
- * Getter for the time since this connection was last used
158
+ * Getter for the time since this connection was last used.
159
159
*
160
160
* @return - the time since the last use
161
161
*/
@@ -164,7 +164,7 @@ public long getTimeElapsedSinceLastUse() {
164
164
}
165
165
166
166
/**
167
- * Getter for the age of the connection
167
+ * Getter for the age of the connection.
168
168
*
169
169
* @return the age
170
170
*/
@@ -173,7 +173,7 @@ public long getAge() {
173
173
}
174
174
175
175
/**
176
- * Getter for the timestamp that this connection was checked out
176
+ * Getter for the timestamp that this connection was checked out.
177
177
*
178
178
* @return the timestamp
179
179
*/
@@ -182,7 +182,7 @@ public long getCheckoutTimestamp() {
182
182
}
183
183
184
184
/**
185
- * Setter for the timestamp that this connection was checked out
185
+ * Setter for the timestamp that this connection was checked out.
186
186
*
187
187
* @param timestamp the timestamp
188
188
*/
@@ -191,7 +191,7 @@ public void setCheckoutTimestamp(long timestamp) {
191
191
}
192
192
193
193
/**
194
- * Getter for the time that this connection has been checked out
194
+ * Getter for the time that this connection has been checked out.
195
195
*
196
196
* @return the time
197
197
*/
@@ -205,7 +205,7 @@ public int hashCode() {
205
205
}
206
206
207
207
/**
208
- * Allows comparing this connection to another
208
+ * Allows comparing this connection to another.
209
209
*
210
210
* @param obj - the other connection to test for equality
211
211
* @see Object#equals(Object)
0 commit comments