Class ScriptFile
java.lang.Object
ecmwf.common.database.ScriptFile
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract <T extends DataBaseObject>
ecmwf.common.database.DBIterator<T> executeQuery
(Class<T> resultClass, String sql) Execute query.abstract ecmwf.common.database.DBResultSet
executeQuery
(String sql) Execute query.ecmwf.common.database.DBResultSet
executeQuery
(String menu, String group, String name) Execute query.<T extends DataBaseObject>
ecmwf.common.database.DBIterator<T> executeQuery
(String menu, String group, String name, Class<T> resultClass) Execute query.<T extends DataBaseObject>
ecmwf.common.database.DBIterator<T> executeQuery
(String menu, String group, String name, Class<T> resultClass, Map<String, String> values) Execute query.ecmwf.common.database.DBResultSet
Execute query.executeRequest
(File file) Execute request.abstract int
executeUpdate
(String sql) Execute update.int
executeUpdate
(String menu, String group, String name) Execute update.int
Execute update.boolean
getConfirmation
(String title, String message) Gets the confirmation.Gets the sql parameters.Gets the value.void
loadScripts
(FilenameFilter filter, String repository) Load scripts.void
Show help.void
updateScriptContent
(String menu, String group, String name) Update script content.
-
Constructor Details
-
ScriptFile
public ScriptFile()
-
-
Method Details
-
executeRequest
Execute request.- Parameters:
file
- the file- Returns:
- the object
- Throws:
SQLException
- the SQL exceptionIOException
- Signals that an I/O exception has occurred.
-
executeQuery
public ecmwf.common.database.DBResultSet executeQuery(String menu, String group, String name, Map<String, String> values) throws SQLException, IOExceptionExecute query.- Parameters:
menu
- the menugroup
- the groupname
- the namevalues
- the values- Returns:
- the DB result set
- Throws:
SQLException
- the SQL exceptionIOException
- Signals that an I/O exception has occurred.
-
executeQuery
public <T extends DataBaseObject> ecmwf.common.database.DBIterator<T> executeQuery(String menu, String group, String name, Class<T> resultClass, Map<String, String> values) throws SQLException, IOExceptionExecute query.- Type Parameters:
T
- the generic type- Parameters:
menu
- the menugroup
- the groupname
- the nameresultClass
- the result classvalues
- the values- Returns:
- the DB iterator
- Throws:
SQLException
- the SQL exceptionIOException
- Signals that an I/O exception has occurred.
-
executeQuery
public ecmwf.common.database.DBResultSet executeQuery(String menu, String group, String name) throws SQLException, IOException Execute query.- Parameters:
menu
- the menugroup
- the groupname
- the name- Returns:
- the DB result set
- Throws:
SQLException
- the SQL exceptionIOException
- Signals that an I/O exception has occurred.
-
executeQuery
public <T extends DataBaseObject> ecmwf.common.database.DBIterator<T> executeQuery(String menu, String group, String name, Class<T> resultClass) throws SQLException, IOException Execute query.- Type Parameters:
T
- the generic type- Parameters:
menu
- the menugroup
- the groupname
- the nameresultClass
- the result class- Returns:
- the DB iterator
- Throws:
SQLException
- the SQL exceptionIOException
- Signals that an I/O exception has occurred.
-
executeQuery
Execute query.- Parameters:
sql
- the sql- Returns:
- the DB result set
- Throws:
SQLException
- the SQL exception
-
executeQuery
public abstract <T extends DataBaseObject> ecmwf.common.database.DBIterator<T> executeQuery(Class<T> resultClass, String sql) throws SQLException Execute query.- Type Parameters:
T
- the generic type- Parameters:
resultClass
- the result classsql
- the sql- Returns:
- the DB iterator
- Throws:
SQLException
- the SQL exception
-
executeUpdate
public int executeUpdate(String menu, String group, String name, Map<String, String> values) throws SQLException, IOExceptionExecute update.- Parameters:
menu
- the menugroup
- the groupname
- the namevalues
- the values- Returns:
- the int
- Throws:
SQLException
- the SQL exceptionIOException
- Signals that an I/O exception has occurred.
-
executeUpdate
Execute update.- Parameters:
menu
- the menugroup
- the groupname
- the name- Returns:
- the int
- Throws:
SQLException
- the SQL exceptionIOException
- Signals that an I/O exception has occurred.
-
executeUpdate
Execute update.- Parameters:
sql
- the sql- Returns:
- the int
- Throws:
SQLException
- the SQL exceptionIOException
- Signals that an I/O exception has occurred.
-
getValue
-
showHelp
-
getConfirmation
-
loadScripts
Load scripts.- Parameters:
filter
- the filterrepository
- the repository
-
updateScriptContent
Update script content.- Parameters:
menu
- the menugroup
- the groupname
- the name- Throws:
IOException
- Signals that an I/O exception has occurred.
-
getSqlParameters
-