Skip navigation links
A B C D E G H I J L M O P R S T U W 

A

AbstractTypeHandler<T> - Class in com.cvent.dropwizard.mybatis.typehandlers
TypeHandler helper for String based JdbcType's conversion
AbstractTypeHandler(Function<String, T>, T) - Constructor for class com.cvent.dropwizard.mybatis.typehandlers.AbstractTypeHandler
 
addConfigurationSettings(String, Object) - Method in class com.cvent.dropwizard.mybatis.sessionbuilder.DefaultSqlSessionFactoryProvider.Builder
Add a new MyBatis Configuration Setting.
addMapper(Class<?>) - Method in class com.cvent.dropwizard.mybatis.sessionbuilder.DefaultSqlSessionFactoryProvider.Builder
Register a new sql mapper to be used with this sql session provider

B

BaseDataAccess - Class in com.cvent.dropwizard.mybatis.dataaccess
This is the base class needed for data access classes to operate under the multi-environment set up.
BaseDataAccess(Function<String, SqlSessionFactory>) - Constructor for class com.cvent.dropwizard.mybatis.dataaccess.BaseDataAccess
contructor
build(MetricRegistry, String) - Method in class com.cvent.dropwizard.mybatis.datasource.ConfigurableLazyDataSourceFactory
build(Environment, MyBatisConfiguration, String) - Method in class com.cvent.dropwizard.mybatis.MyBatisFactory
Create an instance of MyBatis.
build(Environment, MyBatisConfiguration, ManagedDataSource, String) - Method in class com.cvent.dropwizard.mybatis.MyBatisFactory
Create an instance of MyBatis.
build(Environment, DataSourceFactory, ManagedDataSource, String) - Method in class com.cvent.dropwizard.mybatis.MyBatisFactory
Create an instance of MyBatis.
build() - Method in class com.cvent.dropwizard.mybatis.sessionbuilder.DefaultSqlSessionFactoryProvider.Builder
Create a new SqlSessionFactoryProvider based on the attributes that have been added to this builder
Builder(Environment, String, MultiEnvAware<ConfigurableLazyDataSourceFactory>) - Constructor for class com.cvent.dropwizard.mybatis.sessionbuilder.DefaultSqlSessionFactoryProvider.Builder
A new Builder

C

check() - Method in class com.cvent.dropwizard.mybatis.MyBatisHealthCheck
 
com.cvent.dropwizard.mybatis - package com.cvent.dropwizard.mybatis
 
com.cvent.dropwizard.mybatis.dataaccess - package com.cvent.dropwizard.mybatis.dataaccess
 
com.cvent.dropwizard.mybatis.dataaccess.testing - package com.cvent.dropwizard.mybatis.dataaccess.testing
 
com.cvent.dropwizard.mybatis.datasource - package com.cvent.dropwizard.mybatis.datasource
 
com.cvent.dropwizard.mybatis.exceptionMappers - package com.cvent.dropwizard.mybatis.exceptionMappers
 
com.cvent.dropwizard.mybatis.mappers - package com.cvent.dropwizard.mybatis.mappers
 
com.cvent.dropwizard.mybatis.objectFactories - package com.cvent.dropwizard.mybatis.objectFactories
 
com.cvent.dropwizard.mybatis.sessionbuilder - package com.cvent.dropwizard.mybatis.sessionbuilder
 
com.cvent.dropwizard.mybatis.typehandlers - package com.cvent.dropwizard.mybatis.typehandlers
 
ConfigurableLazyDataSourceFactory - Class in com.cvent.dropwizard.mybatis.datasource
Builds lazy (connect on first usage) instance of managed pooled datasource
ConfigurableLazyDataSourceFactory() - Constructor for class com.cvent.dropwizard.mybatis.datasource.ConfigurableLazyDataSourceFactory
 
create(Class<T>) - Method in class com.cvent.dropwizard.mybatis.objectFactories.ImmutablesFactory
This is the default call when not using the constructor configuration.
create(Class<T>, List<Class<?>>, List<Object>) - Method in class com.cvent.dropwizard.mybatis.objectFactories.ImmutablesFactory
This is the call MyBatis uses when constructor is used in the mapping.
createPool() - Method in class com.cvent.dropwizard.mybatis.datasource.LazyManagedPooledDataSource

