public void setTableQualifier(String qualifier) { setTableQualifier(qualifier, null, null); }
public void setTableQualifier(String qualifier) { setTableQualifier(qualifier, null, null); }
public void setTableQualifier(String qualifier) { setTableQualifier(qualifier, null, null); }
/** * INTERNAL: DB2 temp table syntax. * This is used by UpdateAllQuerys. */ @Override public DatabaseTable getTempTableForTable(DatabaseTable table) { DatabaseTable tempTable = super.getTempTableForTable(table); tempTable.setTableQualifier("session"); return tempTable; }
/** * INTERNAL: DB2 temp table syntax. * This is used by UpdateAllQuerys. */ @Override public DatabaseTable getTempTableForTable(DatabaseTable table) { DatabaseTable tempTable = super.getTempTableForTable(table); tempTable.setTableQualifier("session"); return tempTable; }
/** * INTERNAL: DB2 temp table syntax. * This is used by UpdateAllQuerys. */ @Override public DatabaseTable getTempTableForTable(DatabaseTable table) { DatabaseTable tempTable = super.getTempTableForTable(table); tempTable.setTableQualifier("session"); return tempTable; }
/** * PUBLIC: Set the table Qualifier for this descriptor. This table creator will be used for * all tables in this descriptor */ public void setTableQualifier(String tableQualifier) { for (Enumeration enumtr = getTables().elements(); enumtr.hasMoreElements();) { DatabaseTable table = (DatabaseTable)enumtr.nextElement(); table.setTableQualifier(tableQualifier); } }
/** * PUBLIC: Set the table Qualifier for this descriptor. This table creator will be used for * all tables in this descriptor */ public void setTableQualifier(String tableQualifier) { for (Enumeration enumtr = getTables().elements(); enumtr.hasMoreElements();) { DatabaseTable table = (DatabaseTable)enumtr.nextElement(); table.setTableQualifier(tableQualifier); } }
/** * PUBLIC: Set the table Qualifier for this descriptor. This table creator will be used for * all tables in this descriptor */ public void setTableQualifier(String tableQualifier) { for (Enumeration enumtr = getTables().elements(); enumtr.hasMoreElements();) { DatabaseTable table = (DatabaseTable)enumtr.nextElement(); table.setTableQualifier(tableQualifier); } }
public void setPossiblyQualifiedName(String possiblyQualifiedName, String startDelimiter, String endDelimiter) { resetQualifiedName(); int index = possiblyQualifiedName.lastIndexOf('.'); if (index == -1) { setName(possiblyQualifiedName, startDelimiter, endDelimiter); this.tableQualifier = ""; } else { setName(possiblyQualifiedName.substring(index + 1, possiblyQualifiedName.length()), startDelimiter, endDelimiter); setTableQualifier(possiblyQualifiedName.substring(0, index), startDelimiter, endDelimiter); if((startDelimiter != null) && possiblyQualifiedName.startsWith(startDelimiter) && (endDelimiter != null) && possiblyQualifiedName.endsWith(endDelimiter)) { // It's 'Qualifier.Name' - it should be treated as a single string. // Would that be 'Qualifier'.'Name' both setName and setTableQualifier methods would have set useDelimeters to true. if(!this.useDelimiters) { setName(possiblyQualifiedName); this.tableQualifier = ""; } } } }
/** * INTERNAL: * Check that the qualifier on the table names are properly set. */ protected void verifyTableQualifiers(Platform platform) { String tableQualifier = platform.getTableQualifier(); if (tableQualifier.length() == 0) { return; } for (DatabaseTable table : getTables()) { if (table.getTableQualifier().length() == 0) { table.setTableQualifier(tableQualifier); } } }
/** * INTERNAL: * Check that the qualifier on the table names are properly set. */ protected void verifyTableQualifiers(Platform platform) { String tableQualifier = platform.getTableQualifier(); if (tableQualifier.length() == 0) { return; } for (DatabaseTable table : getTables()) { if (table.getTableQualifier().length() == 0) { table.setTableQualifier(tableQualifier); } } }
/** * Reset the field's name and table from the qualified name. */ public void resetQualifiedName(String qualifiedName) { setIndex(-1); int index = qualifiedName.lastIndexOf('.'); if (index == -1) { setName(qualifiedName); getTable().setName(""); getTable().setTableQualifier(""); } else { setName(qualifiedName.substring(index + 1, qualifiedName.length())); getTable().setPossiblyQualifiedName(qualifiedName.substring(0, index)); } }
/** * Reset the field's name and table from the qualified name. */ public void resetQualifiedName(String qualifiedName) { setIndex(-1); int index = qualifiedName.lastIndexOf('.'); if (index == -1) { setName(qualifiedName); getTable().setName(""); getTable().setTableQualifier(""); } else { setName(qualifiedName.substring(index + 1, qualifiedName.length())); getTable().setPossiblyQualifiedName(qualifiedName.substring(0, index)); } }
/** * Reset the field's name and table from the qualified name. */ public void resetQualifiedName(String qualifiedName) { setIndex(-1); int index = qualifiedName.lastIndexOf('.'); if (index == -1) { setName(qualifiedName); getTable().setName(""); getTable().setTableQualifier(""); } else { setName(qualifiedName.substring(index + 1, qualifiedName.length())); getTable().setPossiblyQualifiedName(qualifiedName.substring(0, index)); } }
/** * Set the table qualifier on the reference table if required */ protected void initializeReferenceTable(AbstractSession session) throws DescriptorException { Platform platform = session.getDatasourcePlatform(); if (getReferenceTable() == null) { throw DescriptorException.referenceTableNotSpecified(this); } if (platform.getTableQualifier().length() > 0) { if (getReferenceTable().getTableQualifier().length() == 0) { getReferenceTable().setTableQualifier(platform.getTableQualifier()); } } }
/** * Set the table qualifier on the reference table if required */ protected void initializeReferenceTable(AbstractSession session) throws DescriptorException { Platform platform = session.getDatasourcePlatform(); if (getReferenceTable() == null) { throw DescriptorException.referenceTableNotSpecified(this); } if (platform.getTableQualifier().length() > 0) { if (getReferenceTable().getTableQualifier().length() == 0) { getReferenceTable().setTableQualifier(platform.getTableQualifier()); } } }
/** * Set the table qualifier on the reference table if required */ protected void initializeReferenceTable(AbstractSession session) throws DescriptorException { Platform platform = session.getDatasourcePlatform(); if (getReferenceTable() == null) { throw DescriptorException.referenceTableNotSpecified(this); } if (platform.getTableQualifier().length() > 0) { if (getReferenceTable().getTableQualifier().length() == 0) { getReferenceTable().setTableQualifier(platform.getTableQualifier()); } } }
/** * INTERNAL: * Set the table qualifier on the relation table if required */ protected void initializeRelationTable(AbstractSession session, ForeignReferenceMapping mapping) throws DescriptorException { Platform platform = session.getDatasourcePlatform(); if (!hasRelationTable()) { throw DescriptorException.noRelationTable(mapping); } if (platform.getTableQualifier().length() > 0) { if (getRelationTable().getTableQualifier().length() == 0) { getRelationTable().setTableQualifier(platform.getTableQualifier()); } } } /**
/** * INTERNAL: * Normalize the expression into a printable structure. * Any joins must be added to form a new root. */ public Expression normalize(ExpressionNormalizer normalizer) { //Bug4736461 Only setTableQualifier if getDatasourceLogin().getTableQualifier() is an empty string to make the window much smaller when //DatabaseTable.qualifiedName is reset if (getTable().getTableQualifier().length() == 0 && (normalizer.getSession().getDatasourceLogin().getTableQualifier().length() != 0)) { getTable().setTableQualifier(normalizer.getSession().getDatasourceLogin().getTableQualifier()); } return super.normalize(normalizer); }