當前位置: 首頁>>代碼示例>>Java>>正文


Java JdbcType.INTEGER屬性代碼示例

本文整理匯總了Java中org.apache.ibatis.type.JdbcType.INTEGER屬性的典型用法代碼示例。如果您正苦於以下問題:Java JdbcType.INTEGER屬性的具體用法?Java JdbcType.INTEGER怎麽用?Java JdbcType.INTEGER使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在org.apache.ibatis.type.JdbcType的用法示例。


在下文中一共展示了JdbcType.INTEGER屬性的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: selectByExample

@SelectProvider(type=UserSqlProvider.class, method="selectByExample")
@Results({
    @Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true),
    @Result(column="username", property="username", jdbcType=JdbcType.VARCHAR),
    @Result(column="psw", property="psw", jdbcType=JdbcType.VARCHAR)
})
List<User> selectByExample(UserCriteria example);
 
開發者ID:RayeWang,項目名稱:SpringbootMybatis,代碼行數:7,代碼來源:UserMapper.java

示例2: select

@Select({
        "select",
        "u.id, u.name, u.email, u.creator, u.flag, u.last_login_time,c.name createUser",
        "from admin_user u LEFT JOIN admin_user c ON u.creator=c.id",
        "where u.name LIKE #{query} LIMIT #{begin},#{pagesize}"
})
@Results({
        @Result(column="id", property="id", jdbcType= JdbcType.INTEGER, id=true),
        @Result(column="name", property="name", jdbcType= JdbcType.VARCHAR),
        @Result(column="psw", property="psw", jdbcType= JdbcType.VARCHAR),
        @Result(column="email", property="email", jdbcType= JdbcType.VARCHAR),
        @Result(column="creator", property="creator", jdbcType= JdbcType.INTEGER),
        @Result(column="flag", property="flag", jdbcType= JdbcType.INTEGER),
        @Result(column="last_login_time", property="lastLoginTime", jdbcType= JdbcType.TIMESTAMP)
})
List<AdminUser> select(@Param("begin") int begin, @Param("pagesize") int pageSize, @Param("query") String query);
 
開發者ID:RayeWang,項目名稱:easyadmin,代碼行數:16,代碼來源:AdminUserMapper.java

示例3: selectByExample

@SelectProvider(type=MenuSqlProvider.class, method="selectByExample")
@Results({
    @Result(column="id", property="id", jdbcType= JdbcType.INTEGER, id=true),
    @Result(column="name", property="name", jdbcType= JdbcType.VARCHAR),
    @Result(column="url", property="url", jdbcType= JdbcType.VARCHAR),
    @Result(column="icon", property="icon", jdbcType= JdbcType.VARCHAR),
    @Result(column="menu_type", property="menuType", jdbcType= JdbcType.CHAR),
    @Result(column="display", property="display", jdbcType= JdbcType.INTEGER),
    @Result(column="parent_id", property="parentId", jdbcType= JdbcType.INTEGER),
    @Result(column="creator", property="creator", jdbcType= JdbcType.INTEGER),
    @Result(column="create_time", property="createTime", jdbcType= JdbcType.TIMESTAMP),
    @Result(column="update_user", property="updateUser", jdbcType= JdbcType.INTEGER),
    @Result(column="update_time", property="updateTime", jdbcType= JdbcType.TIMESTAMP),
    @Result(column="status", property="status", jdbcType= JdbcType.CHAR)
})
List<Menu> selectByExample(MenuCriteria example);
 
開發者ID:RayeWang,項目名稱:easyadmin,代碼行數:16,代碼來源:MenuMapper.java

示例4: select

@Select({
        "select",
        "r.id, r.name, r.create_time, r.creator,u.name as creator, r.description",
        "from role r LEFT JOIN admin_user u ON r.creator=u.id",
        "where r.name like #{query} LIMIT #{begin},#{pagesize}"
})
@Results({
        @Result(column="id", property="id", jdbcType= JdbcType.INTEGER, id=true),
        @Result(column="name", property="name", jdbcType= JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType= JdbcType.TIMESTAMP),
        @Result(column="creator", property="creator", jdbcType= JdbcType.INTEGER),
        @Result(column="description", property="description", jdbcType= JdbcType.VARCHAR)
})
List<Role> select(@Param("begin") int begin, @Param("pagesize") int pageSize, @Param("query") String query);
 
開發者ID:RayeWang,項目名稱:easyadmin,代碼行數:14,代碼來源:RoleMapper.java

示例5: selectByExample

