Package de.yamass.redg.runtime
Class RedGBuilder<T extends AbstractRedG>
java.lang.Object
de.yamass.redg.runtime.RedGBuilder<T>
This is a simple builder that allows you to easily create a customized RedG instance.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new builder that attempts to load the default RedG class (de.yamass.redg.generated.RedG) and use it as the instance.RedGBuilder
(Class<T> clazz) Creates a new builder -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns the customized RedG main classwithDefaultValueStrategy
(DefaultValueStrategy strategy) Sets the default value strategywithDummyFactory
(DummyFactory dummyFactory) Sets the dummy factorySets the PreparedStatement parameter setterwithSqlValuesFormatter
(SQLValuesFormatter formatter) Sets the SQL values formatter
-
Constructor Details
-
RedGBuilder
public RedGBuilder()Creates a new builder that attempts to load the default RedG class (de.yamass.redg.generated.RedG) and use it as the instance. If you changed the package or class name, useRedGBuilder(Class)
instead. -
RedGBuilder
Creates a new builder- Parameters:
clazz
- The RedG main class to be used
-
-
Method Details
-
withDefaultValueStrategy
Sets the default value strategy- Parameters:
strategy
- The default value strategy- Returns:
- The builder itself
- See Also:
-
withPreparedStatementParameterSetter
Sets the PreparedStatement parameter setter- Parameters:
setter
- The PreparedStatement parameter setter- Returns:
- The builder itself
- See Also:
-
withSqlValuesFormatter
Sets the SQL values formatter- Parameters:
formatter
- The SQL values formatter- Returns:
- The builder itself
- See Also:
-
withDummyFactory
Sets the dummy factory- Parameters:
dummyFactory
- The dummy factory- Returns:
- The builder itself
- See Also:
-
build
Returns the customized RedG main class- Returns:
- The RedG main class
-