/** * Returns a {@link SchemaIdentifier} that represents the schema that this * table resides in. * * @return the schema identifier */ default SchemaIdentifier<ENTITY> asSchemaIdentifier() { return SchemaIdentifier.of(getDbmsId(), getSchemaId()); }
/** * Returns a {@link TableIdentifier} that has the same {@code dbmsId}, * {@code schemaId} and {@code tableId} as this * {@link ColumnIdentifier}. * * @return the table identifier */ default TableIdentifier<ENTITY> asTableIdentifier() { return TableIdentifier.of(getDbmsId(), getSchemaId(), getTableId()); }
private static <T> String tableTdentifierString(TableIdentifier<T> tableIdentifier) { return tableIdentifier.getDbmsId() + "." + tableIdentifier.getSchemaId() + "." + tableIdentifier.getTableId(); // Take tableAlias into account }
public ColumnLabelImpl(ColumnIdentifier<?> identifier) { label = identifier.getDbmsId() + "." + identifier.getSchemaId() + "." + identifier.getTableId() + "." + identifier.getColumnId(); }
protected GeneratedFilmTextSqlAdapter() { this.tableIdentifier = TableIdentifier.of("db0", "sakila", "film_text"); }
/** * Returns a {@link ColumnIdentifier} that represents a particular column in * this table. * * @param columnId the database id of the column * @return the column identifier */ default ColumnIdentifier<ENTITY> asColumnIdentifier(String columnId) { return ColumnIdentifier.of( getDbmsId(), getSchemaId(), getTableId(), columnId ); }
/** * Returns a label that can be used as key in a map. Using the ColumnIdentifier itself * does not work since there are generated enums as well as runtime created ColumnIdentifierImpls * that are considered to be equal but have different hashCode. * * All implementations of this interface will, however, have equal * {@code label()} iff they refer to the same column. * * @return a ColumnLabel that is unique for this particular ColumnIdentifier */ default ColumnLabel label() { return ColumnLabel.of(this); } }
protected GeneratedStaffSqlAdapter() { this.tableIdentifier = TableIdentifier.of("db0", "sakila", "staff"); }
protected GeneratedFilmManagerImpl() { this.tableIdentifier = TableIdentifier.of("db0", "sakila", "film"); }
protected GeneratedRentalManagerImpl() { this.tableIdentifier = TableIdentifier.of("db0", "sakila", "rental"); }
protected GeneratedFilmSqlAdapter() { this.tableIdentifier = TableIdentifier.of("db0", "sakila", "film"); }
protected GeneratedCustomerManagerImpl() { this.tableIdentifier = TableIdentifier.of("db0", "sakila", "customer"); }
protected GeneratedFilmActorManagerImpl() { this.tableIdentifier = TableIdentifier.of("db0", "sakila", "film_actor"); }
protected GeneratedStoreManagerImpl() { this.tableIdentifier = TableIdentifier.of("db0", "sakila", "store"); }
protected GeneratedCitySqlAdapter() { this.tableIdentifier = TableIdentifier.of("db0", "sakila", "city"); }
protected GeneratedFilmTextManagerImpl() { this.tableIdentifier = TableIdentifier.of("db0", "sakila", "film_text"); }
protected GeneratedRentalSqlAdapter() { this.tableIdentifier = TableIdentifier.of("db0", "sakila", "rental"); }
protected GeneratedStaffManagerImpl() { this.tableIdentifier = TableIdentifier.of("db0", "sakila", "staff"); }
protected GeneratedFilmCategoryManagerImpl() { this.tableIdentifier = TableIdentifier.of("db0", "sakila", "film_category"); }