Package org.teiid.query.util
Class GeneratedKeysImpl
- java.lang.Object
-
- org.teiid.query.util.GeneratedKeysImpl
-
- All Implemented Interfaces:
GeneratedKeys
public class GeneratedKeysImpl extends Object implements GeneratedKeys
-
-
Field Summary
Fields Modifier and Type Field Description static String
LAST_GENERATED_KEY
-
Constructor Summary
Constructors Modifier Constructor Description protected
GeneratedKeysImpl(String[] colNames, Class<?>[] types, CommandContext commandContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addKey(List<?> vals)
Add a generated key to this result.String[]
getColumnNames()
Get the column names of this result.Class<?>[]
getColumnTypes()
Get the column types of this result.Iterator<List<?>>
getKeyIterator()
Get an iterator to the keys added to this result.List<List<?>>
getKeys()
-
-
-
Field Detail
-
LAST_GENERATED_KEY
public static final String LAST_GENERATED_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GeneratedKeysImpl
protected GeneratedKeysImpl(String[] colNames, Class<?>[] types, CommandContext commandContext)
-
-
Method Detail
-
addKey
public void addKey(List<?> vals)
Description copied from interface:GeneratedKeys
Add a generated key to this result. The list values must match the class types of this result.- Specified by:
addKey
in interfaceGeneratedKeys
-
getColumnNames
public String[] getColumnNames()
Description copied from interface:GeneratedKeys
Get the column names of this result.- Specified by:
getColumnNames
in interfaceGeneratedKeys
- Returns:
-
getColumnTypes
public Class<?>[] getColumnTypes()
Description copied from interface:GeneratedKeys
Get the column types of this result.- Specified by:
getColumnTypes
in interfaceGeneratedKeys
- Returns:
-
getKeyIterator
public Iterator<List<?>> getKeyIterator()
Description copied from interface:GeneratedKeys
Get an iterator to the keys added to this result. The iterator is not guaranteed to be thread-safe with respect to theGeneratedKeys.addKey(List)
method.- Specified by:
getKeyIterator
in interfaceGeneratedKeys
- Returns:
-
-