List of usage examples for org.apache.ibatis.type JdbcType TINYINT
JdbcType TINYINT
To view the source code for org.apache.ibatis.type JdbcType TINYINT.
Click Source Link
From source file:com.baifendian.swordfish.dao.mapper.AdHocMapper.java
License:Apache License
/** * ? id //from w w w. j a v a 2s .c o m * * @param id * @return */ @Results(value = { @Result(property = "id", column = "id", id = true, javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "projectId", column = "project_id", id = true, javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "name", column = "name", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "proxyUser", column = "proxy_user", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "queue", column = "queue", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "type", column = "type", typeHandler = EnumOrdinalTypeHandler.class, jdbcType = JdbcType.TINYINT), @Result(property = "status", column = "status", typeHandler = EnumOrdinalTypeHandler.class, jdbcType = JdbcType.TINYINT), @Result(property = "owner", column = "owner", javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "parameter", column = "parameter", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "createTime", column = "create_time", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP), @Result(property = "startTime", column = "start_time", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP), @Result(property = "endTime", column = "end_time", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP), @Result(property = "jobId", column = "job_id", javaType = String.class, jdbcType = JdbcType.VARCHAR) }) @SelectProvider(type = AdHocMapperProvider.class, method = "selectById") AdHoc selectById(@Param("id") int id);
From source file:com.baifendian.swordfish.dao.mapper.AdHocMapper.java
License:Apache License
/** * ? id // ww w . j a v a2 s .co m * * @param execId * @return */ @Results(value = { @Result(property = "execId", column = "exec_id", id = true, javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "index", column = "index", id = true, javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "stm", column = "stm", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "result", column = "result", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "status", column = "status", typeHandler = EnumOrdinalTypeHandler.class, jdbcType = JdbcType.TINYINT), @Result(property = "createTime", column = "create_time", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP), @Result(property = "startTime", column = "start_time", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP), @Result(property = "endTime", column = "end_time", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP) }) @SelectProvider(type = AdHocMapperProvider.class, method = "selectResultById") List<AdHocResult> selectResultById(@Param("execId") int execId);
From source file:com.baifendian.swordfish.dao.mapper.AdHocMapper.java
License:Apache License
/** * search by exec id and index//from w w w. j a va2 s. co m * * @param execId * @param index * @return */ @Results(value = { @Result(property = "execId", column = "exec_id", id = true, javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "index", column = "index", id = true, javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "name", column = "name", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "stm", column = "stm", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "result", column = "result", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "status", column = "status", typeHandler = EnumOrdinalTypeHandler.class, jdbcType = JdbcType.TINYINT), @Result(property = "createTime", column = "create_time", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP), @Result(property = "startTime", column = "start_time", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP), @Result(property = "endTime", column = "end_time", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP) }) @SelectProvider(type = AdHocMapperProvider.class, method = "selectResultByIdAndIndex") AdHocResult selectResultByIdAndIndex(@Param("execId") int execId, @Param("index") int index);
From source file:com.baifendian.swordfish.dao.mapper.AdHocMapper.java
License:Apache License
/** * ? id /*from w ww .j a v a2 s.co m*/ * * @param * @return */ @Results(value = { @Result(property = "id", column = "id", id = true, javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "projectId", column = "project_id", id = true, javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "name", column = "name", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "proxyUser", column = "proxy_user", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "queue", column = "queue", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "status", column = "status", typeHandler = EnumOrdinalTypeHandler.class, jdbcType = JdbcType.TINYINT), @Result(property = "type", column = "type", typeHandler = EnumOrdinalTypeHandler.class, jdbcType = JdbcType.TINYINT), @Result(property = "owner", column = "owner", javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "parameter", column = "parameter", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "createTime", column = "create_time", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP), @Result(property = "startTime", column = "start_time", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP), @Result(property = "endTime", column = "end_time", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP), @Result(property = "jobId", column = "job_id", javaType = String.class, jdbcType = JdbcType.VARCHAR) }) @SelectProvider(type = AdHocMapperProvider.class, method = "selectAdhocByName") List<AdHoc> selectAdhocByName(@Param("projectId") int projectId, @Param("name") String name);
From source file:com.baifendian.swordfish.dao.mapper.AdHocResultMapper.java
License:Apache License
/** * ?( adHocId ) <p>/*from www .ja v a 2s . c o m*/ * * @return */ @Results(value = { @Result(property = "adHocId", column = "exec_id", javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "index", column = "index", javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "status", column = "status", typeHandler = EnumOrdinalTypeHandler.class, javaType = FlowStatus.class, jdbcType = JdbcType.TINYINT), @Result(property = "stm", column = "stm", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "result", column = "result", javaType = String.class, jdbcType = JdbcType.VARCHAR) }) @SelectProvider(type = AdHocResultMapperProvider.class, method = "selectByAdHocId") List<AdHocResult> selectByAdHocId(@Param("adHocId") long adHocId);
From source file:com.baifendian.swordfish.dao.mapper.AdHocResultMapper.java
License:Apache License
@Results(value = { @Result(property = "adHocId", column = "exec_id", javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "index", column = "index", javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "status", column = "status", typeHandler = EnumOrdinalTypeHandler.class, javaType = FlowStatus.class, jdbcType = JdbcType.TINYINT), @Result(property = "stm", column = "stm", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "result", column = "result", javaType = String.class, jdbcType = JdbcType.VARCHAR) }) @SelectProvider(type = AdHocResultMapperProvider.class, method = "selectByAdHocIdAndIndex") List<AdHocResult> selectByAdHocIdAndIndex(@Param("adHocId") long adHocId, @Param("index") int index);
From source file:com.baifendian.swordfish.dao.mapper.ExecutionFlowMapper.java
License:Apache License
/** * ? id /*from www . j a v a2 s . c o m*/ */ @Results(value = { @Result(property = "id", column = "id", id = true, javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "flowId", column = "flow_id", javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "worker", column = "worker", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "projectId", column = "project_id", javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "projectName", column = "project_name", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "status", column = "status", typeHandler = EnumOrdinalTypeHandler.class, javaType = FlowStatus.class, jdbcType = JdbcType.TINYINT), @Result(property = "submitUserId", column = "submit_user", javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "submitUser", column = "submit_user_name", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "owner", column = "owner_name", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "proxyUser", column = "proxy_user", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "submitTime", column = "submit_time", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP), @Result(property = "startTime", column = "start_time", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP), @Result(property = "scheduleTime", column = "schedule_time", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP), @Result(property = "endTime", column = "end_time", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP), @Result(property = "workflowData", column = "workflow_data", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "workflowDataSub", column = "workflow_data_sub", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "type", column = "type", typeHandler = EnumOrdinalTypeHandler.class, javaType = ExecType.class, jdbcType = JdbcType.TINYINT), @Result(property = "failurePolicy", column = "failure_policy", typeHandler = EnumOrdinalTypeHandler.class, javaType = FailurePolicyType.class, jdbcType = JdbcType.TINYINT), @Result(property = "workflowName", column = "flow_name", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "queue", column = "queue", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "userDefinedParams", column = "user_defined_params", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "extras", column = "extras", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "maxTryTimes", column = "max_try_times", javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "timeout", column = "timeout", javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "notifyType", column = "notify_type", typeHandler = EnumOrdinalTypeHandler.class, javaType = NotifyType.class, jdbcType = JdbcType.TINYINT), @Result(property = "notifyMails", column = "notify_mails", javaType = String.class, jdbcType = JdbcType.VARCHAR) }) @SelectProvider(type = ExecutionFlowMapperProvider.class, method = "selectByExecId") ExecutionFlow selectByExecId(@Param("execId") Integer execId);
From source file:com.baifendian.swordfish.dao.mapper.ExecutionFlowMapper.java
License:Apache License
/** * ???/* w ww. ja v a 2 s . c o m*/ */ @Results(value = { @Result(property = "id", column = "id", id = true, javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "flowId", column = "flow_id", javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "worker", column = "worker", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "status", column = "status", typeHandler = EnumOrdinalTypeHandler.class, javaType = FlowStatus.class, jdbcType = JdbcType.TINYINT) }) @SelectProvider(type = ExecutionFlowMapperProvider.class, method = "selectAllNoFinishFlow") List<ExecutionFlow> selectAllNoFinishFlow();
From source file:com.baifendian.swordfish.dao.mapper.ExecutionFlowMapper.java
License:Apache License
/** * ??// w w w .j av a 2 s . c o m */ @Results(value = { @Result(property = "id", column = "id", id = true, javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "flowId", column = "flow_id", javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "worker", column = "worker", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "status", column = "status", typeHandler = EnumOrdinalTypeHandler.class, jdbcType = JdbcType.TINYINT), @Result(property = "scheduleTime", column = "schedule_time", javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "type", column = "type", typeHandler = EnumOrdinalTypeHandler.class, jdbcType = JdbcType.TINYINT) }) @SelectProvider(type = ExecutionFlowMapperProvider.class, method = "selectByFlowIdAndTimes") List<ExecutionFlow> selectByFlowIdAndTimes(@Param("flowId") Integer flowId, @Param("startDate") Date startDate, @Param("endDate") Date endDate);
From source file:com.baifendian.swordfish.dao.mapper.ExecutionFlowMapper.java
License:Apache License
/** * ??// w ww . j ava2s . co m */ @Results(value = { @Result(property = "id", column = "id", id = true, javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "flowId", column = "flow_id", javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "workflowName", column = "flow_name", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "projectName", column = "project_name", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "status", column = "status", typeHandler = EnumOrdinalTypeHandler.class, jdbcType = JdbcType.TINYINT), @Result(property = "worker", column = "worker", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "status", column = "status", typeHandler = EnumOrdinalTypeHandler.class, jdbcType = JdbcType.TINYINT), @Result(property = "scheduleTime", column = "schedule_time", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP), @Result(property = "submitTime", column = "submit_time", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP), @Result(property = "startTime", column = "start_time", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP), @Result(property = "endTime", column = "end_time", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP), @Result(property = "submitUserId", column = "schedule_user", javaType = int.class, jdbcType = JdbcType.INTEGER), @Result(property = "submitUser", column = "submit_user_name", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "proxyUser", column = "proxy_user", javaType = String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "type", column = "type", typeHandler = EnumOrdinalTypeHandler.class, jdbcType = JdbcType.TINYINT) }) @SelectProvider(type = ExecutionFlowMapperProvider.class, method = "selectByFlowIdAndTimesAndStatusLimit") List<ExecutionFlow> selectByFlowIdAndTimesAndStatusLimit(@Param("projectName") String projectName, @Param("workflowList") List<String> workflowList, @Param("startDate") Date startDate, @Param("endDate") Date endDate, @Param("start") int start, @Param("limit") int limit, @Param("status") List<FlowStatus> statuses);