public class TParserPoolFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getAllStatistics()
Gets statistics for all pools.
|
static TParserPool |
getNamedPool(String name)
Gets a named parser pool with default size.
|
static TParserPool |
getNamedPool(String name,
int poolSize)
Creates or gets a named parser pool.
|
static TParserPool |
getSharedPool()
Gets the shared global parser pool instance.
|
static int |
parseSQL(EDbVendor vendor,
String sqlText)
Convenience method to parse SQL using the shared pool.
|
static void |
removeNamedPool(String name)
Removes and shuts down a named pool.
|
static void |
resetSharedPool()
Resets the shared pool instance.
|
static void |
setDefaultPoolSize(int size)
Sets the default pool size for new pools.
|
static void |
shutdownAll()
Shuts down all pools.
|
static int |
tokenizeSQL(EDbVendor vendor,
String sqlText)
Convenience method to tokenize SQL using the shared pool.
|
public static TParserPool getSharedPool()
public static TParserPool getNamedPool(String name, int poolSize)
name - Pool namepoolSize - Size of the poolpublic static TParserPool getNamedPool(String name)
name - Pool namepublic static void setDefaultPoolSize(int size)
size - Default pool sizepublic static void resetSharedPool()
public static void removeNamedPool(String name)
name - Pool namepublic static void shutdownAll()
public static int parseSQL(EDbVendor vendor, String sqlText)
vendor - Database vendorsqlText - SQL text to parsepublic static int tokenizeSQL(EDbVendor vendor, String sqlText)
vendor - Database vendorsqlText - SQL text to tokenizepublic static String getAllStatistics()