String url = "jdbc:oracle:thin:@hostMachine:1529:mySID"; String userName="login"; String password="pass"; IlvSDOConnection connection = new IlvSDOConnection(url,userName,password); connection.createConnection();
// Assume we want to read from an object model Oracle database (not relational) boolean isObjectModel = true; // we want to fetch layer "MY_LAYER_GEOMETRY" IlvSDODataSource SDODataSource = new IlvSDODataSource(connection, isObjectModel , "MY_LAYER_GEOMETRY");
boolean useTiling = true; int rowCount = 5; int columnCount = 5; SDODataSource.setTilingParameters(useTiling, rowCount, columnCount);
SDODataSource.setManager(getView().getManager());
IlvMapDataSourceModel dataSourceModel = IlvMapDataSourceProperty.GetMapDataSourceModel(manager); dataSourceModel.insert(SDODataSource);
SDODataSource.start();