Skip to content

Commit 8efd74c

Browse files
committed
updated README's
1 parent 5a4cefb commit 8efd74c

File tree

4 files changed

+14
-34
lines changed

4 files changed

+14
-34
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ This example will work with any 12.x OPL version, even if it is configured to ru
4141
MySQL Comunity Server, but is compatible with minimal changes with other JDBC
4242
compatible databases.
4343

44-
## Build and run the sample from java
44+
## Build and run the sample
4545

46-
The default sample uses model and data from [examples/oil](examples/oil)
46+
The default sample uses model and data from [examples/oil](examples/oil).
47+
Before you run, you need to populate the database. See details in subsections:
4748

4849
- [Run sample with DB2](README.DB2.md)
4950
- [Run sample with MySQL](README.MySQL.md)

examples/advanced_queries/README.md

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ create database. This version offers the most flexibility for outputs to databas
55

66
# Setup
77

8-
Before you run the sample, you will need to edit [oil.dat](oil.dat), and configure
8+
Before you run the sample, please make sure you created an example database.
9+
See the *Setup the sample database* section for [DB2](../../README.DB2.md),
10+
[MySQL](../../README.MySQL.md), [Microsoft SQL Server](../../README.SQLServer.md).
11+
12+
Then, you will need to edit [oil.dat](oil.dat), and configure
913
paths. In particular, you want to add the JDBC connector jar, for instance:
1014

1115
```
@@ -14,21 +18,6 @@ paths. In particular, you want to add the JDBC connector jar, for instance:
1418
IloOplImportJava("../../external_libs/mssql-jdbc-7.2.2.jre8.jar")
1519
```
1620

17-
And you want to specify the configuration file for your database connection:
18-
19-
```
20-
// This is the configuration file for accessing your database.
21-
var jdbcConfigXml = "../../data/db_mssql.xml";
22-
```
23-
24-
Lastly, you want to point to the jdbc custom data source jar.
25-
It is distributed as binaries in the [lib](../../lib) directory:
26-
27-
```
28-
// The jar containing the jdbc custom data source
29-
IloOplImportJava("../../lib/jdbc-custom-data-source.jar");
30-
```
31-
3221
# Customize table creation
3322

3423
Instead of using default table creation, this sample relies on SQL statement executed when the model is run.
@@ -53,7 +42,7 @@ To run the sample, invoke the `run.bat` script:
5342
```
5443
[P36] D:\>
5544
run.bat
56-
Buildfile: D:\opl\OPL-jdbc-custom-data-source\examples\ilo_opl_call_java\build.xml
45+
Buildfile: D:\opl\OPL-jdbc-custom-data-source\examples\advanced_queries\build.xml
5746
5847
platform:
5948

examples/embedded_in_dat/README.md

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ The difference is that the connection strings and queries are in the .dat as wel
66

77
# Setup
88

9-
Before you run the sample, you will need to edit [oil.dat](oil.dat), and configure
9+
Before you run the sample, please make sure you created an example database.
10+
See the *Setup the sample database* section for [DB2](../../README.DB2.md),
11+
[MySQL](../../README.MySQL.md), [Microsoft SQL Server](../../README.SQLServer.md).
12+
13+
Then, you will need to edit [oil.dat](oil.dat), and configure
1014
paths. In particular, you want to add the JDBC connector jar, for instance:
1115

1216
```
@@ -15,20 +19,6 @@ paths. In particular, you want to add the JDBC connector jar, for instance:
1519
IloOplImportJava("../../external_libs/mssql-jdbc-7.2.2.jre8.jar")
1620
```
1721

18-
And you want to specify the configuration file for your database connection:
19-
20-
```
21-
// This is the configuration file for accessing your database.
22-
var jdbcConfigXml = "../../data/db_mssql.xml";
23-
```
24-
25-
Lastly, you want to point to the jdbc custom data source jar.
26-
It is distributed as binaries in the [lib](../../lib) directory:
27-
28-
```
29-
// The jar containing the jdbc custom data source
30-
IloOplImportJava("../../lib/jdbc-custom-data-source.jar");
31-
```
3222
# Running the sample
3323

3424
To run the sample, invoke the `run.bat` script:

lib/jdbc-custom-data-source.jar

-5.88 KB
Binary file not shown.

0 commit comments

Comments
 (0)