public class SQLValidator
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static SQLValidator |
getInstance()
Method to get an instance from SQLValidator (Singleton).
|
java.lang.String |
getValidatedQuery(java.sql.Connection conn, java.lang.String wildCardedQuery, java.lang.String... sqlNames)
Receives a wildCarded SQL query and a list of SQL Names as parameters of the wildCards.
|
public static SQLValidator getInstance()
public java.lang.String getValidatedQuery(java.sql.Connection conn, java.lang.String wildCardedQuery, java.lang.String... sqlNames) throws NFEIOException
conn
- Connection to the DatabasewildCardedQuery
- Query with the wildCards in the form of :parametersqlNames
- List of sql namesNFEIOException
- An exception listing the invalid names. Error Code: NFEIOException.INVALID_SQL_NAME
.