Example usage for org.apache.ibatis.type JdbcType BIGINT

List of usage examples for org.apache.ibatis.type JdbcType BIGINT

Introduction

In this page you can find the example usage for org.apache.ibatis.type JdbcType BIGINT.

Prototype

JdbcType BIGINT

To view the source code for org.apache.ibatis.type JdbcType BIGINT.

Click Source Link

Usage

From source file:com.blazarquant.bfp.database.dao.UserDAO.java

License:Apache License

@SelectProvider(type = UserSQLProvider.class, method = "buildFindAllUsers")
@ConstructorArgs(value = {//from  w w  w  . j  a  v  a 2 s.  c  o  m
        @Arg(column = "id", javaType = UserID.class, jdbcType = JdbcType.BIGINT, typeHandler = UserIDTypeHandler.class),
        @Arg(column = "user_login", javaType = String.class, jdbcType = JdbcType.VARCHAR),
        @Arg(column = "user_email", javaType = String.class, jdbcType = JdbcType.VARCHAR),
        @Arg(column = "user_pass", javaType = String.class, jdbcType = JdbcType.VARCHAR),
        @Arg(column = "user_status", javaType = UserState.class, jdbcType = JdbcType.INTEGER, typeHandler = ActiveUserTypeHandler.class),
        @Arg(column = "user_registerdate", javaType = Instant.class, jdbcType = JdbcType.BIGINT, typeHandler = InstantTypeHandler.class),
        @Arg(column = "user_lastlogin", javaType = Instant.class, jdbcType = JdbcType.BIGINT, typeHandler = InstantTypeHandler.class) })
List<UserDetails> findAllUsers();

From source file:com.blazarquant.bfp.database.dao.UserDAO.java

License:Apache License

@SelectProvider(type = UserSQLProvider.class, method = "buildFindUserByLogin")
@ConstructorArgs(value = {/*from   w  ww .j  a  v  a 2  s.c om*/
        @Arg(column = "id", javaType = UserID.class, jdbcType = JdbcType.BIGINT, typeHandler = UserIDTypeHandler.class),
        @Arg(column = "user_login", javaType = String.class, jdbcType = JdbcType.VARCHAR),
        @Arg(column = "user_email", javaType = String.class, jdbcType = JdbcType.VARCHAR),
        @Arg(column = "user_pass", javaType = String.class, jdbcType = JdbcType.VARCHAR),
        @Arg(column = "user_status", javaType = UserState.class, jdbcType = JdbcType.INTEGER, typeHandler = ActiveUserTypeHandler.class),
        @Arg(column = "user_registerdate", javaType = Instant.class, jdbcType = JdbcType.BIGINT, typeHandler = InstantTypeHandler.class),
        @Arg(column = "user_lastlogin", javaType = Instant.class, jdbcType = JdbcType.BIGINT, typeHandler = InstantTypeHandler.class) })
UserDetails findUserByLogin(@Param("userName") String userName);

From source file:com.blazarquant.bfp.database.dao.UserDAO.java

License:Apache License

@SelectProvider(type = UserSQLProvider.class, method = "buildFindUserByMail")
@ConstructorArgs(value = {//from   www .j  av a  2  s  .c  o m
        @Arg(column = "id", javaType = UserID.class, jdbcType = JdbcType.BIGINT, typeHandler = UserIDTypeHandler.class),
        @Arg(column = "user_login", javaType = String.class, jdbcType = JdbcType.VARCHAR),
        @Arg(column = "user_email", javaType = String.class, jdbcType = JdbcType.VARCHAR),
        @Arg(column = "user_pass", javaType = String.class, jdbcType = JdbcType.VARCHAR),
        @Arg(column = "user_status", javaType = UserState.class, jdbcType = JdbcType.INTEGER, typeHandler = ActiveUserTypeHandler.class),
        @Arg(column = "user_registerdate", javaType = Instant.class, jdbcType = JdbcType.BIGINT, typeHandler = InstantTypeHandler.class),
        @Arg(column = "user_lastlogin", javaType = Instant.class, jdbcType = JdbcType.BIGINT, typeHandler = InstantTypeHandler.class) })
UserDetails findUserByMail(@Param("userMail") String userMail);

From source file:com.blazarquant.bfp.database.dao.UserDAO.java

License:Apache License

@SelectProvider(type = UserSQLProvider.class, method = "buildFindUserIDByLogin")
@ConstructorArgs(value = { @Arg(column = "ID", javaType = long.class, jdbcType = JdbcType.BIGINT), })
UserID findUserIDByLogin(@Param("userName") String userName);

From source file:com.blazarquant.bfp.database.dao.UserDAO.java

License:Apache License

@SelectProvider(type = UserSQLProvider.class, method = "buildFindUserById")
@ConstructorArgs(value = {//from   www  .  j  a  v  a 2s  . com
        @Arg(column = "id", javaType = UserID.class, jdbcType = JdbcType.BIGINT, typeHandler = UserIDTypeHandler.class),
        @Arg(column = "user_login", javaType = String.class, jdbcType = JdbcType.VARCHAR),
        @Arg(column = "user_email", javaType = String.class, jdbcType = JdbcType.VARCHAR),
        @Arg(column = "user_pass", javaType = String.class, jdbcType = JdbcType.VARCHAR),
        @Arg(column = "user_status", javaType = UserState.class, jdbcType = JdbcType.INTEGER, typeHandler = ActiveUserTypeHandler.class),
        @Arg(column = "user_registerdate", javaType = Instant.class, jdbcType = JdbcType.BIGINT, typeHandler = InstantTypeHandler.class),
        @Arg(column = "user_lastlogin", javaType = Instant.class, jdbcType = JdbcType.BIGINT, typeHandler = InstantTypeHandler.class) })
