Class GenericTokenTableFactory
java.lang.Object
org.axonframework.eventhandling.tokenstore.jdbc.GenericTokenTableFactory
- All Implemented Interfaces:
TokenTableFactory
- Direct Known Subclasses:
PostgresTokenTableFactory
Jdbc token entry table factory compatible with most databases.
- Author:
- Rene de Waele
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GenericTokenTableFactoryCreates a singleton reference the the GenericTokenTableFactory implementation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateTable(Connection connection, TokenSchema schema) Creates a PreparedStatement that allows for the creation of the table to store tracking token entries.protected StringReturns the sql to describe the type of token column.
-
Field Details
-
INSTANCE
Creates a singleton reference the the GenericTokenTableFactory implementation.
-
-
Constructor Details
-
GenericTokenTableFactory
protected GenericTokenTableFactory()
-
-
Method Details
-
createTable
Description copied from interface:TokenTableFactoryCreates a PreparedStatement that allows for the creation of the table to store tracking token entries.- Specified by:
createTablein interfaceTokenTableFactory- Parameters:
connection- The connection to create the PreparedStatement forschema- The token schema with the name of the table and its columns- Returns:
- The statement to create the table, ready to be executed
- Throws:
SQLException- when an exception occurs while creating the prepared statement
-
tokenType
Returns the sql to describe the type of token column.- Returns:
- the sql for the token column
-