T - 对应类型public abstract class AutoKey<T>
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
AutoKey.IntegerAutoKey
自增数据类型为Integer的数据模型
|
static class |
AutoKey.LongAutoKey
数据库自动生成的主键为Long的数据类型
|
static class |
AutoKey.StringAutoKey
数据库自动生成的主键为String类型
|
| 构造器和说明 |
|---|
AutoKey() |
| 限定符和类型 | 方法和说明 |
|---|---|
T |
get() |
static AutoKey.IntegerAutoKey |
newInstanceWithInteger()
返回一个代表整型的自增值的对象
|
static AutoKey.LongAutoKey |
newInstanceWithLong()
返回一个代表Long的自增值的对象
|
static AutoKey.StringAutoKey |
newInstanceWithString()
返回一个代表String的自增值的对象
|
static AutoKey |
newInstanceWithType(java.lang.Class type) |
void |
set(T instance) |
public T get()
public void set(T instance)
public static AutoKey.IntegerAutoKey newInstanceWithInteger()
public static AutoKey.LongAutoKey newInstanceWithLong()
public static AutoKey.StringAutoKey newInstanceWithString()
public static AutoKey newInstanceWithType(java.lang.Class type)