public interface KeyGeneration extends Implementation
| Modifier and Type | Method and Description |
|---|---|
<S extends Serializable,G extends KeyGenerator<S>> |
generateKeysUsing(Class<G> generatorType)
Sets the key generator to an instance of the provided type.
|
<S extends Serializable> |
generateKeysUsing(KeyGenerator<S> keyGenerator)
Sets the key generator to the provided instance
|
Implementation |
withoutGeneratingKeys()
Tells the builder that we are not going to have any auto-generated keys
|
usingImplementation<S extends Serializable> Implementation generateKeysUsing(KeyGenerator<S> keyGenerator)
S - the type of the keyskeyGenerator - the key generator<S extends Serializable,G extends KeyGenerator<S>> Implementation generateKeysUsing(Class<G> generatorType)
S - the type of the keys the generator will be generatingG - the type of the generatorgeneratorType - the type of the key generator to useImplementation withoutGeneratingKeys()
Copyright © 2014–2016. All rights reserved.