@Override public String valueOf(Change change) { return change.getDisplayString(); } }).makeString("\n");
@Override public String valueOf(Change change) { return change.getDisplayString(); } }).makeString("\n\t\t");
@Override public String valueOf(Change change) { return change.getDisplayString(); } }).makeString("\n");
@Override public String valueOf(Change change) { return change.getDisplayString(); } }).makeString("\n\t\t");
@Override public String valueOf(Change change1) { return change1.getDisplayString(); } }).makeString(", "));
@Override public String getCommandDescription() { return this.artifact.getDisplayString(); }
@Override public String valueOf(Change change1) { return change1.getDisplayString(); } }).makeString(", "));
@Override public String getCommandDescription() { return this.artifact.getDisplayString(); }
@Override public String getCommandDescription() { return String.format("Deployed artifact is no longer in source and has not been properly removed: %1$s", this.deployed.getDisplayString()); }
@Override public String getCommandDescription() { return String.format("Deployed artifact is no longer in source and has not been properly removed: %1$s", this.deployed.getDisplayString()); }
@Override public String getCommandDescription() { return "Change/Object should be deleted from your source code: object file " + source.getObjectKey() + " specified a DROP command at the end, but the object was already not deployed to this schema - " + source.getDisplayString(); }
@Override public String getCommandDescription() { return "Change/Object should be deleted from your source code: object file " + source.getObjectKey() + " specified a DROP command at the end, but the object was already not deployed to this schema - " + source.getDisplayString(); }
private String getDropSql(Connection conn, Change change) { String dropContent = change.getDropContent(); if (dropContent == null) { return generateDropChangeRaw(conn, change); } else { LOG.info("Dropping the object {} using the custom command from the SQL metadata: {}", change.getDisplayString(), dropContent); return dropContent; } }
private String getDropSql(Connection conn, Change change) { String dropContent = change.getDropContent(); if (dropContent == null) { return generateDropChangeRaw(conn, change); } else { LOG.info("Dropping the object {} using the custom command from the SQL metadata: {}", change.getDisplayString(), dropContent); return dropContent; } }
@Override public String getCommandDescription() { return "Artifact Hash is mismatching for : " + this.source.getDisplayString() + "; Deployed Version - " + this.deployed.getContentHash() + "; SourceVersion - " + this.source.getContentHash() + "\n\t* Please remeber not to edit already-deployed changes in place, " + "and instead add a new Change definition" + this.source.getContentHash(); }
@Override public String getCommandDescription() { return "Artifact Hash is mismatching for : " + this.source.getDisplayString() + "; Deployed Version - " + this.deployed.getContentHash() + "; SourceVersion - " + this.source.getContentHash() + "\n\t* Please remeber not to edit already-deployed changes in place, " + "and instead add a new Change definition" + this.source.getContentHash(); }
@Override public String getDisplayString() { if (this.changes.size() == 1) { return this.changes.get(0).getDisplayString(); } else { return "Group of static data changes (executing the inserts/updates [if any] in order, " + "and deletes [if any] in reverse-order):\n\t\t" + this.changes.collect(new Function<Change, String>() { @Override public String valueOf(Change change) { return change.getDisplayString(); } }).makeString("\n\t\t"); } }
@Override public String getDisplayString() { if (this.changes.size() == 1) { return this.changes.get(0).getDisplayString(); } else { return "Group of static data changes (executing the inserts/updates [if any] in order, " + "and deletes [if any] in reverse-order):\n\t\t" + this.changes.collect(new Function<Change, String>() { @Override public String valueOf(Change change) { return change.getDisplayString(); } }).makeString("\n\t\t"); } }
void deployArtifact(Connection conn, Change artifact) { MutableList<String> sqls = MultiLineStringSplitter.createSplitterOnSpaceAndLine("GO").valueOf(artifact.getConvertedContent()); int index = 0; for (String sql : sqls) { index++; if (StringUtils.isBlank(sql)) { LOG.debug("Skipping blank sql"); } else { LOG.debug("Executing change #{} in the artifact", index); try { dialect.doTryBlockForArtifact(conn, this.sqlExecutor, artifact); this.sqlExecutor.getJdbcTemplate().update(conn, sql); } catch (DataAccessException e) { throw new DeployerRuntimeException("Could not execute DDL:\nfor artifact [[[" + artifact.getDisplayString() + "]]] while executing SQL: [[[\n" + sql + "\n]]]", e); } finally { dialect.doFinallyBlockForArtifact(conn, this.sqlExecutor, artifact); } } } } }
void deployArtifact(Connection conn, Change artifact) { MutableList<String> sqls = MultiLineStringSplitter.createSplitterOnSpaceAndLine("GO").valueOf(artifact.getConvertedContent()); int index = 0; for (String sql : sqls) { index++; if (StringUtils.isBlank(sql)) { LOG.debug("Skipping blank sql"); } else { LOG.debug("Executing change #{} in the artifact", index); try { dialect.doTryBlockForArtifact(conn, this.sqlExecutor, artifact); this.sqlExecutor.getJdbcTemplate().update(conn, sql); } catch (DataAccessException e) { throw new DeployerRuntimeException("Could not execute DDL:\nfor artifact [[[" + artifact.getDisplayString() + "]]] while executing SQL: [[[\n" + sql + "\n]]]", e); } finally { dialect.doFinallyBlockForArtifact(conn, this.sqlExecutor, artifact); } } } } }