public class GenericTokenTableFactory extends Object implements TokenTableFactory
Modifier and Type | Field and Description |
---|---|
static GenericTokenTableFactory |
INSTANCE
Creates a singleton reference the the GenericTokenTableFactory implementation.
|
Modifier | Constructor and Description |
---|---|
protected |
GenericTokenTableFactory() |
Modifier and Type | Method and Description |
---|---|
PreparedStatement |
createTable(Connection connection,
TokenSchema schema)
Creates a PreparedStatement that allows for the creation of the table to store tracking token entries.
|
protected String |
tokenType()
Returns the sql to describe the type of token column.
|
public static final GenericTokenTableFactory INSTANCE
public PreparedStatement createTable(Connection connection, TokenSchema schema) throws SQLException
TokenTableFactory
createTable
in interface TokenTableFactory
connection
- The connection to create the PreparedStatement forschema
- The token schema with the name of the table and its columnsSQLException
- when an exception occurs while creating the prepared statementprotected String tokenType()
Copyright © 2010–2024. All rights reserved.