Commit 73081c15 authored by yanzg's avatar yanzg

修改实例化关系

parent 5d966b41
...@@ -60,7 +60,7 @@ public interface SqlCond<T extends SqlCond> { ...@@ -60,7 +60,7 @@ public interface SqlCond<T extends SqlCond> {
* *
* @return * @return
*/ */
SqlCond copy(); T copy();
/** /**
* 判断条件是否相等 * 判断条件是否相等
......
...@@ -88,7 +88,7 @@ public class SqlCondDefault extends SqlCondBase<SqlCondDefault> { ...@@ -88,7 +88,7 @@ public class SqlCondDefault extends SqlCondBase<SqlCondDefault> {
* @return * @return
*/ */
@Override @Override
public SqlCond copy() { public SqlCondDefault copy() {
SqlCondDefault cond = new SqlCondDefault(this.debugRunnable, this.fields); SqlCondDefault cond = new SqlCondDefault(this.debugRunnable, this.fields);
return cond; return cond;
} }
......
...@@ -114,7 +114,7 @@ public class SqlCondEquals extends SqlCondBase<SqlCondEquals> { ...@@ -114,7 +114,7 @@ public class SqlCondEquals extends SqlCondBase<SqlCondEquals> {
* @return * @return
*/ */
@Override @Override
public SqlCond copy() { public SqlCondEquals copy() {
SqlCondEquals cond = new SqlCondEquals(this.debugRunnable, this.fields, this.vals); SqlCondEquals cond = new SqlCondEquals(this.debugRunnable, this.fields, this.vals);
return cond; return cond;
} }
......
...@@ -107,7 +107,7 @@ public class SqlCondItem extends SqlCondBase<SqlCondItem> { ...@@ -107,7 +107,7 @@ public class SqlCondItem extends SqlCondBase<SqlCondItem> {
* @return * @return
*/ */
@Override @Override
public SqlCond copy() { public SqlCondItem copy() {
SqlCondItem cond = new SqlCondItem(this.debugRunnable, this.fields); SqlCondItem cond = new SqlCondItem(this.debugRunnable, this.fields);
return cond; return cond;
} }
......
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;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment