public final class ConstantPreparedStatementDataProvider extends Object implements IPreparedStatementDataProvider, com.helger.commons.lang.ICloneable<ConstantPreparedStatementDataProvider>
IPreparedStatementDataProvider that
takes a list of objects and returns theses objects as they are.| Constructor and Description |
|---|
ConstantPreparedStatementDataProvider() |
ConstantPreparedStatementDataProvider(Iterable<?> aValues) |
ConstantPreparedStatementDataProvider(Object... aValues) |
| Modifier and Type | Method and Description |
|---|---|
ConstantPreparedStatementDataProvider |
addValue(Object aValue) |
ConstantPreparedStatementDataProvider |
getClone() |
com.helger.commons.collection.impl.ICommonsList<Object> |
getObjectValues() |
int |
getValueCount() |
String |
toString() |
public ConstantPreparedStatementDataProvider()
public ConstantPreparedStatementDataProvider(@Nonnull Iterable<?> aValues)
@Nonnull public ConstantPreparedStatementDataProvider addValue(@Nullable Object aValue)
@Nonnegative public int getValueCount()
getValueCount in interface IPreparedStatementDataProvider@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<Object> getObjectValues()
getObjectValues in interface IPreparedStatementDataProvidernull, unmodifiable list of values. The length of
the returned list must match the result of IPreparedStatementDataProvider.getValueCount()
.@Nonnull @ReturnsMutableCopy public ConstantPreparedStatementDataProvider getClone()
getClone in interface com.helger.commons.lang.ICloneable<ConstantPreparedStatementDataProvider>Copyright © 2014–2021 Philip Helger. All rights reserved.