private SqlPersistenceImpl(SqlPersistenceImpl<ENTITY> template, HasLabelSet<ENTITY> includedFields) { primaryKeyFields = template.primaryKeyFields; fields = template.fields; dbms = template.dbms; table = template.table; dbmsType = template.dbmsType; sqlTableReference = template.sqlTableReference; hasPrimaryKeyColumns = template.hasPrimaryKeyColumns; naming = template.naming; operationHandler = template.operationHandler; columnHandler = template.columnHandler; entityClass = template.entityClass; this.insertColumnFilter = columnHandler.excludedInInsertStatement().negate().and(c -> includedFields.test(c.getId())); this.insertStatement = getInsertStatement(insertColumnFilter); this.updateColumnFilter = columnHandler.excludedInUpdateStatement().negate().and(c -> includedFields.test(c.getId())); this.updateStatement = getUpdateStatement(updateColumnFilter); deleteStatement = template.deleteStatement; generatedFieldSupports = template.generatedFieldSupports; generatedFields = template.generatedFields; columnsByFields = template.columnsByFields; }
this.hasPrimaryKeyColumns = tableInfo.primaryKeyFields().anyMatch(m -> true); this.insertColumnFilter = columnHandler.excludedInInsertStatement().negate(); this.insertStatement = getInsertStatement(insertColumnFilter); this.updateColumnFilter = columnHandler.excludedInUpdateStatement().negate(); this.updateStatement = getUpdateStatement(updateColumnFilter); this.deleteStatement = "DELETE FROM " + sqlTableReference + " WHERE " +
this.hasPrimaryKeyColumns = manager.primaryKeyFields().anyMatch(m -> true); this.insertColumnFilter = columnHandler.excludedInInsertStatement().negate(); this.insertStatement = getInsertStatement(insertColumnFilter); this.updateColumnFilter = columnHandler.excludedInUpdateStatement().negate(); this.updateStatement = getUpdateStatement(updateColumnFilter); this.deleteStatement = "DELETE FROM " + sqlTableReference + " WHERE " +
private SqlPersistenceImpl(SqlPersistenceImpl<ENTITY> template, HasLabelSet<ENTITY> includedFields) { primaryKeyFields = template.primaryKeyFields; fields = template.fields; dbms = template.dbms; table = template.table; dbmsType = template.dbmsType; sqlTableReference = template.sqlTableReference; hasPrimaryKeyColumns = template.hasPrimaryKeyColumns; naming = template.naming; operationHandler = template.operationHandler; columnHandler = template.columnHandler; entityClass = template.entityClass; this.insertColumnFilter = columnHandler.excludedInInsertStatement().negate().and(c -> includedFields.test(c.getId())); this.insertStatement = getInsertStatement(insertColumnFilter); this.updateColumnFilter = columnHandler.excludedInUpdateStatement().negate().and(c -> includedFields.test(c.getId())); this.updateStatement = getUpdateStatement(updateColumnFilter); deleteStatement = template.deleteStatement; generatedFieldSupports = template.generatedFieldSupports; generatedFields = template.generatedFields; columnsByFields = template.columnsByFields; }
this.hasPrimaryKeyColumns = manager.primaryKeyFields().anyMatch(m -> true); this.insertColumnFilter = columnHandler.excludedInInsertStatement().negate(); this.insertStatement = getInsertStatement(insertColumnFilter); this.updateColumnFilter = columnHandler.excludedInUpdateStatement().negate(); this.updateStatement = getUpdateStatement(updateColumnFilter); this.deleteStatement = "DELETE FROM " + sqlTableReference + " WHERE " +
this.hasPrimaryKeyColumns = tableInfo.primaryKeyFields().anyMatch(m -> true); this.insertColumnFilter = columnHandler.excludedInInsertStatement().negate(); this.insertStatement = getInsertStatement(insertColumnFilter); this.updateColumnFilter = columnHandler.excludedInUpdateStatement().negate(); this.updateStatement = getUpdateStatement(updateColumnFilter); this.deleteStatement = "DELETE FROM " + sqlTableReference + " WHERE " +