/** * Sets the names of the columns on which a unique constraint is set. * @param columnsNames are passed as a single String concatenated with * a '|' character. This method parses it back to array of Strings. */ public void setUniqueColumns(String columnNames) { _uniqueColumnNames = (StringUtils.isEmpty(columnNames)) ? null : DBIdentifier.split(columnNames, DBIdentifierType.COLUMN, IdentifierUtil.BAR); }
/** * Sets the names of the columns on which a unique constraint is set. * @param columnsNames are passed as a single String concatenated with * a '|' character. This method parses it back to array of Strings. */ public void setUniqueColumns(String columnNames) { _uniqueColumnNames = (StringUtils.isEmpty(columnNames)) ? null : DBIdentifier.split(columnNames, DBIdentifierType.COLUMN, IdentifierUtil.BAR); }
/** * Sets the names of the columns on which a unique constraint is set. * @param columnsNames are passed as a single String concatenated with * a '|' character. This method parses it back to array of Strings. */ public void setUniqueColumns(String columnNames) { _uniqueColumnNames = (StringUtil.isEmpty(columnNames)) ? null : DBIdentifier.split(columnNames, DBIdentifierType.COLUMN, IdentifierUtil.BAR); }
/** * Sets the names of the columns on which a unique constraint is set. * @param columnsNames are passed as a single String concatenated with * a '|' character. This method parses it back to array of Strings. */ public void setUniqueColumns(String columnNames) { _uniqueColumnNames = (StringUtil.isEmpty(columnNames)) ? null : DBIdentifier.split(columnNames, DBIdentifierType.COLUMN, IdentifierUtil.BAR); }
/** * Set the name of this qualified identifier. Splits the string into * multiple components. This method assumes the type does not change. */ public void setName(String name) { // Split apart name into components DBIdentifier[] sNames = DBIdentifier.split(getType(), name); setPath(sNames); }
/** * Set the name of this qualified identifier. Splits the string into * multiple components. This method assumes the type does not change. */ public void setName(String name) { // Split apart name into components DBIdentifier[] sNames = DBIdentifier.split(getType(), name); setPath(sNames); }
/** * Set the name of this qualified identifier. Splits the string into * multiple components. This method assumes the type does not change. */ public void setName(String name) { // Split apart name into components DBIdentifier[] sNames = DBIdentifier.split(getType(), name); setPath(sNames); }
/** * Set the name of this qualified identifier. Splits the string into * multiple components. This method assumes the type does not change. */ public void setName(String name) { // Split apart name into components DBIdentifier[] sNames = DBIdentifier.split(getType(), name); setPath(sNames); }
/** * Constructs a new identifier (potentially a compound QualifiedDBIdentifier) with the provided * name an type. Optionally, converting the name to upper case and delimiting it. */ protected static DBIdentifier newIdentifier(String name, DBIdentifierType id, boolean toUpper, boolean delimit, boolean ignoreCase) { if (name == null) { return DBIdentifier.NULL; } DBIdentifier dbId = DBIdentifier.NULL; // Create a DBIDentifier for single component names. Otherwise, create a QualifiedDBIdentifier. if (!_compoundIdentifier[id.ordinal()] || delimit) { dbId = new DBIdentifier(name, id, delimit); dbId.setIgnoreCase(ignoreCase); if (toUpper) { return toUpper(dbId); } } else { // Name can be split. Break it up into components and return a path DBIdentifier[] sNames = DBIdentifier.split(id, name); dbId = new QualifiedDBIdentifier(sNames); dbId.setIgnoreCase(ignoreCase); } return dbId; }
/** * Constructs a new identifier (potentially a compound QualifiedDBIdentifier) with the provided * name an type. Optionally, converting the name to upper case and delimiting it. */ protected static DBIdentifier newIdentifier(String name, DBIdentifierType id, boolean toUpper, boolean delimit, boolean ignoreCase) { if (name == null) { return DBIdentifier.NULL; } DBIdentifier dbId = DBIdentifier.NULL; // Create a DBIDentifier for single component names. Otherwise, create a QualifiedDBIdentifier. if (!_compoundIdentifier[id.ordinal()] || delimit) { dbId = new DBIdentifier(name, id, delimit); dbId.setIgnoreCase(ignoreCase); if (toUpper) { return toUpper(dbId); } } else { // Name can be split. Break it up into components and return a path DBIdentifier[] sNames = DBIdentifier.split(id, name); dbId = new QualifiedDBIdentifier(sNames); dbId.setIgnoreCase(ignoreCase); } return dbId; }
/** * Constructs a new identifier (potentially a compound QualifiedDBIdentifier) with the provided * name an type. Optionally, converting the name to upper case and delimiting it. */ protected static DBIdentifier newIdentifier(String name, DBIdentifierType id, boolean toUpper, boolean delimit, boolean ignoreCase) { if (name == null) { return DBIdentifier.NULL; } DBIdentifier dbId = DBIdentifier.NULL; // Create a DBIDentifier for single component names. Otherwise, create a QualifiedDBIdentifier. if (!_compoundIdentifier[id.ordinal()] || delimit) { dbId = new DBIdentifier(name, id, delimit); dbId.setIgnoreCase(ignoreCase); if (toUpper) { return toUpper(dbId); } } else { // Name can be split. Break it up into components and return a path DBIdentifier[] sNames = DBIdentifier.split(id, name); dbId = new QualifiedDBIdentifier(sNames); dbId.setIgnoreCase(ignoreCase); } return dbId; }
/** * Constructs a new identifier (potentially a compound QualifiedDBIdentifier) with the provided * name an type. Optionally, converting the name to upper case and delimiting it. */ protected static DBIdentifier newIdentifier(String name, DBIdentifierType id, boolean toUpper, boolean delimit, boolean ignoreCase) { if (name == null) { return DBIdentifier.NULL; } DBIdentifier dbId = DBIdentifier.NULL; // Create a DBIDentifier for single component names. Otherwise, create a QualifiedDBIdentifier. if (!_compoundIdentifier[id.ordinal()] || delimit) { dbId = new DBIdentifier(name, id, delimit); dbId.setIgnoreCase(ignoreCase); if (toUpper) { return toUpper(dbId); } } else { // Name can be split. Break it up into components and return a path DBIdentifier[] sNames = DBIdentifier.split(id, name); dbId = new QualifiedDBIdentifier(sNames); dbId.setIgnoreCase(ignoreCase); } return dbId; }