cn.remex.db.rsql.model
接口 SerialNoGenerator

所有已知实现类:
AuthGroup, AuthParam, AuthPrivilege, AuthResource, AuthRole, AuthUri, AuthUser, AuthValue, BeanAccessScope, ConfigInfo, DataDic, Department, ElementDefault, FieldMapping, FieldMappingGroup, Icon, Info, InfoClass, JqgColModel, JqgEditOption, LogMsg, LogonLogMsg, MappingConfigTree, MenuTreeNode, ModelableImpl, MonitorLog, Organization, Person, ReflectMapping, RjqParams, Staff, SysCode, SysSerialNumber, SysVariables, TabSettings, TabSrc, TreeModel, ValueMapping, ValueMappingConfig, ValueMappingGroup, ZTreeNode

public interface SerialNoGenerator

从以下版本开始:
2013-3-2
作者:
Hengyang Liu yangyang8599@163.com

字段摘要
static HashMap<Class<?>,Integer> ORM_CURMAX_ID
          主键map
static HashMap<Class<?>,Integer> ORM_ID_NUMLEN
           
 
方法摘要
 String generateId()
          此函数自动生成数据库表中的主键。
 String obtainAbbreviation()
           
 String obtainIdFormat()
          可重载此方式改变主键生成的格式。
 String obtainSerialNoFormat()
           
 

字段详细信息

ORM_CURMAX_ID

static final HashMap<Class<?>,Integer> ORM_CURMAX_ID
主键map


ORM_ID_NUMLEN

static final HashMap<Class<?>,Integer> ORM_ID_NUMLEN
方法详细信息

generateId

String generateId()
此函数自动生成数据库表中的主键。

返回:
String

obtainAbbreviation

String obtainAbbreviation()
返回:
String

obtainIdFormat

String obtainIdFormat()
可重载此方式改变主键生成的格式。Remex提供两个参数%1是表缩写,%2日期,%1是自动递增的序列号。

返回:
String
另请参见:
String.format(String, Object...);

obtainSerialNoFormat

String obtainSerialNoFormat()
返回:
String


Copyright © 2016. All rights reserved.