| Package | Description |
|---|---|
| com.mmnaseri.utils.spring.data.domain | |
| com.mmnaseri.utils.spring.data.domain.impl | |
| com.mmnaseri.utils.spring.data.domain.impl.key | |
| com.mmnaseri.utils.spring.data.dsl.factory | |
| com.mmnaseri.utils.spring.data.dsl.mock | |
| com.mmnaseri.utils.spring.data.proxy | |
| com.mmnaseri.utils.spring.data.proxy.impl | |
| com.mmnaseri.utils.spring.data.repository |
This package implements the bridge pattern over the various repository interfaces in the Spring Data project.
|
| Modifier and Type | Method and Description |
|---|---|
void |
KeyGeneratorAware.setKeyGenerator(KeyGenerator<? extends S> keyGenerator) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractRandomKeyGenerator<S extends Serializable>
This implementation will wrap the key generation process in a procedure that prevents duplicate keys from being
generated.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ConfigurableSequentialIntegerKeyGenerator |
class |
ConfigurableSequentialLongKeyGenerator |
class |
NoOpKeyGenerator<S extends Serializable>
This is a key generator that should be used to indicate that we do not want automatic key generation.
|
class |
RandomIntegerKeyGenerator
This class will help with generating unique, random integers.
|
class |
RandomLongKeyGenerator
This class will help with the generation of unique, random long numbrs.
|
class |
SequentialIntegerKeyGenerator
This class will generate sequential numbers.
|
class |
SequentialLongKeyGenerator
This class will generate sequential, long numbers.
|
class |
UUIDKeyGenerator
This class will generate unique UUIDs for use in entities whose keys are loose String values.
|
| Modifier and Type | Method and Description |
|---|---|
<S extends Serializable,G extends KeyGenerator<S>> |
RepositoryFactoryBuilder.generateKeysUsing(Class<G> generatorType) |
| Modifier and Type | Method and Description |
|---|---|
<S extends Serializable> |
RepositoryFactoryBuilder.generateKeysUsing(KeyGenerator<S> keyGenerator) |
EventListener |
FallbackKeyGenerator.withDefaultKeyGenerator(KeyGenerator<? extends Serializable> keyGenerator)
Sets up a default key generator that would be used as a fallback if no key generation scheme is specified for the
repository
|
EventListener |
RepositoryFactoryBuilder.withDefaultKeyGenerator(KeyGenerator<? extends Serializable> keyGenerator) |
| Modifier and Type | Method and Description |
|---|---|
<S extends Serializable,G extends KeyGenerator<S>> |
RepositoryMockBuilder.generateKeysUsing(Class<G> generatorType) |
<S extends Serializable,G extends KeyGenerator<S>> |
KeyGeneration.generateKeysUsing(Class<G> generatorType)
Sets the key generator to an instance of the provided type.
|
| Modifier and Type | Method and Description |
|---|---|
<S extends Serializable> |
RepositoryMockBuilder.generateKeysUsing(KeyGenerator<S> keyGenerator) |
<S extends Serializable> |
KeyGeneration.generateKeysUsing(KeyGenerator<S> keyGenerator)
Sets the key generator to the provided instance
|
| Modifier and Type | Method and Description |
|---|---|
KeyGenerator<?> |
RepositoryFactoryConfiguration.getDefaultKeyGenerator() |
KeyGenerator<?> |
RepositoryConfiguration.getKeyGenerator() |
| Modifier and Type | Method and Description |
|---|---|
<E> E |
RepositoryFactory.getInstance(KeyGenerator<? extends Serializable> keyGenerator,
Class<E> repositoryInterface,
Class... implementations)
Creates an instance of the repository as per the provided configuration.
|
| Modifier and Type | Method and Description |
|---|---|
KeyGenerator<?> |
DefaultRepositoryFactoryConfiguration.getDefaultKeyGenerator() |
KeyGenerator<?> |
ImmutableRepositoryFactoryConfiguration.getDefaultKeyGenerator() |
KeyGenerator<?> |
ImmutableRepositoryConfiguration.getKeyGenerator() |
| Modifier and Type | Method and Description |
|---|---|
<E> E |
DefaultRepositoryFactory.getInstance(KeyGenerator<? extends Serializable> keyGenerator,
Class<E> repositoryInterface,
Class... implementations) |
void |
DefaultRepositoryFactoryConfiguration.setDefaultKeyGenerator(KeyGenerator<?> defaultKeyGenerator) |
| Modifier and Type | Method and Description |
|---|---|
protected KeyGenerator<? extends Serializable> |
CrudRepositorySupport.getKeyGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
CrudRepositorySupport.setKeyGenerator(KeyGenerator<? extends Serializable> keyGenerator) |
Copyright © 2014–2016. All rights reserved.