D

DefaultSqlSessionFactoryProvider - Class in com.cvent.dropwizard.mybatis.sessionbuilder
This is the base SqlSessionFactoryProvider class to manage SQL session initialization for all environments specified in the configuration on startup.
DefaultSqlSessionFactoryProvider.Builder - Class in com.cvent.dropwizard.mybatis.sessionbuilder
A simple builder allowing us to customize the underlying session factory provider

E

ESTDateTypeHandler - Class in com.cvent.dropwizard.mybatis.typehandlers
SQL database saves all dates in EST time, (at least for Events + Surveys), however, on the java boxes that mybatis runs on, the dates are in UTC time.
ESTDateTypeHandler() - Constructor for class com.cvent.dropwizard.mybatis.typehandlers.ESTDateTypeHandler
 

G

getConfig() - Method in class com.cvent.dropwizard.mybatis.MyBatisConfiguration
 
getConfigFile() - Method in class com.cvent.dropwizard.mybatis.MyBatisConfiguration
 
getEnvironment() - Method in class com.cvent.dropwizard.mybatis.MyBatisConfiguration
 
getNullableResult(ResultSet, String) - Method in class com.cvent.dropwizard.mybatis.typehandlers.AbstractTypeHandler
 
getNullableResult(ResultSet, int) - Method in class com.cvent.dropwizard.mybatis.typehandlers.AbstractTypeHandler
 
getNullableResult(CallableStatement, int) - Method in class com.cvent.dropwizard.mybatis.typehandlers.AbstractTypeHandler
 
getNullableResult(ResultSet, String) - Method in class com.cvent.dropwizard.mybatis.typehandlers.ESTDateTypeHandler
 
getNullableResult(ResultSet, int) - Method in class com.cvent.dropwizard.mybatis.typehandlers.ESTDateTypeHandler
 
getNullableResult(CallableStatement, int) - Method in class com.cvent.dropwizard.mybatis.typehandlers.ESTDateTypeHandler
 
getNullableResult(ResultSet, String) - Method in class com.cvent.dropwizard.mybatis.typehandlers.JsonTypeHandler
Retrieve this custom Json object
getNullableResult(ResultSet, int) - Method in class com.cvent.dropwizard.mybatis.typehandlers.JsonTypeHandler
Retrieve this custom Json object
getNullableResult(CallableStatement, int) - Method in class com.cvent.dropwizard.mybatis.typehandlers.JsonTypeHandler
Retrieve this custom Json object
getNullableResult(ResultSet, String) - Method in class com.cvent.dropwizard.mybatis.typehandlers.UUIDObjectTypeHandler
 
getNullableResult(ResultSet, int) - Method in class com.cvent.dropwizard.mybatis.typehandlers.UUIDObjectTypeHandler
 
getNullableResult(CallableStatement, int) - Method in class com.cvent.dropwizard.mybatis.typehandlers.UUIDObjectTypeHandler
 
getSessionFactory(String) - Method in class com.cvent.dropwizard.mybatis.dataaccess.BaseDataAccess
Gets the sql session factory by environment name The behavior of .apply() will be defined by the SessionBuilderFactory class
getSqlSessionFactory(String) - Method in class com.cvent.dropwizard.mybatis.sessionbuilder.DefaultSqlSessionFactoryProvider
Get SQL session by environment name, create a new session if requested environment is not found
getSqlSessionFactory(String) - Method in interface com.cvent.dropwizard.mybatis.sessionbuilder.SqlSessionFactoryProvider
Use an environment name to produce an instance of SqlSessionFactory

H

healthCheck() - Method in interface com.cvent.dropwizard.mybatis.mappers.HealthCheckMapper
Perform a healthcheck using provided select
HealthCheckMapper - Interface in com.cvent.dropwizard.mybatis.mappers
A mybatis mapper for performing healthchecks

I

IdentityWrappedInvoker<T> - Class in com.cvent.dropwizard.mybatis.dataaccess.testing
This is a simple class for testing classes that use instances of WrappedInvoker.
IdentityWrappedInvoker(T) - Constructor for class com.cvent.dropwizard.mybatis.dataaccess.testing.IdentityWrappedInvoker
 