@SelectProvider(type=RoleSqlProvider.class, method="selectByExample")
@Results({
    @Result(column="id", property="id", jdbcType= JdbcType.INTEGER, id=true),
    @Result(column="name", property="name", jdbcType= JdbcType.VARCHAR),
    @Result(column="create_time", property="createTime", jdbcType= JdbcType.TIMESTAMP),
    @Result(column="creator", property="creator", jdbcType= JdbcType.INTEGER),
    @Result(column="update_time", property="updateTime", jdbcType= JdbcType.TIMESTAMP),
    @Result(column="update_user", property="updateUser", jdbcType= JdbcType.INTEGER),
    @Result(column="description", property="description", jdbcType= JdbcType.VARCHAR)
})
List<Role> selectByExample(RoleCriteria example);
 
開發者ID:RayeWang,項目名稱:easyadmin,代碼行數:11,代碼來源:RoleMapper.java

示例6: selectByExample

@SelectProvider(type=AdminUserSqlProvider.class, method="selectByExample")
@Results({
    @Result(column="id", property="id", jdbcType= JdbcType.INTEGER, id=true),
    @Result(column="name", property="name", jdbcType= JdbcType.VARCHAR),
    @Result(column="psw", property="psw", jdbcType= JdbcType.VARCHAR),
    @Result(column="email", property="email", jdbcType= JdbcType.VARCHAR),
    @Result(column="update_time", property="updateTime", jdbcType= JdbcType.TIMESTAMP),
    @Result(column="update_user", property="updateUser", jdbcType= JdbcType.INTEGER),
    @Result(column="creator", property="creator", jdbcType= JdbcType.INTEGER),
    @Result(column="flag", property="flag", jdbcType= JdbcType.INTEGER),
    @Result(column="last_login_time", property="lastLoginTime", jdbcType= JdbcType.TIMESTAMP)
})
List<AdminUser> selectByExample(AdminUserCriteria example);
 
開發者ID:RayeWang,項目名稱:easyadmin,代碼行數:13,代碼來源:AdminUserMapper.java

示例7: JOIN

@Select({"SELECT m.id, m.name, m.url, m.icon, m.menu_type, m.display, m.parent_id, m.status,",
        "r.roleid FROM menu m LEFT JOIN (SELECT roleid,menuid FROM role_menu WHERE roleid=#{roleid})",
        " r ON m.id=r.menuid "})
@Results({
        @Result(column="parent_id", property="parentId", jdbcType= JdbcType.INTEGER)
})
List<Menu> selectByRoleId(int roleId);
 
開發者ID:RayeWang,項目名稱:easyadmin,代碼行數:7,代碼來源:MenuMapper.java

示例8: IN

/**
 *查詢用戶有權限的菜單列表
 * @param userid
 * @return
 */
@Select({"SELECT id, name, url, icon, menu_type, display, parent_id FROM menu WHERE id IN(",
        "SELECT menuid FROM role_menu WHERE roleid IN ",
        "(SELECT roleid FROM user_role WHERE userid=#{userid}) OR roleid=-1) AND menu_type<>'2' AND `status`='1'"})
@Results({
        @Result(column="id", property="id", jdbcType= JdbcType.INTEGER, id=true),
        @Result(column="name", property="name", jdbcType= JdbcType.VARCHAR),
        @Result(column="url", property="url", jdbcType= JdbcType.VARCHAR),
        @Result(column="icon", property="icon", jdbcType= JdbcType.VARCHAR),
        @Result(column="menu_type", property="menuType", jdbcType= JdbcType.CHAR),
        @Result(column="display", property="display", jdbcType= JdbcType.INTEGER),
        @Result(column="parent_id", property="parentId", jdbcType= JdbcType.INTEGER),
        @Result(column="status", property="status", jdbcType= JdbcType.CHAR)
})
List<Menu> selectByUser(int userid);
 
開發者ID:RayeWang,項目名稱:easyadmin,代碼行數:19,代碼來源:MenuMapper.java

示例9: selectByExample

@SelectProvider(type=UserRoleSqlProvider.class, method="selectByExample")
@Results({
    @Result(column="userid", property="userid", jdbcType= JdbcType.INTEGER, id=true),
    @Result(column="roleid", property="roleid", jdbcType= JdbcType.INTEGER, id=true),
    @Result(column="creator", property="creator", jdbcType= JdbcType.INTEGER),
    @Result(column="create_time", property="createTime", jdbcType= JdbcType.TIMESTAMP)
})
List<UserRole> selectByExample(UserRoleCriteria example);
 
開發者ID:RayeWang,項目名稱:easyadmin,代碼行數:8,代碼來源:UserRoleMapper.java

示例10: JOIN

@Select({"SELECT r.id, r.name, r.create_time, r.creator, r.description,u.name creatorUser,u1.userid ",
    "FROM role r LEFT JOIN admin_user u ON r.creator=u.id",
    " LEFT JOIN (SELECT roleid,userid FROM user_role WHERE userid=#{userId}) u1 ON r.id=u1.roleid  "})
