/** * PUBLIC: * Return the qualifier for the all of the tables referenced by EclipseLink. * This can be the creator of the table or database name the table exists on. * This is required by some databases such as Oracle and DB2. * This should only be used if all of the tables have the same qualifier. * It can also be set on each descriptor when the table name is specified. */ @Override public String getTableQualifier() { return getDatasourcePlatform().getTableQualifier(); }
/** * PUBLIC: * Return the qualifier for the all of the tables referenced by EclipseLink. * This can be the creator of the table or database name the table exists on. * This is required by some databases such as Oracle and DB2. * This should only be used if all of the tables have the same qualifier. * It can also be set on each descriptor when the table name is specified. */ public String getTableQualifier() { return getDatasourcePlatform().getTableQualifier(); }
/** * PUBLIC: * Return the qualifier for the all of the tables referenced by EclipseLink. * This can be the creator of the table or database name the table exists on. * This is required by some databases such as Oracle and DB2. * This should only be used if all of the tables have the same qualifier. * It can also be set on each descriptor when the table name is specified. */ public String getTableQualifier() { return getDatasourcePlatform().getTableQualifier(); }
/** * INTERNAL: * Check that the qualifier on the table names are properly set. */ protected void verifyTableQualifiers(Platform platform) { DatabaseTable table; Enumeration tableEnumeration; String tableQualifier = platform.getTableQualifier(); if (tableQualifier.length() == 0) { return; } tableEnumeration = getTables().elements(); while (tableEnumeration.hasMoreElements()) { table = (DatabaseTable)tableEnumeration.nextElement(); 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); } } }
/** * 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); } } }
/** * 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: * This method is called when Sequencing object is created. * Don't override this method. */ public void onConnect(Platform platform) { setDatasourcePlatform(platform); if(!isCustomQualifier) { qualifier = getDatasourcePlatform().getTableQualifier(); } onConnect(); depth++; }
/** * 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: * This method is called when Sequencing object is created. * Don't override this method. */ public void onConnect(Platform platform) { setDatasourcePlatform(platform); if(!isCustomQualifier) { qualifier = getDatasourcePlatform().getTableQualifier(); } onConnect(); depth++; }
/** * INTERNAL: * This method is called when Sequencing object is created. * Don't override this method. */ public void onConnect(Platform platform) { setDatasourcePlatform(platform); if(!isCustomQualifier) { qualifier = getDatasourcePlatform().getTableQualifier(); } onConnect(); depth++; }
/** * 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: * Set the table qualifier on the relation table if required */ protected void initializeRelationTable(AbstractSession session, ForeignReferenceMapping mapping) throws DescriptorException { Platform platform = session.getDatasourcePlatform(); // We need to look up the relation table name from the reference // descriptor if we are the non owning side of a bidirectional mapping // to a table per tenant descriptor. if (mapping.isReadOnly() && mapping.getReferenceDescriptor().hasTablePerMultitenantPolicy()) { setRelationTable(((TablePerMultitenantPolicy) mapping.getReferenceDescriptor().getMultitenantPolicy()).getTable(getRelationTable())); } if (!hasRelationTable()) { throw DescriptorException.noRelationTable(mapping); } if (platform.getTableQualifier().length() > 0) { if (getRelationTable().getTableQualifier().length() == 0) { getRelationTable().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(); // We need to look up the relation table name from the reference // descriptor if we are the non owning side of a bidirectional mapping // to a table per tenant descriptor. if (mapping.isReadOnly() && mapping.getReferenceDescriptor().hasTablePerMultitenantPolicy()) { setRelationTable(((TablePerMultitenantPolicy) mapping.getReferenceDescriptor().getMultitenantPolicy()).getTable(getRelationTable())); } if (!hasRelationTable()) { throw DescriptorException.noRelationTable(mapping); } if (platform.getTableQualifier().length() > 0) { if (getRelationTable().getTableQualifier().length() == 0) { getRelationTable().setTableQualifier(platform.getTableQualifier()); } } } /**
qualifier = session.getDatasourcePlatform().getTableQualifier(); if ((qualifier == null) || (qualifier.length() == 0)) { qualifier = session.getLogin().getUserName();
qualifier = session.getDatasourcePlatform().getTableQualifier(); if ((qualifier == null) || (qualifier.length() == 0)) { qualifier = session.getLogin().getUserName();
if (hasView()) { if ((session.getDatasourcePlatform().getTableQualifier().length() != 0) && (getReadAllSubclassesView().getTableQualifier().length() == 0)) { getReadAllSubclassesView().setTableQualifier(session.getDatasourcePlatform().getTableQualifier());
if (hasView()) { if ((session.getDatasourcePlatform().getTableQualifier().length() != 0) && (getReadAllSubclassesView().getTableQualifier().length() == 0)) { getReadAllSubclassesView().setTableQualifier(session.getDatasourcePlatform().getTableQualifier());
if (hasView()) { if ((session.getDatasourcePlatform().getTableQualifier().length() != 0) && (getReadAllSubclassesView().getTableQualifier().length() == 0)) { getReadAllSubclassesView().setTableQualifier(session.getDatasourcePlatform().getTableQualifier());