@Override protected void addStandardProperties(StringBuilder props) { super.addStandardProperties(props); // Quotes are conditionally added to the following because the props // are eventually passed to the Configurations.parseProperties() // method, which strips off quotes. This is a problem when these // properties are intentionally delimited with quotes. So, an extra // set preserves the intended ones. While this is an ugly solution, // it's less ugly than other ones. appendProperty(props, PROP_TABLE, addQuotes(_table.getName())); appendProperty(props, PROP_SEQUENCE_COL, addQuotes(_sequenceColumn.getName())); appendProperty(props, PROP_PK_COL, addQuotes(_primaryKeyColumn.getName())); appendProperty(props, PROP_PK_VALUE, addQuotes(_primaryKeyValue)); // Array of unique column names are passed to configuration // as a single string "x|y|z". The configurable (TableJDBCSeq) must // parse it back. if (!DBIdentifier.isNull(_uniqueConstraintName) && _uniqueConstraintName.getName().length() > 0) { appendProperty(props, PROP_UNIQUE_CONSTRAINT, addQuotes(_uniqueConstraintName.getName())); } if (_uniqueColumns != null && _uniqueColumns.length > 0) appendProperty(props, PROP_UNIQUE, StringUtils.join(_uniqueColumns,'|')); }
@Override protected void addStandardProperties(StringBuilder props) { super.addStandardProperties(props); // Quotes are conditionally added to the following because the props // are eventually passed to the Configurations.parseProperties() // method, which strips off quotes. This is a problem when these // properties are intentionally delimited with quotes. So, an extra // set preserves the intended ones. While this is an ugly solution, // it's less ugly than other ones. appendProperty(props, PROP_TABLE, addQuotes(_table.getName())); appendProperty(props, PROP_SEQUENCE_COL, addQuotes(_sequenceColumn.getName())); appendProperty(props, PROP_PK_COL, addQuotes(_primaryKeyColumn.getName())); appendProperty(props, PROP_PK_VALUE, addQuotes(_primaryKeyValue)); // Array of unique column names are passed to configuration // as a single string "x|y|z". The configurable (TableJDBCSeq) must // parse it back. if (!DBIdentifier.isNull(_uniqueConstraintName) && _uniqueConstraintName.getName().length() > 0) { appendProperty(props, PROP_UNIQUE_CONSTRAINT, addQuotes(_uniqueConstraintName.getName())); } if (_uniqueColumns != null && _uniqueColumns.length > 0) appendProperty(props, PROP_UNIQUE, StringUtils.join(_uniqueColumns,'|')); }
@Override protected void addStandardProperties(StringBuilder props) { super.addStandardProperties(props); // Quotes are conditionally added to the following because the props // are eventually passed to the Configurations.parseProperties() // method, which strips off quotes. This is a problem when these // properties are intentionally delimited with quotes. So, an extra // set preserves the intended ones. While this is an ugly solution, // it's less ugly than other ones. appendProperty(props, PROP_TABLE, addQuotes(_table.getName())); appendProperty(props, PROP_SEQUENCE_COL, addQuotes(_sequenceColumn.getName())); appendProperty(props, PROP_PK_COL, addQuotes(_primaryKeyColumn.getName())); appendProperty(props, PROP_PK_VALUE, addQuotes(_primaryKeyValue)); // Array of unique column names are passed to configuration // as a single string "x|y|z". The configurable (TableJDBCSeq) must // parse it back. if (!DBIdentifier.isNull(_uniqueConstraintName) && _uniqueConstraintName.getName().length() > 0) { appendProperty(props, PROP_UNIQUE_CONSTRAINT, addQuotes(_uniqueConstraintName.getName())); } if (_uniqueColumns != null && _uniqueColumns.length > 0) { appendProperty(props, PROP_UNIQUE, StringUtil.join(_uniqueColumns, "|")); } }
@Override protected void addStandardProperties(StringBuilder props) { super.addStandardProperties(props); // Quotes are conditionally added to the following because the props // are eventually passed to the Configurations.parseProperties() // method, which strips off quotes. This is a problem when these // properties are intentionally delimited with quotes. So, an extra // set preserves the intended ones. While this is an ugly solution, // it's less ugly than other ones. appendProperty(props, PROP_TABLE, addQuotes(_table.getName())); appendProperty(props, PROP_SEQUENCE_COL, addQuotes(_sequenceColumn.getName())); appendProperty(props, PROP_PK_COL, addQuotes(_primaryKeyColumn.getName())); appendProperty(props, PROP_PK_VALUE, addQuotes(_primaryKeyValue)); // Array of unique column names are passed to configuration // as a single string "x|y|z". The configurable (TableJDBCSeq) must // parse it back. if (!DBIdentifier.isNull(_uniqueConstraintName) && _uniqueConstraintName.getName().length() > 0) { appendProperty(props, PROP_UNIQUE_CONSTRAINT, addQuotes(_uniqueConstraintName.getName())); } if (_uniqueColumns != null && _uniqueColumns.length > 0) { appendProperty(props, PROP_UNIQUE, StringUtil.join(_uniqueColumns, "|")); } }