public class SimpleCondition extends Object implements Condition, TypeIdentifier, Comparable<SimpleCondition>
new SimpleCondition('name',Cs.EQUALS,'zhangsan');
Condition.Associated, Condition.Cs| 构造器和说明 |
|---|
SimpleCondition()
By default, no arguments constructor is recommended, but you can refer to
others
|
SimpleCondition(String fieldName,
Condition.Cs cs)
Construct a condition that has no value option
|
SimpleCondition(String fieldName,
Condition.Cs cs,
Condition.Associated associated)
Construct a condition that has no value option but contains connection mode
If this condition is not need value ( for example select id from tableName
where name is not null, like this field : 'name' , because it's not neet
value for itself )
|
SimpleCondition(String fieldName,
Condition.Cs cs,
Object value)
Construct a conditional instance with a value option
|
SimpleCondition(String fieldName,
Condition.Cs cs,
Object value,
Condition.Associated associated)
if the field is need value With the corresponding
|
SimpleCondition(String fieldName,
Condition.Cs cs,
Object value,
String fun,
Condition.Associated associated) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittypeOfpublic SimpleCondition()
public SimpleCondition(String fieldName, Condition.Cs cs) throws ConditionException
fieldName - cs - ConditionExceptionpublic SimpleCondition(String fieldName, Condition.Cs cs, Condition.Associated associated) throws ConditionException
Construct a condition that has no value option but contains connection mode
If this condition is not need value ( for example select id from tableName where name is not null, like this field : 'name' , because it's not neet value for itself )
fieldName - cs - associated - ConditionExceptionpublic SimpleCondition(String fieldName, Condition.Cs cs, Object value)
fieldName - cs - value - public SimpleCondition(String fieldName, Condition.Cs cs, Object value, Condition.Associated associated)
fieldName - cs - value - associated - public SimpleCondition(String fieldName, Condition.Cs cs, Object value, String fun, Condition.Associated associated)
public void setEnable(boolean enable)
public Condition.Cs getCs()
public void setCs(String condition)
public void setCs(Condition.Cs condition)
public String getFieldName()
public void setFieldName(String fieldName)
public Object getValue()
public void setValue(Object value)
public static void main(String[] args)
public SimpleCondition valueCastType(boolean flag)
public Condition.Associated getAssociated()
getAssociated 在接口中 Conditionpublic void setAssociated(Condition.Associated associated)
public SimpleCondition eq(Object value)
public SimpleCondition eqcc(String column)
public SimpleCondition neq(Object value)
public SimpleCondition neqcc(String column)
public SimpleCondition fun(String fun)
public SimpleCondition gt(Object value)
public SimpleCondition gtcc(String column)
public SimpleCondition gte(Object value)
public SimpleCondition gtecc(String column)
public SimpleCondition lt(Object value)
public SimpleCondition ltcc(String column)
public SimpleCondition lte(Object value)
public SimpleCondition ltecc(String column)
public SimpleCondition nullOf()
public SimpleCondition notNull()
public SimpleCondition empty()
public SimpleCondition notEmpty()
public SimpleCondition startWith(Object value)
public SimpleCondition noStartWith(Object value)
public SimpleCondition endWith(Object value)
public SimpleCondition noEndWith(Object value)
public SimpleCondition match(Object value)
public SimpleCondition contains(Object value)
public SimpleCondition noContains(Object value)
public SimpleCondition in(String[] value)
public SimpleCondition in(Integer[] value)
public SimpleCondition in(Double[] value)
public SimpleCondition notIn(String[] value)
public SimpleCondition notIn(Integer[] value)
public SimpleCondition notIn(Double[] value)
public SimpleCondition between(Integer start, Integer end)
public SimpleCondition between(String start, String end)
public SimpleCondition betweencc(String column1, String column2)
public SimpleCondition notBetween(int start, int end)
public SimpleCondition notBetween(String start, String end)
public SimpleCondition notBetweencc(String column1, String column2)
public SimpleCondition and()
public SimpleCondition or()
public String getFun()
public void setFun(String fun)
public int compareTo(SimpleCondition o)
compareTo 在接口中 Comparable<SimpleCondition>public boolean isEffective()
Copyright © 2023. All rights reserved.