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()
Get the name of the primary key.
|
PrimaryKeyOption |
getOption() |
PrimaryKeyType |
getType()
Get the type of the primary key.
|
int |
hashCode() |
boolean |
hasOption() |
String |
jsonize() |
void |
jsonize(StringBuilder sb,
String newline) |
void |
setName(String name)
Set the name of the primary key.
|
void |
setOption(PrimaryKeyOption option) |
void |
setType(PrimaryKeyType type)
Set the type of the primary key.
|
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 - The name of the primary key.public PrimaryKeyType getType()
public void setType(PrimaryKeyType type)
type - The type of the primary key.public String jsonize()
jsonize 在接口中 Jsonizablepublic void jsonize(StringBuilder sb, String newline)
jsonize 在接口中 Jsonizablepublic boolean hasOption()
public PrimaryKeyOption getOption()
public void setOption(PrimaryKeyOption option)
Copyright © 2025. All Rights Reserved.