SchemaOperationType operationType = SchemaOperationType.getInstance(operation); switch (operationType)
&& operation.equalsIgnoreCase(SchemaOperationType.update.name()))
/** * Gets the single instance of ScheamOperationType. * * @param operation * the operation * @return single instance of ScheamOperationType */ public static SchemaOperationType getInstance(String operation) { if (operation.equalsIgnoreCase("create-drop")) { return SchemaOperationType.createdrop; } return SchemaOperationType.valueOf(SchemaOperationType.class, operation); } }
&& operation.equalsIgnoreCase(SchemaOperationType.update.name()))
SchemaOperationType operationType = SchemaOperationType.getInstance(operation); switch (operationType)
/** * Handle operations. * * @param tableInfos * the table infos */ private void handleOperations(List<TableInfo> tableInfos) { SchemaOperationType operationType = SchemaOperationType.getInstance(operation); switch (operationType) { case createdrop: create_drop(tableInfos); break; case create: create(tableInfos); break; case update: update(tableInfos); break; case validate: validate(tableInfos); break; } } }