public class PrimaryKeySchema extends Object implements Jsonizable
构造器和说明 |
---|
PrimaryKeySchema(String name,
PrimaryKeyType type) |
PrimaryKeySchema(String name,
PrimaryKeyType type,
PrimaryKeyOption option) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
equals(Object o) |
String |
getName()
获取主键的名称。
|
PrimaryKeyOption |
getOption() |
PrimaryKeyType |
getType()
获取主键的类型。
|
int |
hashCode() |
boolean |
hasOption() |
String |
jsonize() |
void |
jsonize(StringBuilder sb,
String newline) |
void |
setName(String name)
设置主键的名称。
|
void |
setOption(PrimaryKeyOption option) |
void |
setType(PrimaryKeyType type)
设置主键的类型。
|
String |
toString() |
public PrimaryKeySchema(String name, PrimaryKeyType type)
public PrimaryKeySchema(String name, PrimaryKeyType type, PrimaryKeyOption option)
public String getName()
public void setName(String name)
name
- 主键的名称。public PrimaryKeyType getType()
public void setType(PrimaryKeyType type)
type
- 主键的类型。public String jsonize()
jsonize
在接口中 Jsonizable
public void jsonize(StringBuilder sb, String newline)
jsonize
在接口中 Jsonizable
public boolean hasOption()
public PrimaryKeyOption getOption()
public void setOption(PrimaryKeyOption option)
Copyright © 2018. All Rights Reserved.