My favorites | Sign in
Project Home Downloads Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**
* Copyright (C) 2010 altuure <altuure [AT] gmail [DOT] com> http://www.altuure.com/projects/yagdao
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.altuure.yagdao.dao;

import com.altuure.yagdao.*;
import com.altuure.yagdao.model.SimpleBean;

import java.util.List;

/**
* sample dao for test
* @see SimpleBean
*/
public interface SimpleBeanAppendDAO extends GenericDAO<SimpleBean, Long> {

/***
* check if old version compatible
* @param arg1
* @return
*/
@YMethod(type = YMethodType.APPEND)
SearchResultList<SimpleBean> append0(@YParameter("pbyte>=?") byte arg1,@YParameter("pbyte<=?") byte arg2);
/**
* Sample criteria builder
* @param arg1 optional parameter 1
* @return list of entities
*/
@YMethod(type = YMethodType.APPEND,select = "pbyte")
SearchResultList append1(@YParameter("pbyte>=?") byte arg1,@YParameter("pbyte<=?") byte arg2);

@YMethod(type = YMethodType.APPEND,select = "pbyte,count(id)",groupBy = "pbyte")
List<SimpleBean> append2(@YParameter("pint>=?") int i);

@YMethod(type = YMethodType.APPEND,select = "pbyte,count(id)",groupBy = "pbyte",having = "count(id)>10")
List<SimpleBean> append3(@YParameter("pint>=?") int i);

@YMethod(type = YMethodType.APPEND)
List<SimpleBean> append4_1(@YParameter("pstringNullable is null")YApply aTrue);

@YMethod(type = YMethodType.APPEND)
List<SimpleBean> append4_2(@YParameter(value="pstringNullable = ?",acceptNull = true)String txt);

@YMethod(type = YMethodType.APPEND,orderBy = "id desc")
SearchResultList appendPage1(@YParameter("pbyte>=?") byte arg1,YLimit limit);


}

Change log

r59 by mcakkan on Dec 9, 2010   Diff
[maven-release-plugin]  copy for tag
com.altuure.yagdao-0.3
Go to: 
Project members, sign in to write a code review

Older revisions

r57 by mcakkan on Dec 9, 2010   Diff
0.3 release
r55 by mcakkan on Dec 9, 2010   Diff
appaned query result set handling and
paging
r54 by mcakkan on Dec 4, 2010   Diff
acceptNull
All revisions of this file

File info

Size: 2243 bytes, 61 lines
Powered by Google Project Hosting