ImmutablesFactory - Class in com.cvent.dropwizard.mybatis.objectFactories
Custom MyBatis Object Factory so we can handle Immutables.
ImmutablesFactory() - Constructor for class com.cvent.dropwizard.mybatis.objectFactories.ImmutablesFactory
 
invoke(Function<TMapper, TResult>) - Method in class com.cvent.dropwizard.mybatis.dataaccess.MyBatisMapperInvoker
 
invoke(Function<TMapper, TResult>, String) - Method in class com.cvent.dropwizard.mybatis.dataaccess.MyBatisMapperInvoker
In case you want to eschew cvent-pangea's contextual environment and pass it yourself, this overload is available.
invoke(Function<T, TResult>) - Method in class com.cvent.dropwizard.mybatis.dataaccess.testing.IdentityWrappedInvoker
 
invoke(Function<TMapper, TResult>) - Method in class com.cvent.dropwizard.mybatis.dataaccess.testing.MyBatisMapperIdentityInvoker
 
invoke(Function<TMapper, TResult>, String) - Method in class com.cvent.dropwizard.mybatis.dataaccess.testing.MyBatisMapperIdentityInvoker
 
invoke(Function<T, TResult>) - Method in interface com.cvent.dropwizard.mybatis.dataaccess.WrappedInvoker
Your implementation of this method should manufacture or reuse an instance of T, then apply function to it

J

JsonTypeHandler<T> - Class in com.cvent.dropwizard.mybatis.typehandlers
MyBatis TypeHandler to convert to/from json and jsonb types To use with Immutables you may need to map both the interface and the immutable class in the class that extends this one, something like:
JsonTypeHandler(Class<T>, ObjectMapper) - Constructor for class com.cvent.dropwizard.mybatis.typehandlers.JsonTypeHandler
 

L

LazyManagedPooledDataSource - Class in com.cvent.dropwizard.mybatis.datasource
Lazy implementation that delays pool initialization until it's actually being used and not on application startup.
LazyManagedPooledDataSource(PoolConfiguration, MetricRegistry) - Constructor for class com.cvent.dropwizard.mybatis.datasource.LazyManagedPooledDataSource
 

M

MyBatisConfiguration - Class in com.cvent.dropwizard.mybatis
Created by jmorley on 9/22/14.
MyBatisConfiguration() - Constructor for class com.cvent.dropwizard.mybatis.MyBatisConfiguration
 
MyBatisFactory - Class in com.cvent.dropwizard.mybatis
A factor for creating instances of MyBatis
MyBatisFactory() - Constructor for class com.cvent.dropwizard.mybatis.MyBatisFactory
 
MyBatisHealthCheck - Class in com.cvent.dropwizard.mybatis
A standard MyBatis healthcheck
MyBatisHealthCheck(SqlSessionFactory, String) - Constructor for class com.cvent.dropwizard.mybatis.MyBatisHealthCheck
Create a new dropwizard healthcheck
MyBatisMapperIdentityInvoker<TMapper> - Class in com.cvent.dropwizard.mybatis.dataaccess.testing
This class has the same intent as IdentityWrappedInvoker, but for those who need concrete instances of MyBatisMapperInvoker because of the invoke overload that takes the environment argument.
MyBatisMapperIdentityInvoker(TMapper) - Constructor for class com.cvent.dropwizard.mybatis.dataaccess.testing.MyBatisMapperIdentityInvoker
 
MyBatisMapperInvoker<TMapper> - Class in com.cvent.dropwizard.mybatis.dataaccess
This is a thin generic wrapper around mybatis mappers that encapsulates SQL session management so you can just invoke mapper methods (more or less) directly.
MyBatisMapperInvoker(Class<TMapper>, SqlSessionFactoryProvider) - Constructor for class com.cvent.dropwizard.mybatis.dataaccess.MyBatisMapperInvoker
 

O

objectFactory(ObjectFactory) - Method in class com.cvent.dropwizard.mybatis.sessionbuilder.DefaultSqlSessionFactoryProvider.Builder
Add an object factory to the builder

P

