|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.Objectcom.beetle.framework.persistence.seq.imp.CommonSeqGenerator
public class CommonSeqGenerator
Title: BeetleSoft Framework
Description:由于CommonSeqGenerator的获取种子方法在一个完整的事务内完成,
为了避免嵌套事务的发生,建议专门建立一个"no-tx-datasource"数据源为此类服务
create table SEQUENCE ( NAME varchar(30) not null, NEXTID DECIMAL(20,0),
primary key (NAME) );
Copyright: Copyright (c) 2003
Company: 甲壳虫软件
| 字段摘要 |
|---|
| 从接口 com.beetle.framework.persistence.seq.ISequence 继承的字段 |
|---|
IMP_TYPE_COMMON, IMP_TYPE_DB2, IMP_TYPE_ORACLE, IMP_TYPE_OTHER, IMP_TYPE_POSTGRESQL |
| 方法摘要 | |
|---|---|
int |
getImpType()
返回实现类型 |
static ISequence |
getInstance()
|
void |
initSequenceValue(int initValue,
SeqType seqtype)
初始化序列的开始值 |
long |
nextSequenceNum(SeqType seqtype)
nextSequenceNum |
java.lang.Long |
nextSequenceNumAsLong(SeqType seqtype)
按Long类型返回序列 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 方法详细信息 |
|---|
public static ISequence getInstance()
public long nextSequenceNum(SeqType seqtype)
ISequence 中的 nextSequenceNumseqtype - SeqType
public int getImpType()
ISequence 复制的描述
ISequence 中的 getImpTypepublic java.lang.Long nextSequenceNumAsLong(SeqType seqtype)
ISequence 复制的描述
ISequence 中的 nextSequenceNumAsLongseqtype - 序列类型
public void initSequenceValue(int initValue,
SeqType seqtype)
ISequence 复制的描述
ISequence 中的 initSequenceValueinitValue - 初始值
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||