Skip to content

Commit

Permalink
remove deprecated parameters in main api
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolife999 committed Sep 28, 2023
1 parent 52ab333 commit bd86203
Show file tree
Hide file tree
Showing 60 changed files with 753 additions and 1,080 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import java.util.Map;

import fr.insee.arc.utils.dao.GenericPreparedStatementBuilder;
import fr.insee.arc.utils.dao.SQL;

public class ArcPreparedStatementBuilder extends GenericPreparedStatementBuilder {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ public DataObjectService(String sandboxSchema) {
*/
public String getView(ViewEnum e) {

if (e.getTableLocation().equals(SchemaEnum.TEMPORARY)) {
return e.getTableName();
}
if ((e.getTableLocation().equals(SchemaEnum.SANDBOX)
|| e.getTableLocation().equals(SchemaEnum.SANDBOX_GENERATED)) && this.sandboxSchema != null) {
return this.sandboxSchema + SQL.DOT.getSqlCode() + e.getTableName();
Expand All @@ -44,7 +41,7 @@ public String getView(ViewEnum e) {
}

public static String getFullTableNameInSchema(SchemaEnum schema, String tablename) {
return schema.getSchemaName().equals("") ? tablename : schema.getSchemaName() + SQL.DOT.getSqlCode() + tablename;
return schema.equals(SchemaEnum.TEMPORARY) ? tablename : schema.getSchemaName() + SQL.DOT.getSqlCode() + tablename;
}

public String getSandboxSchema() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ public String getFullName(String schema) {
return schema + SQL.DOT.getSqlCode() + this.tableName;
}

public static String getFullName(String schema, String providedTableName) {
return schema + SQL.DOT.getSqlCode() + providedTableName;
}

public ColumnEnum col(ColumnEnum e) {
return this.getColumns().get(e);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package fr.insee.arc.core.model;

public class XMLConstant {


// racine xml
public static final String ROOT = "root";

}
Loading

0 comments on commit bd86203

Please sign in to comment.