Package org.apache.torque.util
Class ColumnValues
java.lang.Object
org.apache.torque.util.ColumnValues
- All Implemented Interfaces:
Map<Column,JdbcTypedValue>
A class containing values for database columns.
The insertion order of the entries is preserved.
- Version:
- $Id: ColumnValues.java 1840416 2018-09-09 15:10:22Z tv $
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor with no contained column values.ColumnValues(String dbName) Constructor with no contained column values.ColumnValues(Map<Column, JdbcTypedValue> columnValues) Constructor.ColumnValues(Map<Column, JdbcTypedValue> columnValues, String dbName) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()Returns the name of the database handle to use for connection opening.booleanisEmpty()keySet()put(Column key, JdbcTypedValue value) voidputAll(Map<? extends Column, ? extends JdbcTypedValue> t) intsize()toString()values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
ColumnValues
public ColumnValues()Constructor with no contained column values.- Throws:
NullPointerException- if table is null.
-
ColumnValues
Constructor with no contained column values.- Parameters:
dbName- the name of the database handle to use for connection opening if needed, or null to use the default database handle for the table.- Throws:
NullPointerException- if table is null.
-
ColumnValues
Constructor.- Parameters:
columnValues- the column values, or null.- Throws:
NullPointerException- if table is null.
-
ColumnValues
Constructor.- Parameters:
columnValues- the column values, or null.dbName- the name of the database handle to use for connection opening if needed, or null to use the default database handle for the table.- Throws:
NullPointerException- if table is null.
-
-
Method Details
-
getDbName
Returns the name of the database handle to use for connection opening.- Returns:
- the database name, or null to use the default database handle for the table.
-
size
public int size()- Specified by:
sizein interfaceMap<Column,JdbcTypedValue>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceMap<Column,JdbcTypedValue>
-
containsKey
- Specified by:
containsKeyin interfaceMap<Column,JdbcTypedValue>
-
containsValue
- Specified by:
containsValuein interfaceMap<Column,JdbcTypedValue>
-
get
- Specified by:
getin interfaceMap<Column,JdbcTypedValue>
-
put
- Specified by:
putin interfaceMap<Column,JdbcTypedValue>
-
remove
- Specified by:
removein interfaceMap<Column,JdbcTypedValue>
-
putAll
- Specified by:
putAllin interfaceMap<Column,JdbcTypedValue>
-
clear
public void clear()- Specified by:
clearin interfaceMap<Column,JdbcTypedValue>
-
keySet
- Specified by:
keySetin interfaceMap<Column,JdbcTypedValue>
-
values
- Specified by:
valuesin interfaceMap<Column,JdbcTypedValue>
-
entrySet
- Specified by:
entrySetin interfaceMap<Column,JdbcTypedValue>
-
toString
-