|
@ -14,12 +14,14 @@ import org.jfw.apt.orm.annotation.dao.method.OrderBy;
|
14
|
14
|
import org.jfw.apt.orm.annotation.dao.method.Where;
|
15
|
15
|
import org.jfw.apt.orm.annotation.dao.method.operator.DeleteWith;
|
16
|
16
|
import org.jfw.apt.orm.annotation.dao.method.operator.Insert;
|
|
17
|
import org.jfw.apt.orm.annotation.dao.method.operator.LimitSelect;
|
17
|
18
|
import org.jfw.apt.orm.annotation.dao.method.operator.PageSelect;
|
18
|
19
|
import org.jfw.apt.orm.annotation.dao.method.operator.QueryVal;
|
19
|
20
|
import org.jfw.apt.orm.annotation.dao.method.operator.SelectList;
|
20
|
21
|
import org.jfw.apt.orm.annotation.dao.method.operator.SelectOne;
|
21
|
22
|
import org.jfw.apt.orm.annotation.dao.method.operator.UpdateWith;
|
22
|
23
|
import org.jfw.apt.orm.annotation.dao.param.Alias;
|
|
24
|
import org.jfw.apt.orm.annotation.dao.param.LessThan;
|
23
|
25
|
import org.jfw.apt.orm.annotation.dao.param.Set;
|
24
|
26
|
import org.jfw.apt.orm.core.defaultImpl.IntHandler;
|
25
|
27
|
import org.jfw.util.PageQueryResult;
|
|
@ -41,6 +43,16 @@ public interface UserDao {
|
41
|
43
|
@SelectList
|
42
|
44
|
List<User> queryList(Connection con)throws SQLException;
|
43
|
45
|
|
|
46
|
@LimitSelect
|
|
47
|
@OrderBy("ORDER BY CREATE_TIME DESC")
|
|
48
|
List<User> queryLimit(Connection con,String inviterId,@LessThan String createTime,int rows)throws SQLException;
|
|
49
|
|
|
50
|
@QueryVal
|
|
51
|
@From(User.class)
|
|
52
|
@Column(handlerClass=IntHandler.class,value={"COUNT(1)"})
|
|
53
|
@DefaultValue("0")
|
|
54
|
int queryInviter(Connection con,String inviterId)throws SQLException;
|
|
55
|
|
44
|
56
|
@DeleteWith
|
45
|
57
|
@From(User.class)
|
46
|
58
|
int delete(Connection con, String id) throws SQLException;
|