Class JdbcConnectionContext
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.concurrent.ConcurrentHashMap<String,Object>
-
- jp.co.future.uroborosql.connection.ConnectionContext
-
- jp.co.future.uroborosql.connection.JdbcConnectionContext
-
- All Implemented Interfaces:
Serializable
,ConcurrentMap<String,Object>
,Map<String,Object>
public class JdbcConnectionContext extends ConnectionContext
JDBC接続を行う際に必要な情報を保持するクラス- Since:
- v0.19.0
- Author:
- H.Sugimoto
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.concurrent.ConcurrentHashMap
ConcurrentHashMap.KeySetView<K extends Object,V extends Object>
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPS_JDBC_PASSWORD
プロパティキー:JDBC 接続パスワードstatic String
PROPS_JDBC_SCHEMA
プロパティキー:JDBC 接続スキーマstatic String
PROPS_JDBC_URL
プロパティキー:JDBC URLstatic String
PROPS_JDBC_USER
プロパティキー:JDBC 接続ユーザ名-
Fields inherited from class jp.co.future.uroborosql.connection.ConnectionContext
PROPS_AUTO_COMMIT, PROPS_READ_ONLY, PROPS_TRANSACTION_ISOLATION
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
password()
接続パスワードの取得.JdbcConnectionContext
password(String password)
接続パスワードの設定.String
schema()
接続スキーマの取得.JdbcConnectionContext
schema(String schema)
接続スキーマの設定.Properties
toProperties()
JDBC接続時に渡すプロパティの取得String
url()
接続URLの取得.JdbcConnectionContext
url(String url)
接続URLの設定.String
user()
接続ユーザ名の取得.JdbcConnectionContext
user(String user)
接続ユーザ名の設定.-
Methods inherited from class jp.co.future.uroborosql.connection.ConnectionContext
autoCommit, autoCommit, readOnly, readOnly, set, transactionIsolation, transactionIsolation
-
Methods inherited from class java.util.concurrent.ConcurrentHashMap
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, values
-
Methods inherited from class java.util.AbstractMap
clone
-
-
-
-
Field Detail
-
PROPS_JDBC_URL
public static final String PROPS_JDBC_URL
プロパティキー:JDBC URL- See Also:
- Constant Field Values
-
PROPS_JDBC_USER
public static final String PROPS_JDBC_USER
プロパティキー:JDBC 接続ユーザ名- See Also:
- Constant Field Values
-
PROPS_JDBC_PASSWORD
public static final String PROPS_JDBC_PASSWORD
プロパティキー:JDBC 接続パスワード- See Also:
- Constant Field Values
-
PROPS_JDBC_SCHEMA
public static final String PROPS_JDBC_SCHEMA
プロパティキー:JDBC 接続スキーマ- See Also:
- Constant Field Values
-
-
Method Detail
-
url
public String url()
接続URLの取得.- Returns:
- 接続URL
-
url
public JdbcConnectionContext url(String url)
接続URLの設定.- Parameters:
url
- 接続URL- Returns:
JdbcConnectionContext
-
user
public String user()
接続ユーザ名の取得.- Returns:
- 接続ユーザ名
-
user
public JdbcConnectionContext user(String user)
接続ユーザ名の設定.- Parameters:
user
- 接続ユーザ名- Returns:
JdbcConnectionContext
-
password
public String password()
接続パスワードの取得.- Returns:
- 接続パスワード
-
password
public JdbcConnectionContext password(String password)
接続パスワードの設定.- Parameters:
password
- 接続パスワード- Returns:
JdbcConnectionContext
-
schema
public String schema()
接続スキーマの取得.- Returns:
- 接続スキーマ
-
schema
public JdbcConnectionContext schema(String schema)
接続スキーマの設定.- Parameters:
schema
- 接続スキーマ- Returns:
JdbcConnectionContext
-
toProperties
public Properties toProperties()
JDBC接続時に渡すプロパティの取得- Returns:
- JDBC接続時に渡すプロパティ
-
-