Class PostgresDispatcherFactory
- java.lang.Object
-
- no.skatteetaten.fastsetting.formueinntekt.felles.documentsql.postgres.PostgresDispatcherFactory
-
- All Implemented Interfaces:
JdbcDispatcherFactory
public class PostgresDispatcherFactory extends Object implements JdbcDispatcherFactory
-
-
Field Summary
-
Fields inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.documentsql.api.JdbcDispatcherFactory
DELETED, ID, PAYLOAD, REVISION
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckError(boolean exists, int code)<T> JdbcDispatcher<T>create(String name, Map<List<List<PathElement>>,Map<List<PathElement>,Class<?>>> views, NameResolver nameResolver, TableResolver<T> tableResolver)static PostgresDispatcherFactoryofJson()static PostgresDispatcherFactoryofXml()static PostgresDispatcherFactoryofXml(Function<Set<String>,Map<String,String>> namespacePrefixResolver)PostgresDispatcherFactorywithMeta(boolean meta)PostgresDispatcherFactorywithSynonym(boolean synonym)PostgresDispatcherFactorywithTypeResolver(Function<Class<?>,String> typeResolver)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.documentsql.api.JdbcDispatcherFactory
create, getBaseTable
-
-
-
-
Method Detail
-
ofXml
public static PostgresDispatcherFactory ofXml()
-
ofXml
public static PostgresDispatcherFactory ofXml(Function<Set<String>,Map<String,String>> namespacePrefixResolver)
-
ofJson
public static PostgresDispatcherFactory ofJson()
-
withTypeResolver
public PostgresDispatcherFactory withTypeResolver(Function<Class<?>,String> typeResolver)
-
withMeta
public PostgresDispatcherFactory withMeta(boolean meta)
-
withSynonym
public PostgresDispatcherFactory withSynonym(boolean synonym)
-
create
public <T> JdbcDispatcher<T> create(String name, Map<List<List<PathElement>>,Map<List<PathElement>,Class<?>>> views, NameResolver nameResolver, TableResolver<T> tableResolver)
- Specified by:
createin interfaceJdbcDispatcherFactory
-
checkError
public boolean checkError(boolean exists, int code)- Specified by:
checkErrorin interfaceJdbcDispatcherFactory
-
-