public interface IRow<M>
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
get(String column)
Get column value of any mysql type
|
<T> T |
get(String column,
Object defaultValue)
Get column of any mysql type.
|
BigDecimal |
getBigDecimal(String column)
Get column of mysql type: decimal, numeric
|
BigInteger |
getBigInteger(String column)
Get column of mysql type: unsigned bigint
|
Boolean |
getBoolean(String column)
Get column of mysql type: bit, tinyint(1)
|
Byte |
getByte(String column) |
byte[] |
getBytes(String column)
Get column of mysql type: binary, varbinary, tinyblob, blob, mediumblob, longblob
I have not finished the test.
|
Date |
getDate(String column)
Get column of mysql type: date, year
|
Double |
getDouble(String column)
Get column of mysql type: real, double
|
Float |
getFloat(String column)
Get column of mysql type: float
|
Integer |
getInt(String column)
Get column of mysql type: int, integer, tinyint(n) n > 1, smallint, mediumint
|
java.time.LocalDateTime |
getLocalDateTime(String column) |
Long |
getLong(String column)
Get column of mysql type: bigint, unsigned int
|
Number |
getNumber(String column)
Get column of any type that extends from Number
|
Short |
getShort(String column) |
String |
getStr(String column)
Get column of mysql type: varchar, char, enum, set, text, tinytext, mediumtext, longtext
|
Time |
getTime(String column)
Get column of mysql type: time
|
Timestamp |
getTimestamp(String column)
Get column of mysql type: timestamp, datetime
|
M |
put(Map<String,Object> map)
Put map to the model without check attribute name.
|
M |
put(String key,
Object value)
Put key value pair to the model without check attribute name.
|
M |
set(String column,
Object value)
Set column value.
|
int |
size() |
Map<String,Object> |
toMap()
Convert Model or Record to a Map.
|
Map<String,Object> toMap()
Danger! The update method will ignore the attribute if you change it directly. You must use set method to change attribute that update method can handle it.
M set(String column, Object value)
column - the column namevalue - the value of the column<T> T get(String column)
<T> T get(String column, Object defaultValue)
String getStr(String column)
Integer getInt(String column)
BigInteger getBigInteger(String column)
java.time.LocalDateTime getLocalDateTime(String column)
BigDecimal getBigDecimal(String column)
byte[] getBytes(String column)
int size()
Copyright © 2024. All rights reserved.