UserDetails findUserById(@Param("userId") UserID userID);

From source file:com.google.code.mybatis.generator.plugins.gen.BlogMapper.java

License:Apache License

/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table T_BLOG
 *
 * @mbggenerated Sat Feb 15 18:24:35 CET 2014
 *//*from w w  w .j  a va  2s.co  m*/
@SelectProvider(type = BlogSqlProvider.class, method = "selectByExampleDecorated")
@Results({ @Result(column = "ID", property = "id", jdbcType = JdbcType.BIGINT, id = true),
        @Result(column = "NAME", property = "name", jdbcType = JdbcType.VARCHAR),
        @Result(column = "URL", property = "url", jdbcType = JdbcType.VARCHAR),
        @Result(column = "DESCRIPTION", property = "description", jdbcType = JdbcType.VARCHAR),
        @Result(column = "OWNER_ID", property = "ownerId", jdbcType = JdbcType.BIGINT) })
List<Blog> selectByExampleDecorated(BlogExample example);

From source file:com.google.code.mybatis.generator.plugins.gen.BlogMapper.java

License:Apache License

/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table T_BLOG
 *
 * @mbggenerated Sat Feb 15 18:24:35 CET 2014
 *///from   w w w  .  j  ava  2  s  .  co m
@SelectProvider(type = BlogSqlProvider.class, method = "selectByExample")
@Results({ @Result(column = "ID", property = "id", jdbcType = JdbcType.BIGINT, id = true),
        @Result(column = "NAME", property = "name", jdbcType = JdbcType.VARCHAR),
        @Result(column = "URL", property = "url", jdbcType = JdbcType.VARCHAR),
        @Result(column = "DESCRIPTION", property = "description", jdbcType = JdbcType.VARCHAR),
        @Result(column = "OWNER_ID", property = "ownerId", jdbcType = JdbcType.BIGINT) })
List<Blog> selectByExample(BlogExample example);

From source file:com.google.code.mybatis.generator.plugins.gen.BlogMapper.java

License:Apache License

/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table T_BLOG
 *
 * @mbggenerated Sat Feb 15 18:24:35 CET 2014
 *//*from   w ww. j av  a  2  s . c o  m*/
@Select({ "select", "ID, NAME, URL, DESCRIPTION, OWNER_ID", "from T_BLOG", "where ID = #{id,jdbcType=BIGINT}" })
@Results({ @Result(column = "ID", property = "id", jdbcType = JdbcType.BIGINT, id = true),
        @Result(column = "NAME", property = "name", jdbcType = JdbcType.VARCHAR),
        @Result(column = "URL", property = "url", jdbcType = JdbcType.VARCHAR),
        @Result(column = "DESCRIPTION", property = "description", jdbcType = JdbcType.VARCHAR),
        @Result(column = "OWNER_ID", property = "ownerId", jdbcType = JdbcType.BIGINT) })
Blog selectByPrimaryKey(Long id);

From source file:com.google.code.mybatis.generator.plugins.gen.UserMapper.java

License:Apache License

/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table T_USER
 *
 * @mbggenerated Sat Feb 15 18:24:35 CET 2014
 *///from www  .  j a va2  s .c o  m
@SelectProvider(type = UserSqlProvider.class, method = "selectByExample")
@Results({ @Result(column = "ID", property = "id", jdbcType = JdbcType.BIGINT, id = true),
        @Result(column = "USERNAME", property = "username", jdbcType = JdbcType.VARCHAR),
        @Result(column = "ALIAS", property = "alias", jdbcType = JdbcType.VARCHAR),
        @Result(column = "PASSWORD", property = "password", jdbcType = JdbcType.VARCHAR),
        @Result(column = "EMAIL", property = "email", jdbcType = JdbcType.VARCHAR) })
@Options(fetchSize = 1, timeout = 0, useCache = true, flushCache = true)
User selectOnlyOneByExample(UserExample example);

From source file:com.google.code.mybatis.generator.plugins.gen.UserMapper.java

License:Apache License

/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table T_USER
 *
 * @mbggenerated Sat Feb 15 18:24:35 CET 2014
 *//* w w w . j av a 2s . c om*/
@SelectProvider(type = UserSqlProvider.class, method = "selectByExampleDecorated")
@Results({ @Result(column = "ID", property = "id", jdbcType = JdbcType.BIGINT, id = true),
        @Result(column = "USERNAME", property = "username", jdbcType = JdbcType.VARCHAR),
        @Result(column = "ALIAS", property = "alias", jdbcType = JdbcType.VARCHAR),
        @Result(column = "PASSWORD", property = "password", jdbcType = JdbcType.VARCHAR),
        @Result(column = "EMAIL", property = "email", jdbcType = JdbcType.VARCHAR) })
@Options(fetchSize = 1, timeout = 0, useCache = true, flushCache = true)
List<User> selectByExampleDecorated(UserExample example);