public interface MyObjectMapper extends BaseInterface
Modifier and Type | Method and Description |
---|---|
long |
countByExample(MyObjectCriteria example)
This method was generated by MyBatis Generator.
|
int |
deleteByExample(MyObjectCriteria example)
This method was generated by MyBatis Generator.
|
int |
deleteByPrimaryKey(MyObjectKey key)
This method was generated by MyBatis Generator.
|
int |
insert(MyObject row)
This method was generated by MyBatis Generator.
|
int |
insertSelective(MyObject row)
This method was generated by MyBatis Generator.
|
List<MyObject> |
selectByExample(MyObjectCriteria example)
This method was generated by MyBatis Generator.
|
MyObject |
selectByPrimaryKey(MyObjectKey key)
This method was generated by MyBatis Generator.
|
int |
updateByExample(MyObject row,
MyObjectCriteria example)
This method was generated by MyBatis Generator.
|
int |
updateByExampleSelective(MyObject row,
MyObjectCriteria example)
This method was generated by MyBatis Generator.
|
int |
updateByPrimaryKey(MyObject row)
This method was generated by MyBatis Generator.
|
int |
updateByPrimaryKeySelective(MyObject row)
This method was generated by MyBatis Generator.
|
@SelectProvider(type=MyObjectSqlProvider.class, method="countByExample") long countByExample(MyObjectCriteria example)
@DeleteProvider(type=MyObjectSqlProvider.class, method="deleteByExample") int deleteByExample(MyObjectCriteria example)
@Delete(value={"delete from PKFIELDS","where ID2 = #{id2,jdbcType=INTEGER}","and ID1 = #{id1,jdbcType=INTEGER}"}) int deleteByPrimaryKey(MyObjectKey key)
@Insert(value={"insert into PKFIELDS (ID2, ID1, ","FIRSTNAME, ","LASTNAME, DATEFIELD, ","TIMEFIELD, ","TIMESTAMPFIELD, DECIMAL60FIELD, ","DECIMAL100FIELD, DECIMAL155FIELD, ","\"wierd$Field\", \"birth date\", ","STRINGBOOLEAN)","values (#{id2,jdbcType=INTEGER}, #{id1,jdbcType=INTEGER}, ","#{firstname,jdbcType=VARCHAR,typeHandler=mbg.test.mb3.common.FirstNameTypeHandler}, ","#{lastname,jdbcType=VARCHAR}, #{startDate,jdbcType=DATE}, ","#{timefield,jdbcType=TIME,typeHandler=mbg.test.mb3.common.MyTimeTypeHandler}, ","#{timestampfield,jdbcType=TIMESTAMP}, #{decimal60field,jdbcType=DECIMAL}, ","#{decimal100field,jdbcType=DECIMAL}, #{decimal155field,jdbcType=DECIMAL}, ","#{wierdField,jdbcType=INTEGER}, #{birthDate,jdbcType=DATE}, ","#{stringboolean,jdbcType=CHAR})"}) int insert(MyObject row)
@InsertProvider(type=MyObjectSqlProvider.class, method="insertSelective") int insertSelective(MyObject row)
@SelectProvider(type=MyObjectSqlProvider.class, method="selectByExample") @Result(column="A_ID2",property="id2",jdbcType=INTEGER,id=true) @Result(column="A_ID1",property="id1",jdbcType=INTEGER,id=true) @Result(column="A_FIRSTNAME",property="firstname",typeHandler=FirstNameTypeHandler.class,jdbcType=VARCHAR) @Result(column="A_LASTNAME",property="lastname",jdbcType=VARCHAR) @Result(column="A_DATEFIELD",property="startDate",jdbcType=DATE) @Result(column="A_TIMEFIELD",property="timefield",typeHandler=MyTimeTypeHandler.class,jdbcType=TIME) @Result(column="A_TIMESTAMPFIELD",property="timestampfield",jdbcType=TIMESTAMP) @Result(column="A_DECIMAL60FIELD",property="decimal60field",jdbcType=DECIMAL) @Result(column="A_DECIMAL100FIELD",property="decimal100field",jdbcType=DECIMAL) @Result(column="A_DECIMAL155FIELD",property="decimal155field",jdbcType=DECIMAL) @Result(column="A_wierd$Field",property="wierdField",jdbcType=INTEGER) @Result(column="A_birth date",property="birthDate",jdbcType=DATE) @Result(column="A_STRINGBOOLEAN",property="stringboolean",jdbcType=CHAR) List<MyObject> selectByExample(MyObjectCriteria example)
@Select(value={"select","A.ID2 as A_ID2, A.ID1 as A_ID1, A.FIRSTNAME as A_FIRSTNAME, A.LASTNAME as A_LASTNAME, ","A.DATEFIELD as A_DATEFIELD, A.TIMEFIELD as A_TIMEFIELD, A.TIMESTAMPFIELD as A_TIMESTAMPFIELD, ","A.DECIMAL60FIELD as A_DECIMAL60FIELD, A.DECIMAL100FIELD as A_DECIMAL100FIELD, ","A.DECIMAL155FIELD as A_DECIMAL155FIELD, A.\"wierd$Field\" as \"A_wierd$Field\", ","A.\"birth date\" as \"A_birth date\", A.STRINGBOOLEAN as A_STRINGBOOLEAN","from PKFIELDS A","where ID2 = #{id2,jdbcType=INTEGER}","and ID1 = #{id1,jdbcType=INTEGER}"}) @Result(column="A_ID2",property="id2",jdbcType=INTEGER,id=true) @Result(column="A_ID1",property="id1",jdbcType=INTEGER,id=true) @Result(column="A_FIRSTNAME",property="firstname",typeHandler=FirstNameTypeHandler.class,jdbcType=VARCHAR) @Result(column="A_LASTNAME",property="lastname",jdbcType=VARCHAR) @Result(column="A_DATEFIELD",property="startDate",jdbcType=DATE) @Result(column="A_TIMEFIELD",property="timefield",typeHandler=MyTimeTypeHandler.class,jdbcType=TIME) @Result(column="A_TIMESTAMPFIELD",property="timestampfield",jdbcType=TIMESTAMP) @Result(column="A_DECIMAL60FIELD",property="decimal60field",jdbcType=DECIMAL) @Result(column="A_DECIMAL100FIELD",property="decimal100field",jdbcType=DECIMAL) @Result(column="A_DECIMAL155FIELD",property="decimal155field",jdbcType=DECIMAL) @Result(column="A_wierd$Field",property="wierdField",jdbcType=INTEGER) @Result(column="A_birth date",property="birthDate",jdbcType=DATE) @Result(column="A_STRINGBOOLEAN",property="stringboolean",jdbcType=CHAR) MyObject selectByPrimaryKey(MyObjectKey key)
@UpdateProvider(type=MyObjectSqlProvider.class, method="updateByExampleSelective") int updateByExampleSelective(@Param(value="row") MyObject row, @Param(value="example") MyObjectCriteria example)
@UpdateProvider(type=MyObjectSqlProvider.class, method="updateByExample") int updateByExample(@Param(value="row") MyObject row, @Param(value="example") MyObjectCriteria example)
@UpdateProvider(type=MyObjectSqlProvider.class, method="updateByPrimaryKeySelective") int updateByPrimaryKeySelective(MyObject row)
@Update(value={"update PKFIELDS","set FIRSTNAME = #{firstname,jdbcType=VARCHAR,typeHandler=mbg.test.mb3.common.FirstNameTypeHandler},","LASTNAME = #{lastname,jdbcType=VARCHAR},","DATEFIELD = #{startDate,jdbcType=DATE},","TIMEFIELD = #{timefield,jdbcType=TIME,typeHandler=mbg.test.mb3.common.MyTimeTypeHandler},","TIMESTAMPFIELD = #{timestampfield,jdbcType=TIMESTAMP},","DECIMAL60FIELD = #{decimal60field,jdbcType=DECIMAL},","DECIMAL100FIELD = #{decimal100field,jdbcType=DECIMAL},","DECIMAL155FIELD = #{decimal155field,jdbcType=DECIMAL},","\"wierd$Field\" = #{wierdField,jdbcType=INTEGER},","\"birth date\" = #{birthDate,jdbcType=DATE},","STRINGBOOLEAN = #{stringboolean,jdbcType=CHAR}","where ID2 = #{id2,jdbcType=INTEGER}","and ID1 = #{id1,jdbcType=INTEGER}"}) int updateByPrimaryKey(MyObject row)
Copyright © 2006–2022 MyBatis.org. All rights reserved.