示例#1
0
 private boolean checkDatabaseForTable(String templateName, String tableName) {
   TemplateDatabaseDescription templateDatabaseDescription =
       templateNameToDatabaseDescriptionMap.get(templateName);
   MyUtils.checkStatusProgram(templateDatabaseDescription != null);
   List<String> tableList = templateDatabaseDescription.getTableList();
   return MartConfiguratorUtils.containsIgnoreCase(tableList, tableName);
 }
示例#2
0
 private boolean checkDatabaseForField(String templateName, String tableName, String columnName)
     throws FunctionalException {
   TemplateDatabaseDescription templateDatabaseDescription =
       templateNameToDatabaseDescriptionMap.get(templateName);
   MyUtils.checkStatusProgram(templateDatabaseDescription != null);
   Map<String, List<String>> tableColumnMap = templateDatabaseDescription.getTableColumnMap();
   List<String> columnList = tableColumnMap.get(tableName);
   if (null == columnList) {
     throw new FunctionalException("No table called " + tableName + " found in map");
   }
   return MartConfiguratorUtils.containsIgnoreCase(columnList, columnName);
 }
示例#3
0
 public DatasetInMart(
     MartInVirtualSchema mart,
     String datasetName,
     String timeStampLastUpdate,
     String visibility,
     String datasetType,
     String martServiceLine) {
   super();
   this.martInVirtualSchema = mart;
   this.virtualSchema = mart.getVirtualSchema();
   this.datasetName = datasetName;
   this.timeStampLastUpdate =
       timeStampLastUpdate != null ? timeStampLastUpdate : MyConstants.NOT_APPLICABLE;
   this.visible = MartConfiguratorUtils.binaryDigitToBoolean(visibility);
   this.datasetType = datasetType;
   this.martServiceLine = martServiceLine;
 }
示例#4
0
 private boolean finalChecks() {
   if (!(this.filterGroup
       || this.pointer
       || (MartConfiguratorUtils.hasValue(this.tableConstraint)
           && MartConfiguratorUtils.hasValue(this.key)
           && MartConfiguratorUtils.hasValue(this.field)))) {
     return false;
   }
   if (!(!this.pointer
       || (MartConfiguratorUtils.hasValue(this.pointerElement)
           && MartConfiguratorUtils.hasValue(this.pointerDataset)
           && MartConfiguratorUtils.hasValue(this.pointerInterface)))) {
     return false;
   }
   return true;
 }