ModificationFactory m = vendor.getModificationFactory();
LiteralFactory l = vendor.getLiteralFactory();
TableReferenceFactory t = vendor.getTableReferenceFactory();
ColumnsFactory c = vendor.getColumnsFactory();
ColumnSourceByValuesBuilder columnBuilder = m.columnSourceByValues();
columnBuilder.addValues( ValueSource.Default.INSTANCE );
for( Integer x = 1; x < AMOUNT_OF_COLUMNS_IN_ENTITY_TABLE; ++x )
{
columnBuilder.addValues( l.param() );
}
return ( (PgSQLInsertStatementBuilder) m.insert() )
.setReturningClause(
vendor.getQueryFactory().columnsBuilder()
.addUnnamedColumns( c.colName( DBNames.ENTITY_TABLE_PK_COLUMN_NAME ) )
.createExpression()
)
.setTableName( t.tableName( schemaName, tableName ) )
.setColumnSource( columnBuilder.createExpression() )
.createExpression();
}