Skip to content

Commit 5c40a3c

Browse files
committed
Updated doc and build properties
1 parent 7b0f053 commit 5c40a3c

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This sample demonstrates how to use the IBM Decision Optimization Modeling with
44
OPL custom data source API to import data from a JDBC data source into an OPL model.
55

66
This sample illustrates the [Subclassing IloCustomOplDataSoource](https://www.ibm.com/support/knowledgecenter/en/SSSA5P_12.7.0/ilog.odms.ide.help/OPL_Studio/opllanguser/topics/opl_languser_extfunc_datasubcl.html) section from the OPL User's manual.
7-
This sample shows how to read and write tuplesets to/from a database with Java. It also enables you to read a database and generate .dat files to be used in the IDE to prototype your optimization model.
7+
This sample shows how to read and write tuplesets to/from a database with Java. It also enables you to read a database and [generate .dat files](#export_dat_files) to be used in the IDE to prototype your optimization model.
88

99
While this sample uses MySQL as data storage, it can be easily adapted to
1010
any database that has JDBC drivers.
@@ -200,8 +200,11 @@ As the sample is build on JDBC, it's possible to reuse <code>JdbcCustomDataSourc
200200
}
201201
```
202202

203-
## Export .dat files
204-
* When running the `ant` command with the DB2/mysql target, simply add `-Dexport=result.dat` on the command line, and it will export all the tuplesets that have been extracted from the database to `result.dat` file.
203+
## Export .dat files for use in OPL IDE
204+
<a name="export_dat_files"></a>
205+
206+
* When running the `ant` command with the DB2/mysql target, simply add `-Dexport=model.dat` on the command line, and it will export all the tuplesets that have been extracted from the database to `model.dat` file.
207+
* This allow you to import your data into the OPL IDE.
205208

206209
## Run with an OPL version <= 12.6.x
207210
* Edit the build.xml at the root of the directory, and adapt the `example.home` variable to point to your 12.x version.

build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Example for MySQL:
44
mysql.jdbc.connector.path=external_libs/mysql-connector-java-5.1.40-bin.jar
55
# Example for DB2:
6-
db2.jdbc.connector.path=C:/Program Files/IBM/SQLLIB/java/db2jcc4.jar
6+
db2.jdbc.connector.path=D:/work/gits/OPL-jdbc-custom-data-source/external_libs/db2jcc4.jar
77

88
# Edit this property with your OPL home if you don't have a CPLEX_STUDIO_DIR127
99
# environment variable

0 commit comments

Comments
 (0)