public enum SqlType extends Enum<SqlType>
| 限定符和类型 | 方法和说明 |
|---|---|
static SqlType |
fromName(String name) |
static SqlType |
fromType(String typeName) |
String |
getDesc() |
String |
getName() |
Integer |
getType() |
void |
setDesc(String desc) |
void |
setName(String name) |
void |
setType(Integer type) |
String |
toString() |
static SqlType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static SqlType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final SqlType SELECT
public static final SqlType UPDATE
public static final SqlType INSERT
public static final SqlType DELETE
public static SqlType[] values()
for (SqlType c : SqlType.values()) System.out.println(c);
public static SqlType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public Integer getType()
public String getName()
public void setType(Integer type)
public void setName(String name)
public String getDesc()
public void setDesc(String desc)
Copyright © 2023 onecode. All rights reserved.