/** * 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; }