Java源码示例:org.seasar.doma.Select

示例1
@Select
List<Guestbook> selectAll();
 
示例2
public SelectAnnot newSelectAnnot(ExecutableElement method) {
  assertNotNull(method);
  return newInstance(method, Select.class, SelectAnnot::new);
}
 
示例3
@Select
Emp selectById(Integer id, SelectOptions option);
 
示例4
@SuppressWarnings("rawtypes")
@Select
List<Height> select();
 
示例5
@Select
List<Emp> selectByExample(Emp emp);
 
示例6
@Select
Emp selectById(Integer id, SelectOptions options);
 
示例7
@Override
@Select
public Emp selectById(Integer id, SelectOptions options);
 
示例8
@Select
Stream<PhoneNumber> selectById(Integer id);
 
示例9
@Select
PhoneNumber selectSingleResult();
 
示例10
@Select
Optional<PhoneNumber> selectOptionalSingleResult();
 
示例11
@Select
List<PhoneNumber> selectResultList();
 
示例12
@Select
List<Optional<PhoneNumber>> selectOptionalResultList();
 
示例13
@Select
Emp selectById(Integer id);
 
示例14
@Select(ensureResult = true)
Emp selectById(Integer id, SelectOptions options);
 
示例15
@Select(ensureResult = true)
List<Emp> selectByNameAndSalary(String name, BigDecimal salary, SelectOptions options);
 
示例16
@Select
Emp select(Integer id);
 
示例17
@Select
Emp selectById(Optional<Integer> id, SelectOptions options);
 
示例18
@SuppressWarnings("rawtypes")
@Select
Height select();
 
示例19
@Select(strategy = SelectType.COLLECT)
Integer selectByIdAndName(Integer id, String name, Collector<Emp, ?, Integer> collector);
 
示例20
@Select(strategy = SelectType.COLLECT, mapKeyNaming = MapKeyNamingType.CAMEL_CASE)
<R> R selectByIdAsMap(Integer id, Collector<Map<String, Object>, ?, R> collector);
 
示例21
@Select(strategy = SelectType.STREAM)
<R> R selectById(Integer id, Function<Stream<PhoneNumber>, R> mapper);
 
示例22
@Select(strategy = SelectType.STREAM)
<R extends Number> R select(Function<Stream<String>, R> mapper);
 
示例23
@Select
List<Emp> selectByNameAndSalary(String name, BigDecimal salary, SelectOptions option);
 
示例24
@Select(strategy = SelectType.STREAM, mapKeyNaming = MapKeyNamingType.CAMEL_CASE)
<R> R selectByIdAsMap(Integer id, Function<Stream<Map<String, Object>>, R> callback);
 
示例25
@Select(ensureResultMapping = true)
Emp selectById(Integer id, SelectOptions options);
 
示例26
@Select(ensureResultMapping = true)
List<Emp> selectByNameAndSalary(String name, BigDecimal salary, SelectOptions options);
 
示例27
@Select
String select(String name, String... keywords);
 
示例28
@Select(mapKeyNaming = MapKeyNamingType.CAMEL_CASE)
Map<String, Object> selectById(Integer id, SelectOptions options);
 
示例29
@Select
List<Map<String, Object>> selectByNameAndSalary(
    String name, BigDecimal salary, SelectOptions options);
 
示例30
@Select
Map<String, Object> selectSingleResult();