System procedures which run only on Java 5 or higher.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | CUSTOM_TOOL_CLASS_NAME
Generic name for all user-supplied tools: the first optional arg is the tool class name |
| private static final String[][] | OPTIONAL_TOOLS
Mapping of tool names to their implementing classes for use by SYSCS_REGISTER_TOOL |
| private static final int | |
| private static final int | TOOL_NAME
Offsets into arrays in OPTIONAL_TOOLS |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static StandardException | |
| private static StandardException | |
| private static String | findToolClassName(String toolName, String... optionalArgs)
Lookup the class name corresponding to the name of an optional tool |
| private static Context | |
| private static String[] | stripCustomClassName(String... optionalArgs)
For a custom tool, we strip the first arg from the list of optional args. |
| public static void | SYSCS_REGISTER_TOOL(String
Name of the tool package. toolName, boolean True if the package should be loaded, false otherwise. register, String... Tool-specific configuration parameters. optionalArgs)Load or unload an optional tool package. |
| private static StandardException |
| CUSTOM_TOOL_CLASS_NAME | back to summary |
|---|---|
| private static final String CUSTOM_TOOL_CLASS_NAME Generic name for all user-supplied tools: the first optional arg is the tool class name | |
| OPTIONAL_TOOLS | back to summary |
|---|---|
| private static final String[][] OPTIONAL_TOOLS Mapping of tool names to their implementing classes for use by SYSCS_REGISTER_TOOL | |
| TOOL_CLASS_NAME | back to summary |
|---|---|
| private static final int TOOL_CLASS_NAME | |
| TOOL_NAME | back to summary |
|---|---|
| private static final int TOOL_NAME Offsets into arrays in OPTIONAL_TOOLS | |
| Java5SystemProcedures | back to summary |
|---|---|
| public Java5SystemProcedures() | |
| badCustomTool | back to summary |
|---|---|
| private static StandardException badCustomTool(String className) | |
| badTool | back to summary |
|---|---|
| private static StandardException badTool(String toolName) | |
| findToolClassName | back to summary |
|---|---|
| private static String findToolClassName(String toolName, String... optionalArgs) throws StandardException Lookup the class name corresponding to the name of an optional tool | |
| getContext | back to summary |
|---|---|
| private static Context getContext(final String contextID) Must be private so that user code can't call this entry point. | |
| stripCustomClassName | back to summary |
|---|---|
| private static String[] stripCustomClassName(String... optionalArgs) For a custom tool, we strip the first arg from the list of optional args. By the time we get to this method, it has already been determined that there is at least one arg and it is the name of a class which implements OptionalTool. | |
| SYSCS_REGISTER_TOOL | back to summary |
|---|---|
| public static void SYSCS_REGISTER_TOOL(String toolName, boolean register, String... optionalArgs) throws SQLException Load or unload an optional tool package. If the tool name is the special CUSTOM_TOOL_CLASS_NAME tool, then the first optionalArg is the name of a user-supplied class which implements OptionalTool.
| |
| wrap | back to summary |
|---|---|
| private static StandardException wrap(Throwable t) | |