Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Scout/Concepts/Sql Service"

(New page: {{ScoutPage|cat=Concepts}} The SqlService provides access to a database. * implements {{ScoutJavadoc|ISqlService|I}} * extends {{ScoutJavadoc|AbstractSqlService|C}} ==Description== {{No...)
 
m (Category changed)
Line 1: Line 1:
{{ScoutPage|cat=Concepts}}
+
{{ScoutPage|cat=Server}}
  
 
The SqlService provides access to a database.
 
The SqlService provides access to a database.

Revision as of 12:14, 3 November 2011

The Scout documentation has been moved to https://eclipsescout.github.io/.

The SqlService provides access to a database.

Description

Note.png
TODO
Add a description


Minimal configuration

To be able to connect to a database, these properties needs to be configured:


SQL convenience class

Scout proposes a convenience singleton class to access the default SqlService: The Scout documentation has been moved to https://eclipsescout.github.io/.

Here a simple example:

    SQL.update(
        " update      actor " +
        " set         first_name = :firstName," +
        "             last_name = :lastName " +
        " where       actor_id = :id ",
        formData
        );

See also

Back to the top