Search in sources :

Example 1 with SQLInsertBatch

use of com.querydsl.sql.dml.SQLInsertBatch in project querydsl by querydsl.

the class OracleTemplates method serializeInsert.

@Override
public void serializeInsert(QueryMetadata metadata, RelationalPath<?> entity, List<SQLInsertBatch> batches, SQLSerializer context) {
    context.append(bulkInsertTemplate);
    metadata.addFlag(new QueryFlag(Position.START_OVERRIDE, bulkInsertSeparator));
    for (SQLInsertBatch batch : batches) {
        serializeInsert(metadata, entity, batch.getColumns(), batch.getValues(), batch.getSubQuery(), context);
    }
    context.append(" select * from dual");
}
Also used : QueryFlag(com.querydsl.core.QueryFlag) SQLInsertBatch(com.querydsl.sql.dml.SQLInsertBatch)

Aggregations

QueryFlag (com.querydsl.core.QueryFlag)1 SQLInsertBatch (com.querydsl.sql.dml.SQLInsertBatch)1