/** * 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); }
public String delimit(DBIdentifier name, boolean force) { String rule = name.getType().name(); // If this is a compound path, each item must be delimited // separately if (name instanceof QualifiedDBIdentifier) { QualifiedDBIdentifier path = (QualifiedDBIdentifier)name; // Make sure this is a qualified path before delimiting // separately if (!((path.getType() == DBIdentifierType.COLUMN && path.isUnqualifiedColumn()) || (path.getType() != DBIdentifierType.COLUMN && path.isUnqualifiedObject()))) { DBIdentifier[] names = QualifiedDBIdentifier.splitPath(name); for (int i = 0; i < names.length; i++) { DBIdentifier sName = names[i].getUnqualifiedName(); if (!sName.isDelimited()) { String pRule = sName.getType().name(); names[i].setName(delimit(pRule, sName.getName(), force)); } } return QualifiedDBIdentifier.newPath(names).getName(); } } return delimit(rule, name.getName(), force); }
public String delimit(DBIdentifier name, boolean force) { String rule = name.getType().name(); // If this is a compound path, each item must be delimited // separately if (name instanceof QualifiedDBIdentifier) { QualifiedDBIdentifier path = (QualifiedDBIdentifier)name; // Make sure this is a qualified path before delimiting // separately if (!((path.getType() == DBIdentifierType.COLUMN && path.isUnqualifiedColumn()) || (path.getType() != DBIdentifierType.COLUMN && path.isUnqualifiedObject()))) { DBIdentifier[] names = QualifiedDBIdentifier.splitPath(name); for (int i = 0; i < names.length; i++) { DBIdentifier sName = names[i].getUnqualifiedName(); if (!sName.isDelimited()) { String pRule = sName.getType().name(); names[i].setName(delimit(pRule, sName.getName(), force)); } } return QualifiedDBIdentifier.newPath(names).getName(); } } return delimit(rule, name.getName(), force); }
public String delimit(DBIdentifier name, boolean force) { String rule = name.getType().name(); // If this is a compound path, each item must be delimited // separately if (name instanceof QualifiedDBIdentifier) { QualifiedDBIdentifier path = (QualifiedDBIdentifier)name; // Make sure this is a qualified path before delimiting // separately if (!((path.getType() == DBIdentifierType.COLUMN && path.isUnqualifiedColumn()) || (path.getType() != DBIdentifierType.COLUMN && path.isUnqualifiedObject()))) { DBIdentifier[] names = QualifiedDBIdentifier.splitPath(name); for (int i = 0; i < names.length; i++) { DBIdentifier sName = names[i].getUnqualifiedName(); if (!sName.isDelimited()) { String pRule = sName.getType().name(); names[i].setName(delimit(pRule, sName.getName(), force)); } } return QualifiedDBIdentifier.newPath(names).getName(); } } return delimit(rule, name.getName(), force); }
public String delimit(DBIdentifier name, boolean force) { String rule = name.getType().name(); // If this is a compound path, each item must be delimited // separately if (name instanceof QualifiedDBIdentifier) { QualifiedDBIdentifier path = (QualifiedDBIdentifier)name; // Make sure this is a qualified path before delimiting // separately if (!((path.getType() == DBIdentifierType.COLUMN && path.isUnqualifiedColumn()) || (path.getType() != DBIdentifierType.COLUMN && path.isUnqualifiedObject()))) { DBIdentifier[] names = QualifiedDBIdentifier.splitPath(name); for (int i = 0; i < names.length; i++) { DBIdentifier sName = names[i].getUnqualifiedName(); if (!sName.isDelimited()) { String pRule = sName.getType().name(); names[i].setName(delimit(pRule, sName.getName(), force)); } } return QualifiedDBIdentifier.newPath(names).getName(); } } return delimit(rule, name.getName(), force); }
/** * Creates a clone of this identifier. */ public QualifiedDBIdentifier clone() { QualifiedDBIdentifier sPath = new QualifiedDBIdentifier(); sPath.setObjectTableName(getObjectTableName().clone()); sPath.setSchemaName(getSchemaName().clone()); sPath.setBaseName(super.getName()); sPath.setType(getType()); sPath.setIgnoreCase(getIgnoreCase()); return sPath; }
/** * Creates a clone of this identifier. */ public QualifiedDBIdentifier clone() { QualifiedDBIdentifier sPath = new QualifiedDBIdentifier(); sPath.setObjectTableName(getObjectTableName().clone()); sPath.setSchemaName(getSchemaName().clone()); sPath.setBaseName(super.getName()); sPath.setType(getType()); sPath.setIgnoreCase(getIgnoreCase()); return sPath; }
/** * Creates a clone of this identifier. */ public QualifiedDBIdentifier clone() { QualifiedDBIdentifier sPath = new QualifiedDBIdentifier(); sPath.setObjectTableName(getObjectTableName().clone()); sPath.setSchemaName(getSchemaName().clone()); sPath.setBaseName(super.getName()); sPath.setType(getType()); sPath.setIgnoreCase(getIgnoreCase()); return sPath; }
/** * Creates a clone of this identifier. */ public QualifiedDBIdentifier clone() { QualifiedDBIdentifier sPath = new QualifiedDBIdentifier(); sPath.setObjectTableName(getObjectTableName().clone()); sPath.setSchemaName(getSchemaName().clone()); sPath.setBaseName(super.getName()); sPath.setType(getType()); sPath.setIgnoreCase(getIgnoreCase()); return sPath; }