public class PrimaryKeySchema extends Object implements Jsonizable
| Constructor and Description |
|---|
PrimaryKeySchema(String name,
PrimaryKeyType type) |
PrimaryKeySchema(String name,
PrimaryKeyType type,
PrimaryKeyOption option) |
| Modifier and Type | Method and Description |
|---|---|
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 in interface Jsonizablepublic void jsonize(StringBuilder sb, String newline)
jsonize in interface Jsonizablepublic boolean hasOption()
public PrimaryKeyOption getOption()
public void setOption(PrimaryKeyOption option)
Copyright © 2024. All Rights Reserved.