Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,791 changed files
with
21,744 additions
and
11,452 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file modified
0
sts/src/main/java/org/jwebtop/core2/model/Configuration.hbm.xml
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
sts/src/main/java/org/zengsource/umllearning/core/dao/AuthorityDao.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.zengsource.umllearning.core.dao; | ||
|
||
import org.zengsource.umllearning.core.model.Authority; | ||
|
||
public interface AuthorityDao { | ||
|
||
public void save(Authority auth); | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
sts/src/main/java/org/zengsource/umllearning/core/dao/CommentDao.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* | ||
*/ | ||
package org.zengsource.umllearning.core.dao; | ||
|
||
import java.util.List; | ||
|
||
import org.zengsource.umllearning.core.model.Comment; | ||
|
||
/** | ||
* @author hzucmj | ||
* | ||
*/ | ||
public interface CommentDao { | ||
|
||
public void addComment(Comment c); | ||
|
||
public List<Comment> queryAll(String hql, int start, int limit); | ||
|
||
public Long queryCount(String hql); | ||
|
||
public List<?> queryComment(String q, int start, int limit); | ||
} |
24 changes: 24 additions & 0 deletions
24
sts/src/main/java/org/zengsource/umllearning/core/dao/FollowDao.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.zengsource.umllearning.core.dao; | ||
|
||
import java.util.List; | ||
|
||
import org.zengsource.umllearning.core.model.Follow; | ||
|
||
public interface FollowDao { | ||
/** | ||
* @author swyma | ||
*/ | ||
|
||
|
||
//取得总数 | ||
public Long getCount(String hql); | ||
|
||
//分页取数据 | ||
public List<?> queryFollow(String hql,int start,int limit); | ||
|
||
//addFollower | ||
public void save(Follow follow); | ||
|
||
//deleteFollower | ||
public void delete(String hql); | ||
} |
21 changes: 21 additions & 0 deletions
21
sts/src/main/java/org/zengsource/umllearning/core/dao/HomeworkDao.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* | ||
*/ | ||
package org.zengsource.umllearning.core.dao; | ||
|
||
import org.zengsource.umllearning.core.model.Homework; | ||
import org.zengsource.umllearning.core.model.Task; | ||
|
||
/** | ||
* @author hzucmj | ||
* | ||
*/ | ||
public interface HomeworkDao { | ||
|
||
public Homework queryById(String id); | ||
|
||
public void saveHomework(Homework h); | ||
|
||
public void doTask(Task t, Homework h); | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
sts/src/main/java/org/zengsource/umllearning/core/dao/RegisterDao.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.zengsource.umllearning.core.dao; | ||
|
||
import java.math.BigInteger; | ||
import java.util.List; | ||
|
||
import org.zengsource.umllearning.core.model.Register; | ||
|
||
public interface RegisterDao { | ||
|
||
public void save(Register register); | ||
|
||
public Object queryByName(String name); | ||
|
||
public void update(Register register); | ||
|
||
public List<?> queryAllUsers(String sql,int start,int limit); | ||
|
||
public BigInteger count(String sql); | ||
} |
59 changes: 48 additions & 11 deletions
59
sts/src/main/java/org/zengsource/umllearning/core/dao/TaskDao.java
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,48 @@ | ||
package org.zengsource.umllearning.core.dao; | ||
|
||
import org.zengsource.umllearning.core.model.Task; | ||
|
||
public interface TaskDao { | ||
|
||
public Task queryById(String id); | ||
|
||
public void saveTask(Task task); | ||
|
||
} | ||
package org.zengsource.umllearning.core.dao; | ||
|
||
import java.math.BigInteger; | ||
import java.util.List; | ||
|
||
import org.hibernate.criterion.Criterion; | ||
import org.zengsource.umllearning.core.model.Task; | ||
|
||
public interface TaskDao { | ||
|
||
/** | ||
* | ||
* @author hzucmj | ||
* | ||
*/ | ||
|
||
public Task queryById(String q); | ||
|
||
public Integer queryByTitle(String title); | ||
|
||
public void saveTask(Task task); | ||
|
||
public void updateTask(Task task); | ||
|
||
public void delTask(Task task); | ||
|
||
/** | ||
* | ||
* @author swyma | ||
* | ||
*/ | ||
//取得总数 | ||
public Integer getCount(Criterion[] criterions); | ||
//分页显示 | ||
public List<?> queryTask(Criterion[] criterions, int start, int limit); | ||
|
||
//取得总数 | ||
public Long getCount(String hql); | ||
|
||
//分页取数据 | ||
public List<?> queryTask(String hql,int start,int limit); | ||
|
||
public List<?> query(String hql); | ||
|
||
public List<?> querySql(String sql); | ||
|
||
public BigInteger getCountSql(String sql); | ||
} |
Oops, something went wrong.