本文整理汇总了Java中org.seasar.doma.jdbc.Result类的典型用法代码示例。如果您正苦于以下问题:Java Result类的具体用法?Java Result怎么用?Java Result使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Result类属于org.seasar.doma.jdbc包,在下文中一共展示了Result类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isResult
import org.seasar.doma.jdbc.Result; //导入依赖的package包/类
public boolean isResult(EntityCtType entityCtType) {
if (!TypeMirrorUtil.isSameType(env.getTypeUtils().erasure(type),
Result.class, env)) {
return false;
}
DeclaredType declaredType = TypeMirrorUtil.toDeclaredType(type, env);
if (declaredType == null) {
return false;
}
List<? extends TypeMirror> typeArgs = declaredType.getTypeArguments();
if (typeArgs.size() != 1) {
return false;
}
TypeMirror typeArg = typeArgs.get(0);
return TypeMirrorUtil.isSameType(typeArg, entityCtType.getTypeMirror(),
env);
}
示例2: close
import org.seasar.doma.jdbc.Result; //导入依赖的package包/类
@Transactional
public Optional<Todo> close(Key<Todo> id) {
return dao.selectById(id)
.map(entity -> entity.close(LocalDateTime.now(clock)))
.map(dao::update)
.map(Result::getEntity);
}
示例3: insert
import org.seasar.doma.jdbc.Result; //导入依赖的package包/类
@Insert
Result<DemoEntity> insert(DemoEntity entity);
示例4: insert
import org.seasar.doma.jdbc.Result; //导入依赖的package包/类
@Insert
Result<Todo> insert(Todo entity);
示例5: update
import org.seasar.doma.jdbc.Result; //导入依赖的package包/类
@Update
Result<Todo> update(Todo entity);
示例6: insert
import org.seasar.doma.jdbc.Result; //导入依赖的package包/类
@Insert
Result<ImmutableEmp> insert(ImmutableEmp emp);
示例7: update
import org.seasar.doma.jdbc.Result; //导入依赖的package包/类
@Delete
Result<ImmutableEmp> update(ImmutableEmp emp);
示例8: delete
import org.seasar.doma.jdbc.Result; //导入依赖的package包/类
@Update
Result<ImmutableEmp> delete(ImmutableEmp emp);
示例9: insert2
import org.seasar.doma.jdbc.Result; //导入依赖的package包/类
@Insert(sqlFile = true)
Result<ImmutableEmp> insert2(ImmutableEmp emp);
示例10: update2
import org.seasar.doma.jdbc.Result; //导入依赖的package包/类
@Update(sqlFile = true)
Result<ImmutableEmp> update2(ImmutableEmp emp);
示例11: delete2
import org.seasar.doma.jdbc.Result; //导入依赖的package包/类
@Delete(sqlFile = true)
Result<ImmutableEmp> delete2(ImmutableEmp emp);
示例12: save
import org.seasar.doma.jdbc.Result; //导入依赖的package包/类
@Insert
public Result<Emp> save(Emp emp);