public class DefaultIdGenerator extends Object implements IdGenerator, org.springframework.beans.factory.InitializingBean
| 限定符和类型 | 字段和说明 |
|---|---|
org.springframework.jdbc.core.JdbcTemplate |
jdbcTemplate |
| 构造器和说明 |
|---|
DefaultIdGenerator() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
String |
getSuid()
获取
|
Long |
getUId()
获取唯一主键ID
|
Long |
getUniqueId()
获取唯一的ID标识
|
void |
setIdBase(Long idBase) |
void |
setIncreaseBound(int increase) |
void |
setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate) |
void |
setMachineName(String machineName) |
public Long getUniqueId()
public void afterPropertiesSet()
throws Exception
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanExceptionpublic void setIdBase(Long idBase)
public void setMachineName(String machineName)
public void setIncreaseBound(int increase)
public void setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
public Long getUId()
IdGeneratorgetUId 在接口中 IdGeneratorpublic String getSuid()
IdGeneratorgetSuid 在接口中 IdGeneratorCopyright © 2018. All rights reserved.