All Downloads are FREE. Search and download functionalities are using the official Maven repository.

shz.orm.service.OrmInsertService Maven / Gradle / Ivy

The newest version!
package shz.orm.service;

import shz.orm.Tnp;

import java.util.List;

public interface OrmInsertService {
    int insert(Tnp tnp, Object entity, List fieldNames);

    default int insert(Object entity, List fieldNames) {
        return insert(null, entity, fieldNames);
    }

    default int insert(Object entity) {
        return insert(null, entity, null);
    }

    int[] batchInsert(Tnp tnp, List entities, List fieldNames, int batchSize);

    default int[] batchInsert(List entities, List fieldNames, int batchSize) {
        return batchInsert(null, entities, fieldNames, batchSize);
    }

    default int[] batchInsert(List entities, List fieldNames) {
        return batchInsert(null, entities, fieldNames, 0);
    }

    default int[] batchInsert(List entities) {
        return batchInsert(null, entities, null, 0);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy