本文整理汇总了Java中org.apache.ibatis.annotations.SelectProvider类的典型用法代码示例。如果您正苦于以下问题:Java SelectProvider类的具体用法?Java SelectProvider怎么用?Java SelectProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SelectProvider类属于org.apache.ibatis.annotations包,在下文中一共展示了SelectProvider类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: selectByExample
import org.apache.ibatis.annotations.SelectProvider; //导入依赖的package包/类
@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);
示例2: selectByExampleWithRowbounds
import org.apache.ibatis.annotations.SelectProvider; //导入依赖的package包/类
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table SQLTOOL_METADATA
*
* @mbggenerated
*/
@SelectProvider(type=SqltoolMetadataSqlProvider.class, method="selectByExample")
@Results({
@Result(column="ID", property="id", jdbcType=JdbcType.INTEGER, id=true),
@Result(column="SQL_TYPE", property="sqlType", jdbcType=JdbcType.VARCHAR),
@Result(column="NAME", property="name", jdbcType=JdbcType.VARCHAR),
@Result(column="DESCRIPTION", property="description", jdbcType=JdbcType.VARCHAR),
@Result(column="OWNED_BY", property="ownedBy", jdbcType=JdbcType.VARCHAR),
@Result(column="PUBLISHED_FLG", property="publishedFlg", jdbcType=JdbcType.INTEGER),
@Result(column="REGISTERED_AT", property="registeredAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="UPDATED_AT", property="updatedAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="CREATED_AT", property="createdAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="LOCK_VERSION", property="lockVersion", jdbcType=JdbcType.INTEGER),
@Result(column="DELETED_FLG", property="deletedFlg", jdbcType=JdbcType.INTEGER)
})
List<SqltoolMetadata> selectByExampleWithRowbounds(SqltoolMetadataCriteria example, RowBounds rowBounds);
示例3: selectByExample
import org.apache.ibatis.annotations.SelectProvider; //导入依赖的package包/类
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ZIPCD_MASTER
*
* @mbggenerated
*/
@SelectProvider(type=ZipcdMasterSqlProvider.class, method="selectByExample")
@Results({
@Result(column="ID", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="CITY_CD", property="cityCd", jdbcType=JdbcType.INTEGER),
@Result(column="ZIPCD", property="zipcd", jdbcType=JdbcType.VARCHAR),
@Result(column="PREF", property="pref", jdbcType=JdbcType.VARCHAR),
@Result(column="CITY", property="city", jdbcType=JdbcType.VARCHAR),
@Result(column="ADDR", property="addr", jdbcType=JdbcType.VARCHAR),
@Result(column="PREF_KANA", property="prefKana", jdbcType=JdbcType.VARCHAR),
@Result(column="CITY_KANA", property="cityKana", jdbcType=JdbcType.VARCHAR),
@Result(column="ADDR_KANA", property="addrKana", jdbcType=JdbcType.VARCHAR),
@Result(column="UPDATED_AT", property="updatedAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="CREATED_AT", property="createdAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="LOCK_VERSION", property="lockVersion", jdbcType=JdbcType.INTEGER),
@Result(column="DELETED_FLG", property="deletedFlg", jdbcType=JdbcType.INTEGER)
})
List<ZipcdMaster> selectByExample(ZipcdMasterCriteria example);
示例4: getSqlCommandType
import org.apache.ibatis.annotations.SelectProvider; //导入依赖的package包/类
private SqlCommandType getSqlCommandType(Method method) {
Class<? extends Annotation> type = getSqlAnnotationType(method);
if (type == null) {
type = getSqlProviderAnnotationType(method);
if (type == null) {
return SqlCommandType.UNKNOWN;
}
if (type == SelectProvider.class) {
type = Select.class;
} else if (type == InsertProvider.class) {
type = Insert.class;
} else if (type == UpdateProvider.class) {
type = Update.class;
} else if (type == DeleteProvider.class) {
type = Delete.class;
}
}
return SqlCommandType.valueOf(type.getSimpleName().toUpperCase(Locale.ENGLISH));
}
示例5: MapperAnnotationBuilder
import org.apache.ibatis.annotations.SelectProvider; //导入依赖的package包/类
public MapperAnnotationBuilder(Configuration configuration, Class<?> type) {
String resource = type.getName().replace('.', '/') + ".java (best guess)";
this.assistant = new MapperBuilderAssistant(configuration, resource);
this.configuration = configuration;
this.type = type;
sqlAnnotationTypes.add(Select.class);
sqlAnnotationTypes.add(Insert.class);
sqlAnnotationTypes.add(Update.class);
sqlAnnotationTypes.add(Delete.class);
sqlProviderAnnotationTypes.add(SelectProvider.class);
sqlProviderAnnotationTypes.add(InsertProvider.class);
sqlProviderAnnotationTypes.add(UpdateProvider.class);
sqlProviderAnnotationTypes.add(DeleteProvider.class);
}
示例6: getSqlCommandType
import org.apache.ibatis.annotations.SelectProvider; //导入依赖的package包/类
private SqlCommandType getSqlCommandType(Method method) {
Class<? extends Annotation> type = getSqlAnnotationType(method);
if (type == null) {
type = getSqlProviderAnnotationType(method);
if (type == null) {
return SqlCommandType.UNKNOWN;
}
if (type == SelectProvider.class) {
type = Select.class;
} else if (type == InsertProvider.class) {
type = Insert.class;
} else if (type == UpdateProvider.class) {
type = Update.class;
} else if (type == DeleteProvider.class) {
type = Delete.class;
}
}
return SqlCommandType.valueOf(type.getSimpleName().toUpperCase(Locale.ENGLISH));
}
示例7: MybatisMapperAnnotationBuilder
import org.apache.ibatis.annotations.SelectProvider; //导入依赖的package包/类
public MybatisMapperAnnotationBuilder(Configuration configuration, Class<?> type) {
// 执行父类
super(configuration, type);
String resource = type.getName().replace('.', '/') + ".java (best guess)";
this.assistant = new MapperBuilderAssistant(configuration, resource);
this.configuration = configuration;
this.type = type;
sqlAnnotationTypes.add(Select.class);
sqlAnnotationTypes.add(Insert.class);
sqlAnnotationTypes.add(Update.class);
sqlAnnotationTypes.add(Delete.class);
sqlProviderAnnotationTypes.add(SelectProvider.class);
sqlProviderAnnotationTypes.add(InsertProvider.class);
sqlProviderAnnotationTypes.add(UpdateProvider.class);
sqlProviderAnnotationTypes.add(DeleteProvider.class);
}
示例8: selectByExample
import org.apache.ibatis.annotations.SelectProvider; //导入依赖的package包/类
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table MAIL_LOG
*
* @mbggenerated
*/
@SelectProvider(type=MailLogSqlProvider.class, method="selectByExample")
@Results({
@Result(column="ID", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="LAUNCHED_BY", property="launchedBy", jdbcType=JdbcType.VARCHAR),
@Result(column="LAUNCHED_AT", property="launchedAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="MAIL_STATUS", property="mailStatus", jdbcType=JdbcType.INTEGER),
@Result(column="MESSAGE_NAME", property="messageName", jdbcType=JdbcType.VARCHAR),
@Result(column="SCHEDULED_AT", property="scheduledAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="SENT_AT", property="sentAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="FROM_ADDR", property="fromAddr", jdbcType=JdbcType.VARCHAR),
@Result(column="REPLY_TO_ADDR", property="replyToAddr", jdbcType=JdbcType.VARCHAR),
@Result(column="SUBJECT", property="subject", jdbcType=JdbcType.VARCHAR),
@Result(column="BODY", property="body", jdbcType=JdbcType.VARCHAR),
@Result(column="UPDATED_AT", property="updatedAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="CREATED_AT", property="createdAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="LOCK_VERSION", property="lockVersion", jdbcType=JdbcType.INTEGER),
@Result(column="DELETED_FLG", property="deletedFlg", jdbcType=JdbcType.INTEGER)
})
List<MailLog> selectByExample(MailLogCriteria example);
示例9: selectByExampleWithRowbounds
import org.apache.ibatis.annotations.SelectProvider; //导入依赖的package包/类
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table MAIL_LOG
*
* @mbggenerated
*/
@SelectProvider(type=MailLogSqlProvider.class, method="selectByExample")
@Results({
@Result(column="ID", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="LAUNCHED_BY", property="launchedBy", jdbcType=JdbcType.VARCHAR),
@Result(column="LAUNCHED_AT", property="launchedAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="MAIL_STATUS", property="mailStatus", jdbcType=JdbcType.INTEGER),
@Result(column="MESSAGE_NAME", property="messageName", jdbcType=JdbcType.VARCHAR),
@Result(column="SCHEDULED_AT", property="scheduledAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="SENT_AT", property="sentAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="FROM_ADDR", property="fromAddr", jdbcType=JdbcType.VARCHAR),
@Result(column="SUBJECT", property="subject", jdbcType=JdbcType.VARCHAR),
@Result(column="BODY", property="body", jdbcType=JdbcType.VARCHAR),
@Result(column="UPDATED_AT", property="updatedAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="CREATED_AT", property="createdAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="LOCK_VERSION", property="lockVersion", jdbcType=JdbcType.INTEGER),
@Result(column="DELETED_FLG", property="deletedFlg", jdbcType=JdbcType.INTEGER)
})
List<MailLog> selectByExampleWithRowbounds(MailLogCriteria example, RowBounds rowBounds);
示例10: selectByExampleWithRowbounds
import org.apache.ibatis.annotations.SelectProvider; //导入依赖的package包/类
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ASYNC_PROCESS
*
* @mbggenerated
*/
@SelectProvider(type=AsyncProcessSqlProvider.class, method="selectByExample")
@Results({
@Result(column="ID", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="LAUNCHED_BY", property="launchedBy", jdbcType=JdbcType.VARCHAR),
@Result(column="DESCRIPTION", property="description", jdbcType=JdbcType.VARCHAR),
@Result(column="ASYNC_TYPE", property="asyncType", jdbcType=JdbcType.VARCHAR),
@Result(column="ASYNC_STATUS", property="asyncStatus", jdbcType=JdbcType.VARCHAR),
@Result(column="REGISTERED_AT", property="registeredAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="LAUNCHED_AT", property="launchedAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="STARTED_AT", property="startedAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="FINISHED_AT", property="finishedAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="UPDATED_AT", property="updatedAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="CREATED_AT", property="createdAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="LOCK_VERSION", property="lockVersion", jdbcType=JdbcType.INTEGER),
@Result(column="DELETED_FLG", property="deletedFlg", jdbcType=JdbcType.INTEGER)
})
List<AsyncProcess> selectByExampleWithRowbounds(AsyncProcessCriteria example, RowBounds rowBounds);
示例11: selectByExampleWithRowbounds
import org.apache.ibatis.annotations.SelectProvider; //导入依赖的package包/类
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ASYNC_PROCESS_FILE
*
* @mbggenerated
*/
@SelectProvider(type=AsyncProcessFileSqlProvider.class, method="selectByExample")
@Results({
@Result(column="ID", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="ASYNC_ID", property="asyncId", jdbcType=JdbcType.BIGINT),
@Result(column="HANDLER_NAME", property="handlerName", jdbcType=JdbcType.VARCHAR),
@Result(column="PARAM_NAME", property="paramName", jdbcType=JdbcType.VARCHAR),
@Result(column="ORIGINAL_FILENAME", property="originalFilename", jdbcType=JdbcType.VARCHAR),
@Result(column="CONTENT_TYPE", property="contentType", jdbcType=JdbcType.VARCHAR),
@Result(column="FILE_SIZE", property="fileSize", jdbcType=JdbcType.BIGINT),
@Result(column="UPDATED_AT", property="updatedAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="CREATED_AT", property="createdAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="LOCK_VERSION", property="lockVersion", jdbcType=JdbcType.INTEGER),
@Result(column="DELETED_FLG", property="deletedFlg", jdbcType=JdbcType.INTEGER)
})
List<AsyncProcessFile> selectByExampleWithRowbounds(AsyncProcessFileCriteria example, RowBounds rowBounds);
示例12: selectByExampleWithRowbounds
import org.apache.ibatis.annotations.SelectProvider; //导入依赖的package包/类
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table MAIL_LOG
*
* @mbggenerated
*/
@SelectProvider(type=MailLogSqlProvider.class, method="selectByExample")
@Results({
@Result(column="ID", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="LAUNCHED_BY", property="launchedBy", jdbcType=JdbcType.VARCHAR),
@Result(column="LAUNCHED_AT", property="launchedAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="MAIL_STATUS", property="mailStatus", jdbcType=JdbcType.INTEGER),
@Result(column="MESSAGE_NAME", property="messageName", jdbcType=JdbcType.VARCHAR),
@Result(column="SCHEDULED_AT", property="scheduledAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="SENT_AT", property="sentAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="FROM_ADDR", property="fromAddr", jdbcType=JdbcType.VARCHAR),
@Result(column="REPLY_TO_ADDR", property="replyToAddr", jdbcType=JdbcType.VARCHAR),
@Result(column="SUBJECT", property="subject", jdbcType=JdbcType.VARCHAR),
@Result(column="BODY", property="body", jdbcType=JdbcType.VARCHAR),
@Result(column="UPDATED_AT", property="updatedAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="CREATED_AT", property="createdAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="LOCK_VERSION", property="lockVersion", jdbcType=JdbcType.INTEGER),
@Result(column="DELETED_FLG", property="deletedFlg", jdbcType=JdbcType.INTEGER)
})
List<MailLog> selectByExampleWithRowbounds(MailLogCriteria example, RowBounds rowBounds);
示例13: selectByExample
import org.apache.ibatis.annotations.SelectProvider; //导入依赖的package包/类
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ASYNC_PROCESS
*
* @mbggenerated
*/
@SelectProvider(type=AsyncProcessSqlProvider.class, method="selectByExample")
@Results({
@Result(column="ID", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="LAUNCHED_BY", property="launchedBy", jdbcType=JdbcType.VARCHAR),
@Result(column="DESCRIPTION", property="description", jdbcType=JdbcType.VARCHAR),
@Result(column="ASYNC_TYPE", property="asyncType", jdbcType=JdbcType.VARCHAR),
@Result(column="ASYNC_STATUS", property="asyncStatus", jdbcType=JdbcType.VARCHAR),
@Result(column="REGISTERED_AT", property="registeredAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="LAUNCHED_AT", property="launchedAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="STARTED_AT", property="startedAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="FINISHED_AT", property="finishedAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="UPDATED_AT", property="updatedAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="CREATED_AT", property="createdAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="LOCK_VERSION", property="lockVersion", jdbcType=JdbcType.INTEGER),
@Result(column="DELETED_FLG", property="deletedFlg", jdbcType=JdbcType.INTEGER)
})
List<AsyncProcess> selectByExample(AsyncProcessCriteria example);
示例14: selectByExampleWithRowbounds
import org.apache.ibatis.annotations.SelectProvider; //导入依赖的package包/类
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ZIPCD_MASTER
*
* @mbggenerated
*/
@SelectProvider(type=ZipcdMasterSqlProvider.class, method="selectByExample")
@Results({
@Result(column="ID", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="CITY_CD", property="cityCd", jdbcType=JdbcType.INTEGER),
@Result(column="ZIPCD", property="zipcd", jdbcType=JdbcType.VARCHAR),
@Result(column="PREF", property="pref", jdbcType=JdbcType.VARCHAR),
@Result(column="CITY", property="city", jdbcType=JdbcType.VARCHAR),
@Result(column="ADDR", property="addr", jdbcType=JdbcType.VARCHAR),
@Result(column="PREF_KANA", property="prefKana", jdbcType=JdbcType.VARCHAR),
@Result(column="CITY_KANA", property="cityKana", jdbcType=JdbcType.VARCHAR),
@Result(column="ADDR_KANA", property="addrKana", jdbcType=JdbcType.VARCHAR),
@Result(column="UPDATED_AT", property="updatedAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="CREATED_AT", property="createdAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="LOCK_VERSION", property="lockVersion", jdbcType=JdbcType.INTEGER),
@Result(column="DELETED_FLG", property="deletedFlg", jdbcType=JdbcType.INTEGER)
})
List<ZipcdMaster> selectByExampleWithRowbounds(ZipcdMasterCriteria example, RowBounds rowBounds);
示例15: selectByExample
import org.apache.ibatis.annotations.SelectProvider; //导入依赖的package包/类
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ASYNC_PROCESS_FILE
*
* @mbggenerated
*/
@SelectProvider(type=AsyncProcessFileSqlProvider.class, method="selectByExample")
@Results({
@Result(column="ID", property="id", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="ASYNC_ID", property="asyncId", jdbcType=JdbcType.BIGINT),
@Result(column="HANDLER_NAME", property="handlerName", jdbcType=JdbcType.VARCHAR),
@Result(column="PARAM_NAME", property="paramName", jdbcType=JdbcType.VARCHAR),
@Result(column="ORIGINAL_FILENAME", property="originalFilename", jdbcType=JdbcType.VARCHAR),
@Result(column="CONTENT_TYPE", property="contentType", jdbcType=JdbcType.VARCHAR),
@Result(column="FILE_SIZE", property="fileSize", jdbcType=JdbcType.BIGINT),
@Result(column="UPDATED_AT", property="updatedAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="CREATED_AT", property="createdAt", jdbcType=JdbcType.TIMESTAMP),
@Result(column="LOCK_VERSION", property="lockVersion", jdbcType=JdbcType.INTEGER),
@Result(column="DELETED_FLG", property="deletedFlg", jdbcType=JdbcType.INTEGER)
})
List<AsyncProcessFile> selectByExample(AsyncProcessFileCriteria example);