Class DynamoDBRepositoryFactory
- java.lang.Object
-
- org.springframework.data.repository.core.support.RepositoryFactorySupport
-
- org.socialsignin.spring.data.dynamodb.repository.support.DynamoDBRepositoryFactory
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware
public class DynamoDBRepositoryFactory extends org.springframework.data.repository.core.support.RepositoryFactorySupport- Author:
- Michael Lavelle, Sebastian Just
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport
org.springframework.data.repository.core.support.RepositoryFactorySupport.ImplementationMethodExecutionInterceptor, org.springframework.data.repository.core.support.RepositoryFactorySupport.QueryExecutorMethodInterceptor
-
-
Constructor Summary
Constructors Constructor Description DynamoDBRepositoryFactory(DynamoDBOperations dynamoDBOperations)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T,ID>
DynamoDBCrudRepository<?,?>getDynamoDBRepository(org.springframework.data.repository.core.RepositoryMetadata metadata)Callback to create aDynamoDBCrudRepositoryinstance with the givenRepositoryMetadataprotected EnableScanPermissionsgetEnableScanPermissions(org.springframework.data.repository.core.RepositoryMetadata metadata)<T,ID>
DynamoDBEntityInformation<T,ID>getEntityInformation(java.lang.Class<T> domainClass)protected java.util.Optional<org.springframework.data.repository.query.QueryLookupStrategy>getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider)protected java.lang.Class<?>getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata)protected java.lang.ObjectgetTargetRepository(org.springframework.data.repository.core.RepositoryInformation metadata)protected static booleanisCompatible(java.lang.String spec, java.lang.String impl)-
Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport
addQueryCreationListener, addRepositoryProxyPostProcessor, getProjectionFactory, getQueryMethods, getRepository, getRepository, getRepository, getRepositoryFragments, getRepositoryInformation, getRepositoryMetadata, getTargetRepositoryViaReflection, getTargetRepositoryViaReflection, setBeanClassLoader, setBeanFactory, setEvaluationContextProvider, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, validate
-
-
-
-
Constructor Detail
-
DynamoDBRepositoryFactory
public DynamoDBRepositoryFactory(DynamoDBOperations dynamoDBOperations)
-
-
Method Detail
-
isCompatible
protected static boolean isCompatible(java.lang.String spec, java.lang.String impl)
-
getEntityInformation
public <T,ID> DynamoDBEntityInformation<T,ID> getEntityInformation(java.lang.Class<T> domainClass)
- Specified by:
getEntityInformationin classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
getQueryLookupStrategy
protected java.util.Optional<org.springframework.data.repository.query.QueryLookupStrategy> getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider)- Overrides:
getQueryLookupStrategyin classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
getDynamoDBRepository
protected <T,ID> DynamoDBCrudRepository<?,?> getDynamoDBRepository(org.springframework.data.repository.core.RepositoryMetadata metadata)
Callback to create aDynamoDBCrudRepositoryinstance with the givenRepositoryMetadata- Type Parameters:
T- Type of the EntityID- Type of the Hash (Primary) Key- Parameters:
metadata- Metadata of the entity- Returns:
- the created
DynamoDBCrudRepositoryinstance - See Also:
getTargetRepository(RepositoryInformation)
-
getEnableScanPermissions
protected EnableScanPermissions getEnableScanPermissions(org.springframework.data.repository.core.RepositoryMetadata metadata)
-
getRepositoryBaseClass
protected java.lang.Class<?> getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata)
- Specified by:
getRepositoryBaseClassin classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
getTargetRepository
protected java.lang.Object getTargetRepository(org.springframework.data.repository.core.RepositoryInformation metadata)
- Specified by:
getTargetRepositoryin classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
-