public class MultipleSequenceFactory extends Object
Constructor and Description |
---|
MultipleSequenceFactory() |
Modifier and Type | Method and Description |
---|---|
MultipleSequenceDao |
getMultipleSequenceDao()
Getter method for property sequenceDao.
|
long |
getNextValue(String sequenceName)
外部调用接口,根据sequence name 获取sequence value
如果该sequence在multipleSequenceMap里不存在,则去db里查一下是否存在,
如果存在就生成对应的multipleSequence对象并加载到内存,否则报错;
|
void |
init()
初始化multipleSequence的工厂
从数据源里获取sequence的记录,对每一条记录进行处理,生成对应的multipleSequence对象,加载到内存中
|
void |
setMultipleSequenceDao(MultipleSequenceDao sequenceDao)
Setter method for property sequenceDao.
|
public void init()
Exception
public long getNextValue(String sequenceName) throws Exception
sequenceName
- Exception
public MultipleSequenceDao getMultipleSequenceDao()
public void setMultipleSequenceDao(MultipleSequenceDao sequenceDao)
sequenceDao
- value to be assigned to property sequenceDaoCopyright © 2006–2018 TinyGroup. All rights reserved.