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

com.litongjava.db.activerecord.BatchSaveFetchGeneratedKey Maven / Gradle / Ivy

There is a newer version: 1.4.7
Show newest version
package com.litongjava.db.activerecord;

import java.util.List;

/**
 * Db.batchSave 支持获取生成的主键值
 * 配置方式:
 * arp.setDbProFactory(configName -> new DbProBatchSaveFetchGeneratedKey(configName));
 */
public class BatchSaveFetchGeneratedKey extends DbPro {

	public BatchSaveFetchGeneratedKey(String configName) {
		super(configName);
	}

	@SuppressWarnings("rawtypes")
	public int[] batchSave(List modelList, int batchSize) {
		throw new RuntimeException("暂未实现");
	}

	public int[] batchSave(String tableName, List recordList, int batchSize) {
		throw new RuntimeException("暂未实现");
	}
}








© 2015 - 2025 Weber Informatics LLC | Privacy Policy