Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YZG
yzg-util
Commits
73081c15
Commit
73081c15
authored
Aug 20, 2021
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改实例化关系
parent
5d966b41
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
80 additions
and
4 deletions
+80
-4
SqlCond.java
...il-db/src/main/java/com/yanzuoguang/dao/cond/SqlCond.java
+1
-1
SqlCondDefault.java
...rc/main/java/com/yanzuoguang/dao/cond/SqlCondDefault.java
+1
-1
SqlCondEquals.java
...src/main/java/com/yanzuoguang/dao/cond/SqlCondEquals.java
+1
-1
SqlCondItem.java
...b/src/main/java/com/yanzuoguang/dao/cond/SqlCondItem.java
+1
-1
SqlCondOr.java
...-db/src/main/java/com/yanzuoguang/dao/cond/SqlCondOr.java
+76
-0
No files found.
yzg-util-db/src/main/java/com/yanzuoguang/dao/cond/SqlCond.java
View file @
73081c15
...
...
@@ -60,7 +60,7 @@ public interface SqlCond<T extends SqlCond> {
*
* @return
*/
SqlCond
copy
();
T
copy
();
/**
* 判断条件是否相等
...
...
yzg-util-db/src/main/java/com/yanzuoguang/dao/cond/SqlCondDefault.java
View file @
73081c15
...
...
@@ -88,7 +88,7 @@ public class SqlCondDefault extends SqlCondBase<SqlCondDefault> {
* @return
*/
@Override
public
SqlCond
copy
()
{
public
SqlCond
Default
copy
()
{
SqlCondDefault
cond
=
new
SqlCondDefault
(
this
.
debugRunnable
,
this
.
fields
);
return
cond
;
}
...
...
yzg-util-db/src/main/java/com/yanzuoguang/dao/cond/SqlCondEquals.java
View file @
73081c15
...
...
@@ -114,7 +114,7 @@ public class SqlCondEquals extends SqlCondBase<SqlCondEquals> {
* @return
*/
@Override
public
SqlCond
copy
()
{
public
SqlCond
Equals
copy
()
{
SqlCondEquals
cond
=
new
SqlCondEquals
(
this
.
debugRunnable
,
this
.
fields
,
this
.
vals
);
return
cond
;
}
...
...
yzg-util-db/src/main/java/com/yanzuoguang/dao/cond/SqlCondItem.java
View file @
73081c15
...
...
@@ -107,7 +107,7 @@ public class SqlCondItem extends SqlCondBase<SqlCondItem> {
* @return
*/
@Override
public
SqlCond
copy
()
{
public
SqlCond
Item
copy
()
{
SqlCondItem
cond
=
new
SqlCondItem
(
this
.
debugRunnable
,
this
.
fields
);
return
cond
;
}
...
...
yzg-util-db/src/main/java/com/yanzuoguang/dao/cond/SqlCondOr.java
0 → 100644
View file @
73081c15
package
com
.
yanzuoguang
.
dao
.
cond
;
import
com.yanzuoguang.dao.impl.SqlData
;
import
com.yanzuoguang.dao.impl.SqlDataField
;
import
java.util.List
;
import
java.util.Map
;
/**
* 默认条件
*
* @author 颜佐光
*/
public
class
SqlCondOr
implements
SqlCond
<
SqlCondOr
>
{
public
SqlCondOr
(
SqlCond
...
conds
)
{
}
/**
* 获取包含的字段
*
* @return
*/
@Override
public
List
<
String
>
getFields
()
{
return
null
;
}
/**
* 获取字段值
*
* @param model
* @return
*/
@Override
public
List
<
Object
>
getValues
(
Object
model
)
{
return
null
;
}
/**
* 将当前条件复制为新的对象
*
* @return
*/
@Override
public
SqlCondOr
copy
()
{
return
null
;
}
/**
* 判断条件是否相等
*
* @param cond
* @return
*/
@Override
public
boolean
equalsExecute
(
SqlCondOr
cond
)
{
return
false
;
}
/**
* 获取新的SQL语句
*
* @param sql
* @param sqlData
* @param field
* @param model
* @param codeMap
* @return
*/
@Override
public
String
getSql
(
String
sql
,
SqlData
sqlData
,
SqlDataField
field
,
Object
model
,
Map
codeMap
)
{
return
null
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment