public class DefaultSequenceDao extends Object implements SequenceDao
Constructor and Description |
---|
DefaultSequenceDao() |
Modifier and Type | Method and Description |
---|---|
DataSource |
getDataSource() |
String |
getGmtModifiedColumnName() |
String |
getNameColumnName() |
int |
getRetryTimes() |
int |
getStep() |
String |
getTableName() |
String |
getValueColumnName() |
SequenceRange |
nextRange(String name)
取得下一个可用的序列区间
|
void |
setDataSource(DataSource dataSource) |
void |
setGmtModifiedColumnName(String gmtModifiedColumnName) |
void |
setNameColumnName(String nameColumnName) |
void |
setRetryTimes(int retryTimes) |
void |
setStep(int step) |
void |
setTableName(String tableName) |
void |
setValueColumnName(String valueColumnName) |
public SequenceRange nextRange(String name) throws SequenceException
SequenceDao
nextRange
in interface SequenceDao
name
- 序列名称SequenceException
public DataSource getDataSource()
public void setDataSource(DataSource dataSource)
public int getRetryTimes()
public void setRetryTimes(int retryTimes)
public int getStep()
public void setStep(int step)
public String getTableName()
public void setTableName(String tableName)
public String getNameColumnName()
public void setNameColumnName(String nameColumnName)
public String getValueColumnName()
public void setValueColumnName(String valueColumnName)
public String getGmtModifiedColumnName()
public void setGmtModifiedColumnName(String gmtModifiedColumnName)
Copyright © 2006–2018 TinyGroup. All rights reserved.