PersistenceExceptionMapper - Class in com.cvent.dropwizard.mybatis.exceptionMappers
Mapper to trap unhandled SQL exceptions and prevent the query text from leaking into response messages
PersistenceExceptionMapper() - Constructor for class com.cvent.dropwizard.mybatis.exceptionMappers.PersistenceExceptionMapper
 

R

register(Class<?>) - Method in class com.cvent.dropwizard.mybatis.sessionbuilder.DefaultSqlSessionFactoryProvider.Builder
Register a new type handler to be used with this sql session provider
register(Class<?>, Class<?>) - Method in class com.cvent.dropwizard.mybatis.sessionbuilder.DefaultSqlSessionFactoryProvider.Builder
Register a new type and type handler association to be used with this sql session provider
registerAlias(String, Class<?>) - Method in class com.cvent.dropwizard.mybatis.sessionbuilder.DefaultSqlSessionFactoryProvider.Builder
Register a new alias to be used with this sql session provider

S

setNonNullParameter(PreparedStatement, int, T, JdbcType) - Method in class com.cvent.dropwizard.mybatis.typehandlers.AbstractTypeHandler
 
setNonNullParameter(PreparedStatement, int, Object, JdbcType) - Method in class com.cvent.dropwizard.mybatis.typehandlers.ESTDateTypeHandler
 
setNonNullParameter(PreparedStatement, int, T, JdbcType) - Method in class com.cvent.dropwizard.mybatis.typehandlers.JsonTypeHandler
Convert this object to JSON
setNonNullParameter(PreparedStatement, int, UUID, JdbcType) - Method in class com.cvent.dropwizard.mybatis.typehandlers.UUIDObjectTypeHandler
 
SqlSessionFactoryProvider - Interface in com.cvent.dropwizard.mybatis.sessionbuilder
An object that can produce SqlSessionFactory instances
start() - Method in class com.cvent.dropwizard.mybatis.datasource.LazyManagedPooledDataSource

T

toResponse(PersistenceException) - Method in class com.cvent.dropwizard.mybatis.exceptionMappers.PersistenceExceptionMapper
 

U

URITypeHandler - Class in com.cvent.dropwizard.mybatis.typehandlers
URI type handler
URITypeHandler() - Constructor for class com.cvent.dropwizard.mybatis.typehandlers.URITypeHandler
 
URITypeHandler(Function<String, URI>, URI) - Constructor for class com.cvent.dropwizard.mybatis.typehandlers.URITypeHandler
 
UUIDObjectTypeHandler - Class in com.cvent.dropwizard.mybatis.typehandlers
Add this type handler to your MyBatis SqlSessionFactory's configuration like so: sessionFactory.getConfiguration() .getTypeHandlerRegistry() .register(UUID.class, UUIDObjectTypeHandler); Unlike UUIDTypeHandler this expects the JDBC driver to have native support for the UUID type.
UUIDObjectTypeHandler() - Constructor for class com.cvent.dropwizard.mybatis.typehandlers.UUIDObjectTypeHandler
 
UUIDTypeHandler - Class in com.cvent.dropwizard.mybatis.typehandlers
Add this type handler to your MyBatis SqlSessionFactory's configuration like so: sessionFactory.getConfiguration() .getTypeHandlerRegistry() .register(UUID.class, UUIDTypeHandler); Or to use with default null-value sessionFactory.getConfiguration() .getTypeHandlerRegistry() .register(UUID.class, new UUIDTypeHandler(new UUID(0L, 0L)); When MyBatis encounters a UUID property during the mapping process, it will use this class to convert the result from the DB to a UUID.
UUIDTypeHandler() - Constructor for class com.cvent.dropwizard.mybatis.typehandlers.UUIDTypeHandler
 
UUIDTypeHandler(UUID) - Constructor for class com.cvent.dropwizard.mybatis.typehandlers.UUIDTypeHandler
 
UUIDTypeHandler(Function<String, UUID>, UUID) - Constructor for class com.cvent.dropwizard.mybatis.typehandlers.UUIDTypeHandler
 

W

WrappedInvoker<T> - Interface in com.cvent.dropwizard.mybatis.dataaccess
This is a higher order function that allows implementations to manufacture instances of T and execute Functions using them.
A B C D E G H I J L M O P R S T U W 
Skip navigation links

Copyright © 2019. All rights reserved.