@Beta public class GetObjectColumnMapperFactory extends Object implements ColumnMapperFactory
ResultSet.getObject(int, Class) to fetch values.| Modifier | Constructor and Description |
|---|---|
protected |
GetObjectColumnMapperFactory(Class<?>... types) |
protected |
GetObjectColumnMapperFactory(Collection<Class<?>> types) |
| Modifier and Type | Method and Description |
|---|---|
Optional<ColumnMapper<?>> |
build(Type type,
ConfigRegistry config)
Supplies a column mapper which will map columns to type if the factory supports it; empty otherwise.
|
static ColumnMapperFactory |
forClasses(Class<?>... types) |
static ColumnMapperFactory |
forClasses(Set<Class<?>> types) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitofprotected GetObjectColumnMapperFactory(Class<?>... types)
protected GetObjectColumnMapperFactory(Collection<Class<?>> types)
public Optional<ColumnMapper<?>> build(Type type, ConfigRegistry config)
ColumnMapperFactorybuild in interface ColumnMapperFactorytype - the target type to map toconfig - the config registry, for compositionOptional.empty() otherwise.for compositionpublic static ColumnMapperFactory forClasses(Class<?>... types)
public static ColumnMapperFactory forClasses(Set<Class<?>> types)
Copyright © 2019. All rights reserved.