Skip to content

Commit 6c16db1

Browse files
author
Anderson Bestteti Santos
committed
Added call to tableWithOutVolumetry in validateTableTablespaceUsage in order to validate volumetry before tablespace validation. Adjusted START_RANGE_SMALL constants to 1.
1 parent ac991a1 commit 6c16db1

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

DesignerRulesAndTransformations/CustomLibraries/DataModelerCustomLibraries.xml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ var errType;
8686
/*============================================================================*/
8787
8888
function versaoBiblioteca() {
89-
var versao = "Versão: 1.0.05.02.2019";
89+
var versao = "Versão: 1.0.06.02.2019";
9090
var titulo = "TJRS - Biblioteca de scripts";
9191
9292
javax.swing.JOptionPane
@@ -558,7 +558,7 @@ function normalizeStorageProperties() {
558558
var LOB_TABLESPACE_LARGE = "OA_256M_32K_01L";
559559
560560
// Volumetry ranges
561-
var START_RANGE_SMALL = 0;
561+
var START_RANGE_SMALL = 1;
562562
var END_RANGE_SMALL = 100000;
563563
var START_RANGE_MEDIUM = 100001;
564564
var END_RANGE_MEDIUM = 1000000;
@@ -680,14 +680,19 @@ function validateTableTablespaceUsage(table) {
680680
var LOB_TABLESPACE_LARGE = "OA_256M_32K_01L";
681681
682682
// Volumetry ranges
683-
var START_RANGE_SMALL = 0;
683+
var START_RANGE_SMALL = 1;
684684
var END_RANGE_SMALL = 100000;
685685
var START_RANGE_MEDIUM = 100001;
686686
var END_RANGE_MEDIUM = 1000000;
687687
var START_RANGE_LARGE = 1000001;
688688
689689
var result = true;
690690
691+
// Before move on check table's volumetry property
692+
if (!tableWithOutVolumetry(table)) {
693+
return false;
694+
}
695+
691696
// Gets the reference to the model
692697
model = table.getDesignPart();
693698
@@ -721,7 +726,7 @@ function validateTableTablespaceUsage(table) {
721726
if (!tableTablespace.getName().equals(START_RANGE_LARGE)) {
722727
result = false;
723728
ruleMessage += tableTablespace;
724-
ruleMessage += " instead of " + START_RANGE_LARGE;
729+
ruleMessage += " instead of " + TABLE_TABLESPACE_LARGE;
725730
errType = "Error";
726731
}
727732
}

0 commit comments

Comments
 (0)