程序包 com.ishop.model
类 MyRecord
java.lang.Object
com.ishop.model.MyRecord
- 所有已实现的接口:
Serializable
采集商品时使用的商品信息解析对象。
- 作者:
- 时克英
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明clear()Remove all columns of this record.boolean<T> TGet column of any mysql type<T> TGet column of any mysql type.getBigDecimal(String column) Get column of mysql type: decimal, numericgetBigInteger(String column) Get column of mysql type: unsigned bigintgetBoolean(String column) Get column of mysql type: bit, tinyint(1)byte[]Get column of mysql type: binary, varbinary, tinyblob, blob, mediumblob, longblob I have not finished the test.String[]Return column names of this record.Return columns map.Object[]Return column values of this record.Get column of mysql type: date, yearGet column of mysql type: real, doubleGet column of mysql type: floatGet column of mysql type: int, integer, tinyint(n) n > 1, smallint, mediumintGet column of mysql type: bigintGet column of any type that extends from NumberGet column of mysql type: varchar, char, enum, set, text, tinytext, mediumtext, longtextGet column of mysql type: timegetTimestamp(String column) Get column of mysql type: timestamp, datetimeinthashCode()Keep column of this record and remove other columns.Keep columns of this record and remove other columns.Remove attribute of this myRecord.Remove columns of this myRecord.Remove columns if it is null.Set column to record.Set column to record.setColumns(MyRecord record) Set columns value with MyRecord.setColumns(String jsonObject) Set columns value with JSONObject.setColumns(Map<String, Object> columns) Set columns value with map.<T> MyRecordsetColumns(T t) Set columns value with Model object.toJson()Return json string of this record.toString()
-
构造器详细资料
-
MyRecord
public MyRecord()
-
-
方法详细资料
-
getColumns
Return columns map. -
setColumns
Set columns value with map.- 参数:
columns- the columns map
-
setColumns
Set columns value with MyRecord.- 参数:
record- the MyRecord object
-
setColumns
Set columns value with JSONObject.- 参数:
jsonObject- the MyRecord object
-
setColumns
Set columns value with Model object.- 类型参数:
T-- 参数:
t-- 返回:
-
remove
Remove attribute of this myRecord.- 参数:
column- the column name of the myRecord
-
remove
Remove columns of this myRecord.- 参数:
columns- the column names of the myRecord
-
removeNullValueColumns
Remove columns if it is null. -
keep
Keep columns of this record and remove other columns.- 参数:
columns- the column names of the record
-
keep
Keep column of this record and remove other columns.- 参数:
column- the column names of the record
-
clear
Remove all columns of this record. -
set
Set column to record.- 参数:
column- the column namevalue- the value of the column
-
set
Set column to record.- 参数:
column- the column namevalueList- the value of the column
-
get
Get column of any mysql type -
get
Get column of any mysql type. Returns defaultValue if null. -
getObject
-
getObject
-
getStr
Get column of mysql type: varchar, char, enum, set, text, tinytext, mediumtext, longtext -
getInt
Get column of mysql type: int, integer, tinyint(n) n > 1, smallint, mediumint -
getLong
Get column of mysql type: bigint -
getBigInteger
Get column of mysql type: unsigned bigint -
getDate
Get column of mysql type: date, year -
getTime
Get column of mysql type: time -
getTimestamp
Get column of mysql type: timestamp, datetime -
getDouble
Get column of mysql type: real, double -
getFloat
Get column of mysql type: float -
getShort
-
getByte
-
getBoolean
Get column of mysql type: bit, tinyint(1) -
getBigDecimal
Get column of mysql type: decimal, numeric -
getBytes
Get column of mysql type: binary, varbinary, tinyblob, blob, mediumblob, longblob I have not finished the test. -
getNumber
Get column of any type that extends from Number -
toString
-
equals
-
hashCode
public int hashCode() -
getColumnNames
Return column names of this record. -
getColumnValues
Return column values of this record. -
toJson
Return json string of this record.
-