public class ListItemType extends ItemType<ListItemType>
| 限定符和类型 | 字段和说明 |
|---|---|
protected ItemType |
subItemType |
| 限定符 | 构造器和说明 |
|---|---|
protected |
ListItemType(String name,
ItemType subItemType) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected List<Item> |
_newValue() |
protected void |
addSubitemImpl(Item item,
Object subitemValue) |
Item |
create() |
int |
dbParamCount() |
List<? extends ItemType> |
flatItemTypes() |
protected Item |
getSubitemImpl(Item item,
int key) |
ListItemType |
headSize(int headSize) |
protected Class |
insideValueClass() |
protected List<Item> |
itemValue(Item item) |
Item |
load(BytesLoader in) |
Item |
load(Iterator<Object> in) |
Item |
load(Scanner in)
允许从字符串载入数据(为数据库载入准备)
|
Item |
LoadOne(Iterator<Object> in) |
static ListItemType |
of(String name,
ItemType... subItemTypes) |
int |
statementParamImpl(Item item,
CallableStatement statement,
int pos)
每次访问,内部会自动移动List游标。
|
ItemType |
subItemType() |
void |
toBytes(Object itemValue,
BytesBuilder build) |
void |
toFlatObject(Object itemValue,
cn.gongler.util.protocol.itemtype.IteratorBuilder<Object> build) |
String |
toString(Object itemValue) |
ListItemType |
wrapperByStruct() |
_newItem, BCD_DATE, BCD_DATETIME, BCD, BIN, BITS, BYTES_ASC, BYTES, DEC, description, description, formatFlatObjects, HEX, LIST_H4, LIST, load, match, name, NUM, REMAIN_BYTES, safeSetItemValue, setSubitemImpl, SNUM, STR, STRUCT, toBytes, toDoubleImpl, toString, toString, 包类型protected ItemType subItemType
public ItemType subItemType()
public static ListItemType of(String name, ItemType... subItemTypes)
public ListItemType wrapperByStruct()
public ListItemType headSize(int headSize)
headSize - headSizepublic Item create()
create 在类中 ItemType<ListItemType>public Item load(Scanner in)
ItemTypeload 在类中 ItemType<ListItemType>in - scannerpublic Item load(BytesLoader in)
load 在类中 ItemType<ListItemType>in - inpublic void toBytes(Object itemValue, BytesBuilder build)
toBytes 在类中 ItemType<ListItemType>itemValue - itemValuebuild - builderpublic void toFlatObject(Object itemValue, cn.gongler.util.protocol.itemtype.IteratorBuilder<Object> build)
toFlatObject 在类中 ItemType<ListItemType>protected Class insideValueClass()
insideValueClass 在类中 ItemType<ListItemType>public String toString(Object itemValue)
toString 在类中 ItemType<ListItemType>itemValue - itemValuepublic int dbParamCount()
dbParamCount 在类中 ItemType<ListItemType>public int statementParamImpl(Item item, CallableStatement statement, int pos) throws SQLException
statementParamImpl 在类中 ItemType<ListItemType>item - itemstatement - statementpos - 位置SQLException - 异常public List<? extends ItemType> flatItemTypes()
flatItemTypes 在类中 ItemType<ListItemType>protected Item getSubitemImpl(Item item, int key)
getSubitemImpl 在类中 ItemType<ListItemType>protected void addSubitemImpl(Item item, Object subitemValue)
addSubitemImpl 在类中 ItemType<ListItemType>Copyright © 2022. All rights reserved.