Trace:
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
jvx:firstapp_step-by-step [2018/01/30 08:16] admin |
jvx:firstapp_step-by-step [2018/01/30 10:15] admin |
||
---|---|---|---|
Line 20: | Line 20: | ||
* Client | * Client | ||
* Server | * Server | ||
- | * [[#workscreen|Creation of a work screen]] | + | * [[#create_workscreen|Creation of a work screen]] |
- | * [[#hypersql|Use of a HyperSQL database]] | + | * [[#create_database|Use of a HyperSQL database]] |
== Folder structure == | == Folder structure == | ||
Line 331: | Line 331: | ||
We now create the client class for our work screen: | We now create the client class for our work screen: | ||
- | * **File** / **New** / **Class** \\ {{:jvx:dbedit_new.png?nolink|}} | + | * **File** / **New** / **Class** \\ ''src.client'', ''apps.firstapp.frames.DBEditFrame''\\ {{:jvx:dbedit_new.png?nolink|}} |
and use the following Source Code: | and use the following Source Code: | ||
Line 509: | Line 509: | ||
The client implementation is now finished. Before we can use the application, we must create the missing server classes. We create the following classes: | The client implementation is now finished. Before we can use the application, we must create the missing server classes. We create the following classes: | ||
- | * {{:jvx:lco_application.png?nolink|}} | + | * **File** / **New** / **Class** \\ ''src.server'', ''apps.firstapp.Application''\\ {{:jvx:lco_application.png?nolink|}} |
<file java Application.java> | <file java Application.java> | ||
Line 530: | Line 530: | ||
|The class represents the lifecycle object for an application. There is exactly one instance of this class for each application, thereby enabling the use of session-wide objects.| | |The class represents the lifecycle object for an application. There is exactly one instance of this class for each application, thereby enabling the use of session-wide objects.| | ||
- | * {{:jvx:lco_session.png?nolink|}} | + | * **File** / **New** / **Class** \\ ''src.server'', ''apps.firstapp.Session'' \\ {{:jvx:lco_session.png?nolink|}} |
<file java Session.java> | <file java Session.java> | ||
Line 583: | Line 583: | ||
|getDBAccess|Opens a new connection to a HyperSQL database, if this has not already happened. \\ \\ The Exception Handling is taken over by the server.| | |getDBAccess|Opens a new connection to a HyperSQL database, if this has not already happened. \\ \\ The Exception Handling is taken over by the server.| | ||
- | * {{:jvx:lco_dbedit.png?nolink|}} | + | * **File** / **New** / **Class** \\ ''src.server'', ''apps.firstapp.frames.DBEdit'' \\ {{:jvx:lco_dbedit.png?nolink|}} |
<file java DBEdit.java> | <file java DBEdit.java> |