/** * Return the hashcode of the name, because it is fairly unique. */ public int hashCode() { return getName().hashCode(); }
/** * INTERNAL: * Indicates whether the mechanism has relation table. */ public boolean hasRelationTable() { return relationTable != null && relationTable.getName().length() > 0; }
/** * INTERNAL: * Indicates whether the mechanism has relation table. */ public boolean hasRelationTable() { return relationTable != null && relationTable.getName().length() > 0; }
/** * Determine whether the receiver has any identification information. * Return true if the name or qualifier of the receiver are nonempty. */ public boolean hasName() { if ((getName().length() == 0) && (getTableQualifier().length() == 0)) { return false; } return true; }
/** * PUBLIC: */ public String getSequenceTableName() { return getSequenceTable().getName(); }
/** * Determine whether the receiver has any identification information. * Return true if the name or qualifier of the receiver are nonempty. */ public boolean hasName() { if ((getName().length() == 0) && (getTableQualifier().length() == 0)) { return false; } return true; }
/** * PUBLIC: * Return the name of the descriptor's first table. * This method must only be called on single table descriptors. */ public String getTableName() { if (getTables().isEmpty()) { return null; } else { return getTables().get(0).getName(); } }
/** * ADVANCED: * The view can be used to optimize/customize the query for all subclasses where they have multiple tables. * This view can use outer joins or unions to combine the results of selecting from all of the subclass tables. * If a view is not given then TopLink must make an individual call for each subclass. */ public String getReadAllSubclassesViewName() { if (getReadAllSubclassesView() == null) { return null; } return getReadAllSubclassesView().getName(); }
/** * ADVANCED: * The view can be used to optimize/customize the query for all subclasses where they have multiple tables. * This view can use outer joins or unions to combine the results of selecting from all of the subclass tables. * If a view is not given then TopLink must make an individual call for each subclass. */ public String getReadAllSubclassesViewName() { if (getReadAllSubclassesView() == null) { return null; } return getReadAllSubclassesView().getName(); }
public void onConnect() { if(this.table.getName().length() == 0) { this.table.setName(((DatabasePlatform)getDatasourcePlatform()).getDefaultSequenceTableName()); } if ((this.qualifier == null || this.qualifier.length() == 0) && (this.table.getTableQualifier() != null && this.table.getTableQualifier().length() != 0)) { this.qualifier = this.table.getTableQualifier(); } super.onConnect(); }
/** * Constructs a new database table which appears as <code>guise</code> but * in fact really is <code>identity</code>. */ public HistoricalDatabaseTable(DatabaseTable source, DatabaseTable mirroring, DatasourcePlatform platform) { super(source.getName(), source.getTableQualifier()); this.historicalName = mirroring.getQualifiedName(); if(mirroring.shouldUseDelimiters()) { this.historicalNameDelimited = mirroring.getQualifiedNameDelimited(platform); } }
public NestedTable(QueryKeyExpression queryKeyExpression) { super(); this.queryKeyExpression = queryKeyExpression; setName((queryKeyExpression.getMapping().getDescriptor().getTables().firstElement()).getName()); tableQualifier = (queryKeyExpression.getMapping().getDescriptor().getTables().firstElement()).getQualifiedName(); }
/** * INTERNAL: * May override this method if the platform support temporary tables. * @parameter DatabaseTable table is original table for which temp table is created. * @return DatabaseTable temorary table */ public DatabaseTable getTempTableForTable(DatabaseTable table) { return new DatabaseTable("TL_" + table.getName(), table.getTableQualifier(), table.shouldUseDelimiters(), getStartDelimiter(), getEndDelimiter()); }
/** * INTERNAL: */ @Override public DatabaseTable getTempTableForTable(DatabaseTable table) { return new DatabaseTable("#" + table.getName(), table.getTableQualifier(), table.shouldUseDelimiters(), getStartDelimiter(), getEndDelimiter()); }
/** * INTERNAL: * May override this method if the platform support temporary tables. * @parameter DatabaseTable table is original table for which temp table is created. * @return DatabaseTable temorary table */ public DatabaseTable getTempTableForTable(DatabaseTable table) { return new DatabaseTable("TL_" + table.getName(), table.getTableQualifier(), table.shouldUseDelimiters(), getStartDelimiter(), getEndDelimiter()); }
/** * INTERNAL: */ public DatabaseTable getTempTableForTable(DatabaseTable table) { return new DatabaseTable("#" + table.getName(), table.getTableQualifier(), table.shouldUseDelimiters(), getStartDelimiter(), getEndDelimiter()); }
/** * Used for sp calls. */ @Override public DatabaseTable getTempTableForTable(DatabaseTable table) { return new DatabaseTable("$" + table.getName(), table.getTableQualifier(), table.shouldUseDelimiters(), getStartDelimiter(), getEndDelimiter()); }