@Results({
        @Result(column="id", property="id", jdbcType= JdbcType.INTEGER, id=true),
        @Result(column="name", property="name", jdbcType= JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType= JdbcType.TIMESTAMP),
        @Result(column="creator", property="creator", jdbcType= JdbcType.INTEGER),
        @Result(column="description", property="description", jdbcType= JdbcType.VARCHAR),
        @Result(column = "creatorUser",property = "creatorUser",jdbcType = JdbcType.INTEGER)
})
List<Role> selectByUserId(int userId);
 
開發者ID:RayeWang,項目名稱:easyadmin,代碼行數:12,代碼來源:UserRoleMapper.java

示例11: selectByPrimaryKey

@Select({
    "select",
    "userid, roleid, creator, create_time",
    "from user_role",
    "where userid = #{userid,jdbcType=INTEGER}",
      "and roleid = #{roleid,jdbcType=INTEGER}"
})
@Results({
    @Result(column="userid", property="userid", jdbcType= JdbcType.INTEGER, id=true),
    @Result(column="roleid", property="roleid", jdbcType= JdbcType.INTEGER, id=true),
    @Result(column="creator", property="creator", jdbcType= JdbcType.INTEGER),
    @Result(column="create_time", property="createTime", jdbcType= JdbcType.TIMESTAMP)
})
UserRole selectByPrimaryKey(@Param("userid") Integer userid, @Param("roleid") Integer roleid);
 
開發者ID:RayeWang,項目名稱:easyadmin,代碼行數:14,代碼來源:UserRoleMapper.java

示例12: selectByExample

@SelectProvider(type=RoleMenuSqlProvider.class, method="selectByExample")
@Results({
    @Result(column="menuid", property="menuid", jdbcType= JdbcType.INTEGER, id=true),
    @Result(column="roleid", property="roleid", jdbcType= JdbcType.INTEGER, id=true),
    @Result(column="flag", property="flag", jdbcType= JdbcType.INTEGER),
    @Result(column="creator", property="creator", jdbcType= JdbcType.INTEGER),
    @Result(column="create_time", property="createTime", jdbcType= JdbcType.TIMESTAMP)
})
List<RoleMenu> selectByExample(RoleMenuCriteria example);
 
開發者ID:RayeWang,項目名稱:easyadmin,代碼行數:9,代碼來源:RoleMenuMapper.java

示例13: selectByPrimaryKey

@Select({
    "select",
    "menuid, roleid, flag, creator, create_time",
    "from role_menu",
    "where menuid = #{menuid,jdbcType=INTEGER}",
      "and roleid = #{roleid,jdbcType=INTEGER}"
})
@Results({
    @Result(column="menuid", property="menuid", jdbcType= JdbcType.INTEGER, id=true),
    @Result(column="roleid", property="roleid", jdbcType= JdbcType.INTEGER, id=true),
    @Result(column="flag", property="flag", jdbcType= JdbcType.INTEGER),
    @Result(column="creator", property="creator", jdbcType= JdbcType.INTEGER),
    @Result(column="create_time", property="createTime", jdbcType= JdbcType.TIMESTAMP)
})
RoleMenu selectByPrimaryKey(@Param("menuid") Integer menuid, @Param("roleid") Integer roleid);
 
開發者ID:RayeWang,項目名稱:easyadmin,代碼行數:15,代碼來源:RoleMenuMapper.java

示例14: selectByExample

@SelectProvider(type=UserSqlProvider.class, method="selectByExample")
@Results({
    @Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true),
    @Result(column="username", property="username", jdbcType=JdbcType.VARCHAR),
    @Result(column="password", property="password", jdbcType=JdbcType.VARCHAR),
    @Result(column="role", property="role", jdbcType=JdbcType.INTEGER)
})
List<User> selectByExample(UserExample example);
 
開發者ID:shenhuanet,項目名稱:ssm-server,代碼行數:8,代碼來源:UserMapper.java

示例15: selectByPrimaryKey

/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table SysCode
 *
 * @mbggenerated Wed Jul 12 20:57:03 CST 2017
 */
@Select({
    "select",
    "codeId, codeTypeId, codeName, parentCodeId",
    "from SysCode",
    "where codeId = #{codeId,jdbcType=INTEGER}"
})
@Results({
    @Result(column="codeId", property="codeId", jdbcType=JdbcType.INTEGER, id=true),
    @Result(column="codeTypeId", property="codeTypeId", jdbcType=JdbcType.INTEGER),
    @Result(column="codeName", property="codeName", jdbcType=JdbcType.VARCHAR),
    @Result(column="parentCodeId", property="parentCodeId", jdbcType=JdbcType.INTEGER)
})
SysCode selectByPrimaryKey(Integer codeId);
 
開發者ID:chenyurong,項目名稱:china-district-syscode,代碼行數:19,代碼來源:SysCodeMapper.java


注:本文中的org.apache.ibatis.type.JdbcType.INTEGER屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。