public interface Connection
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Close the connection.
|
Object |
getAttribute(String key)
Get the attribute that bound to the connection.
|
void |
setAttribute(String key,
Object value)
Set the attribute to the connection.
|
Object |
setAttributeIfAbsent(String key,
Object value)
Set the attribute to the connection if the key's item doesn't exist, otherwise returns the present item.
|
Object getAttribute(String key)
key - the attribute keyvoid setAttribute(String key, Object value)
key - the attribute keyvalue - the attribute valueObject setAttributeIfAbsent(String key, Object value)
key - the attribute keyvalue - the attribute valuevoid close()
Copyright © 2021. All rights reserved.