Interface GlueRow<K,V>
- Type Parameters:
K
-V
-
- All Superinterfaces:
Map<K,
V>
- All Known Implementing Classes:
GlueRowImpl
Database 레코드를 표현하는 Value Object 패턴의 인터페이스. 하나의 레코드는 하나의 GlueRow
오브젝트로 표현된다.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(K key) 컬럼명에 해당하는 값을 얻는다.하나의 레코드를 표현하는 Map을 리턴한다.void
setAttribute
(K key, V value) 해당 컬럼에 값을 설정한다.void
setAttributes
(Map<K, V> attributes) 하나의 레코드를 표현하는 Map을 설정한다.Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Method Details
-
getAttribute
컬럼명에 해당하는 값을 얻는다.- Parameters:
key
- 컴럼 명- Returns:
- 컬럼 값
-
setAttribute
해당 컬럼에 값을 설정한다.- Parameters:
key
- 컬럼 명value
- 컬럼 값
-
getAttributes
하나의 레코드를 표현하는 Map을 리턴한다. Map의 형태는 (컬럼명, 컬럼값)이다.- Returns:
- (컬럼명, 컬럼값) 형태의 Map
-
setAttributes
하나의 레코드를 표현하는 Map을 설정한다. Map의 형태는 (컬럼명, 컬럼값)이다.- Parameters:
attributes
- (컬럼명, 컬럼값) 형태의 Map
-