org.onetwo.dbm.id.IdentifierGenerator Maven / Gradle / Ivy
The newest version!
package org.onetwo.dbm.id;
import java.io.Serializable;
import java.util.List;
import org.onetwo.dbm.core.spi.DbmSessionImplementor;
/**
* @author wayshall
*
*/
public interface IdentifierGenerator {
String getName();
StrategyType getStrategyType();
T generate(DbmSessionImplementor session);
/***
*
* @author wayshall
* @param session
* @param batchSize
* @return change Pair to List, because not all id is increase 1
*/
List batchGenerate(DbmSessionImplementor session, int batchSize);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy