public class ColumnDefinitionFlagsUtil
extends java.lang.Object
说明:ColumnDefinitionFlagsUtil 类是线程安全的,可在多个线程中使用同一个实例。
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
INDEX_AUTO_INCREMENT_FLAG
"AUTO_INCREMENT_FLAG" 状态对应的比特位索引位置
|
static int |
INDEX_BINARY_FLAG
"BINARY_FLAG" 状态对应的比特位索引位置
|
static int |
INDEX_BLOB_FLAG
"BLOB_FLAG" 状态对应的比特位索引位置
|
static int |
INDEX_ENUM_FLAG
"ENUM_FLAG" 状态对应的比特位索引位置
|
static int |
INDEX_MULTIPLE_KEY_FLAG
"MULTIPLE_KEY_FLAG " 状态对应的比特位索引位置
|
static int |
INDEX_NO_DEFAULT_VALUE_FLAG
"NO_DEFAULT_VALUE_FLAG" 状态对应的比特位索引位置
|
static int |
INDEX_NOT_NULL_FLAG
"NOT_NULL_FLAG" 状态对应的比特位索引位置
|
static int |
INDEX_NUM_FLAG
"NUM_FLAG" 状态对应的比特位索引位置
|
static int |
INDEX_ON_UPDATE_NOW_FLAG
"ON_UPDATE_NOW_FLAG" 状态对应的比特位索引位置
|
static int |
INDEX_PRI_KEY_FLAG
"PRI_KEY_FLAG" 状态对应的比特位索引位置
|
static int |
INDEX_SET_FLAG
"SET_FLAG" 状态对应的比特位索引位置
|
static int |
INDEX_TIMESTAMP_FLAG
"TIMESTAMP_FLAG" 状态对应的比特位索引位置
|
static int |
INDEX_UNIQUE_KEY_FLAG
"UNIQUE_KEY_FLAG" 状态对应的比特位索引位置
|
static int |
INDEX_UNSIGNED_FLAG
"UNSIGNED_FLAG" 状态对应的比特位索引位置
|
static int |
INDEX_ZEROFILL_FLAG
"ZEROFILL_FLAG" 状态对应的比特位索引位置
|
| 构造器和说明 |
|---|
ColumnDefinitionFlagsUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static java.lang.String |
getColumnDefinitionName(int columnDefinitionIndex)
根据列定义状态比特位索引位置获得对应的名称,该方法不会返回
null。 |
static java.util.List<java.lang.String> |
getEnabledColumnDefinitionNames(int columnDefinitionFlags)
返回列定义数值中开启的状态名称列表,该方法不会返回
null。 |
static boolean |
isColumnDefinitionEnabled(int columnDefinitionFlags,
int columnDefinitionIndex)
判断指定的列定义是否开启。
|
public static final int INDEX_NOT_NULL_FLAG
public static final int INDEX_PRI_KEY_FLAG
public static final int INDEX_UNIQUE_KEY_FLAG
public static final int INDEX_MULTIPLE_KEY_FLAG
public static final int INDEX_BLOB_FLAG
public static final int INDEX_UNSIGNED_FLAG
public static final int INDEX_ZEROFILL_FLAG
public static final int INDEX_BINARY_FLAG
public static final int INDEX_ENUM_FLAG
public static final int INDEX_AUTO_INCREMENT_FLAG
public static final int INDEX_TIMESTAMP_FLAG
public static final int INDEX_SET_FLAG
public static final int INDEX_NO_DEFAULT_VALUE_FLAG
public static final int INDEX_ON_UPDATE_NOW_FLAG
public static final int INDEX_NUM_FLAG
public static boolean isColumnDefinitionEnabled(int columnDefinitionFlags,
int columnDefinitionIndex)
throws java.lang.IllegalArgumentException
columnDefinitionFlags - 列定义数值columnDefinitionIndex - 状态对应的比特位索引位置,允许的值为:[0, 15]java.lang.IllegalArgumentException - 如果状态对应的比特位索引位置没有在允许的范围内,将会抛出此异常public static java.lang.String getColumnDefinitionName(int columnDefinitionIndex)
throws java.lang.IllegalArgumentException
null。columnDefinitionIndex - 状态对应的比特位索引位置,允许的值为:[0, 15]java.lang.IllegalArgumentException - 如果状态对应的比特位索引位置没有在允许的范围内,将会抛出此异常public static java.util.List<java.lang.String> getEnabledColumnDefinitionNames(int columnDefinitionFlags)
null。columnDefinitionFlags - 列定义数值Copyright © 2019. All Rights Reserved.