public class GenericTokenTableFactory extends Object implements TokenTableFactory
Constructor and Description |
---|
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 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–2019. All rights reserved.