Skip to content

Commit

Permalink
Renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
javiertuya committed Jun 23, 2024
1 parent f3524f9 commit d3ae93b
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 25 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ to enable generation of rules for data stores other than relational databases.

- On Java, include the client api dependencies
[tdrules-client](https://central.sonatype.com/artifact/io.github.giis-uniovi/tdrules-client)
and
and either
[tdrules-client-oa](https://central.sonatype.com/artifact/io.github.giis-uniovi/tdrules-client-oa)
or
[tdrules-client-rdb](https://central.sonatype.com/artifact/io.github.giis-uniovi/tdrules-client-rdb)
available in Maven Central.
that are available in Maven Central.
A bom is also available:
[tdrules-bom](https://central.sonatype.com/artifact/io.github.giis-uniovi/tdrules-bom).

Expand All @@ -37,7 +37,7 @@ available in NuGet.

**Example:** To generate the FPC Rules for a query (`query`)
that executes against
an OpenApi schema specification in a file or url (`spec`)
an OpenApi schema specification inindicated by file or url (`spec`)
or a relational database that can be reached by an open JDBC Connection (`conn`),
you first get the data store schema model and then the rules model as follows:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ private void setSpecifiedValues(List<GeneratedAttribute> gattrs, String[] attrNa
log.trace("setSpecifiedValues: attrName={} attrValue={}", attrNames[i], attrValues[i]);
GeneratedAttribute gattr = findGeneratedAttribute(gattrs, attrNames[i]);
log.trace("setSpecifiedValues: before: {}", gattr);
setSpecifiedValuesForAttribute(gattr, attrNames[i], attrValues[i]);
setSpecifiedValuesForAttribute(gattr, attrValues[i]);
log.trace("setSpecifiedValues: after: {}", gattr);
}
}
}
private void setSpecifiedValuesForAttribute(GeneratedAttribute gattr, String attrName, String attrValue) {
private void setSpecifiedValuesForAttribute(GeneratedAttribute gattr, String attrValue) {
gattr.specValue = attrValue;
if (symbols.isSymbol(attrValue)) {
// The specified value is symbolic, it is a uid that will store its value in a symbol
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package test4giis.tdrules.store.loader.sql;
package test4giis.tdrules.store.loader.rdb;

import static org.junit.Assert.assertEquals;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package test4giis.tdrules.store.loader.sql;
package test4giis.tdrules.store.loader.rdb;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
Expand All @@ -12,11 +12,10 @@

import giis.tdrules.store.loader.DataLoader;

public class TestOracleGeneration extends TestSqlserverGeneration {
public class TestOracleSqlLoader extends TestSqlserverSqlLoader {

public TestOracleGeneration() {
public TestOracleSqlLoader() {
this.dbmsname = "oracle";
this.catalogSchema = "TEST4IN2TESTDB2";
}

protected String getDateTimeForSql() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package test4giis.tdrules.store.loader.rdb;

public class TestPostgresSqlLoader extends TestSqlserverSqlLoader {

public TestPostgresSqlLoader() {
this.dbmsname = "postgres";
}

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package test4giis.tdrules.store.loader.sql;
package test4giis.tdrules.store.loader.rdb;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
Expand Down Expand Up @@ -31,15 +31,13 @@
import giis.tdrules.store.stypes.StoreType;

/**
* Generacion de datos para una BD relacional
* Data load to a Relational Database through sql
*/
public class TestSqlserverGeneration extends Base {
public class TestSqlserverSqlLoader extends Base {
protected static String TEST_PATH_OUTPUT = "target";
protected static String TEST_PATH_BENCHMARK = "src/test/resources";
protected Connection db;
protected StoreType dbms;
// nombre de catalogo.esquema tal como se precisan ver por los metadatos
protected String catalogSchema = "test4in2testDB2.dbo";

@Before
public void setUp() throws SQLException {
Expand Down

This file was deleted.

0 comments on commit d3ae93b

Please sign in to comment.