# IdentifierManagerApi

abstract class IdentifierManagerApi

Base class responsible for the parsing and processing of identifier tokens in SQL command syntax.

## Constructors

IdentifierManagerApi
Link copied to clipboard
constructor()

## Properties

keywords
Link copied to clipboard
val keywords: Set<String>

All keywords for the database, including ANSI_SQL_2003_KEYWORDS and database-specific keywords.

quoteString
Link copied to clipboard
abstract val quoteString: String

The string used to quote SQL identifiers for the database.

## Functions

cutIfNecessaryAndQuote
Link copied to clipboard
fun cutIfNecessaryAndQuote(identity: String): String

Returns an identity wrapped in quotations and containing no more than the maximum identifierLengthLimit.

inProperCase
Link copied to clipboard
fun inProperCase(identity: String): String

Returns an identity in a casing appropriate for its identifier status and the database, then caches the returned value.

needQuotes
Link copied to clipboard
fun needQuotes(identity: String): Boolean

Returns whether an SQL token should be wrapped in quotations and caches the returned value.

quoteIdentifierWhenWrongCaseOrNecessary
Link copied to clipboard
fun quoteIdentifierWhenWrongCaseOrNecessary(identity: String): String

Returns an identity wrapped in quotations, if validated as necessary.

quoteIfNecessary
Link copied to clipboard
fun quoteIfNecessary(identity: String): String

Returns an SQL token wrapped in quotations, if validated as necessary.

shouldQuoteIdentifier
Link copied to clipboard
fun shouldQuoteIdentifier(identity: String): Boolean

Returns whether an identity should be wrapped in quotations and caches the returned value.