| java.lang.Object net.sourceforge.squirrel_sql.plugins.sqlbookmark.RunBookmarkCommand
RunBookmarkCommand | public class RunBookmarkCommand implements ICommand(Code) | | Runs a bookmark.
author: Joseph Mocker |
Inner Class :static class Parameter | |
Method Summary | |
public void | execute() Load the Bookmark into the SQL Edit buffer. | protected String | parseAndLoadSql(String sql) Parse the SQL and prompt the user for entry values.
Bookmarked SQL strings can have replaceable parameters. |
execute | public void execute()(Code) | | Load the Bookmark into the SQL Edit buffer.
|
parseAndLoadSql | protected String parseAndLoadSql(String sql)(Code) | | Parse the SQL and prompt the user for entry values.
Bookmarked SQL strings can have replaceable parameters. At the time
the bookmark is loaded, the user is asked to enter values for any
of the parameters. The parameters come in three forms:
${prompt[, tip]} - simple anonymous parameter
${id=name, prompt[, tip]} - named parameter, allows it to be reused
${ref=name} - use the value of an already named parameter.
where
prompt is the string to display in the popup prompt
tip is the optional tooltip to display on the popup prompt
name is the "variable" name of the parameter.
Parameters: sql - The SQL to parse and load. the post-processed SQL. |
|
|