From b21fd8e3d4612aa091831dd0da5ebecb7fc20eb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Lindo?= Date: Thu, 14 Nov 2024 11:46:48 +0000 Subject: [PATCH] Updated virtual tables lob columns name to Document --- .../src/main/java/com/databasepreservation/Constants.java | 2 ++ .../siard/in/metadata/SIARDDK1007MetadataImportStrategy.java | 4 ++-- .../siard/in/metadata/SIARDDK128MetadataImportStrategy.java | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dbptk-model/src/main/java/com/databasepreservation/Constants.java b/dbptk-model/src/main/java/com/databasepreservation/Constants.java index 13a4c793f..50e882036 100644 --- a/dbptk-model/src/main/java/com/databasepreservation/Constants.java +++ b/dbptk-model/src/main/java/com/databasepreservation/Constants.java @@ -162,4 +162,6 @@ private Constants() { public static final String DB_SSH_USER = "ssh-user"; public static final String DB_SSH_PASSWORD = "ssh-password"; + /* Virtual Table */ + public static final String BLOB_COLUMN_NAME = "Document"; } \ No newline at end of file diff --git a/dbptk-modules/dbptk-module-siard/src/main/java/com/databasepreservation/modules/siard/in/metadata/SIARDDK1007MetadataImportStrategy.java b/dbptk-modules/dbptk-module-siard/src/main/java/com/databasepreservation/modules/siard/in/metadata/SIARDDK1007MetadataImportStrategy.java index 675cd6d00..9af4b95d5 100644 --- a/dbptk-modules/dbptk-module-siard/src/main/java/com/databasepreservation/modules/siard/in/metadata/SIARDDK1007MetadataImportStrategy.java +++ b/dbptk-modules/dbptk-module-siard/src/main/java/com/databasepreservation/modules/siard/in/metadata/SIARDDK1007MetadataImportStrategy.java @@ -485,7 +485,7 @@ private List createContextDocumentsTableColumns() { true, SIARDDKConstants.DOCUMENT_TITLE_DESCRIPTION, "", true); VirtualColumnStructure columnDate = new VirtualColumnStructure(SIARDDKConstants.DOCUMENT_DATE, SIARDDKConstants.DOCUMENT_DATE, typeChar, true, SIARDDKConstants.DOCUMENT_DATE_DESCRIPTION, "", true); - VirtualColumnStructure columnLOB = new VirtualColumnStructure(Constants.BLOB, Constants.BLOB, typeBlob, true, + VirtualColumnStructure columnLOB = new VirtualColumnStructure(Constants.BLOB, Constants.BLOB_COLUMN_NAME, typeBlob, true, "", "1", true); columnStructureList.add(columnID); columnStructureList.add(columnTitle); @@ -503,7 +503,7 @@ private List createVirtualTableColumns() { Type type = sqlStandardDatatypeImporter.getCheckedType("", "", "", "", Constants.BINARY_LARGE_OBJECT, Constants.BINARY_LARGE_OBJECT); - VirtualColumnStructure columnLOB = new VirtualColumnStructure(Constants.BLOB, Constants.BLOB, type, true, + VirtualColumnStructure columnLOB = new VirtualColumnStructure(Constants.BLOB, Constants.BLOB_COLUMN_NAME, type, true, "", "1", true); columnStructureList.add(columnID); columnStructureList.add(columnLOB); diff --git a/dbptk-modules/dbptk-module-siard/src/main/java/com/databasepreservation/modules/siard/in/metadata/SIARDDK128MetadataImportStrategy.java b/dbptk-modules/dbptk-module-siard/src/main/java/com/databasepreservation/modules/siard/in/metadata/SIARDDK128MetadataImportStrategy.java index 7e596ab00..c63daaa8e 100644 --- a/dbptk-modules/dbptk-module-siard/src/main/java/com/databasepreservation/modules/siard/in/metadata/SIARDDK128MetadataImportStrategy.java +++ b/dbptk-modules/dbptk-module-siard/src/main/java/com/databasepreservation/modules/siard/in/metadata/SIARDDK128MetadataImportStrategy.java @@ -484,7 +484,7 @@ private List createContextDocumentsTableColumns() { SIARDDKConstants.DOCUMENT_TITLE, typeChar, true, SIARDDKConstants.DOCUMENT_TITLE_DESCRIPTION, "", true); VirtualColumnStructure columnDate = new VirtualColumnStructure(SIARDDKConstants.DOCUMENT_DATE, SIARDDKConstants.DOCUMENT_DATE, typeChar, true, SIARDDKConstants.DOCUMENT_DATE_DESCRIPTION, "", true); - VirtualColumnStructure columnLOB = new VirtualColumnStructure(Constants.BLOB, Constants.BLOB, typeBlob, true, + VirtualColumnStructure columnLOB = new VirtualColumnStructure(Constants.BLOB, Constants.BLOB_COLUMN_NAME, typeBlob, true, "", "1", true); columnStructureList.add(columnID); columnStructureList.add(columnTitle); @@ -502,7 +502,7 @@ private List createVirtualTableColumns() { Type type = sqlStandardDatatypeImporter.getCheckedType("", "", "", "", Constants.BINARY_LARGE_OBJECT, Constants.BINARY_LARGE_OBJECT); - VirtualColumnStructure columnLOB = new VirtualColumnStructure(Constants.BLOB, Constants.BLOB, type, true, + VirtualColumnStructure columnLOB = new VirtualColumnStructure(Constants.BLOB, Constants.BLOB_COLUMN_NAME, type, true, "", "1", true); columnStructureList.add(columnID); columnStructureList.add(columnLOB);