public abstract class AbstractQuery<F,T,C extends net.idea.modbcum.i.IQueryCondition,ResultType> extends Object implements net.idea.modbcum.i.IQueryObject<ResultType>, net.idea.modbcum.i.IParameterizedQuery<F,T,C>
F: field to search for
T: value to search for
C: condition (implements IQueryCondition
)
Modifier and Type | Field and Description |
---|---|
protected C |
condition |
protected F |
fieldname |
protected Integer |
id |
protected static Logger |
logger |
protected long |
maxRecords |
protected String |
name |
protected int |
page |
protected boolean |
selected |
protected T |
value |
Constructor and Description |
---|
AbstractQuery() |
Modifier and Type | Method and Description |
---|---|
String |
getCategory() |
C |
getCondition() |
F |
getFieldname() |
Integer |
getId() |
String |
getKey() |
String |
getName() |
int |
getPage() |
long |
getPageSize() |
T |
getValue() |
boolean |
isSelected() |
void |
setCondition(C condition) |
void |
setFieldname(F fieldname) |
void |
setId(Integer id) |
void |
setName(String name) |
void |
setPage(int page) |
void |
setPageSize(long records) |
void |
setSelected(boolean selected) |
void |
setValue(T value) |
protected String |
stringify(T value) |
boolean |
supportsPaging() |
boolean |
test(T object) |
String |
toString() |
protected static Logger logger
protected F fieldname
protected T value
protected C extends net.idea.modbcum.i.IQueryCondition condition
protected boolean selected
protected String name
protected Integer id
protected long maxRecords
protected int page
public Integer getId()
getId
in interface net.idea.modbcum.i.IQueryObject<ResultType>
public void setId(Integer id)
setId
in interface net.idea.modbcum.i.IQueryObject<ResultType>
public String getName()
public void setName(String name)
public T getValue()
public void setValue(T value)
public C getCondition()
public void setCondition(C condition)
public F getFieldname()
public void setFieldname(F fieldname)
public boolean isSelected()
public void setSelected(boolean selected)
public boolean test(T object) throws net.idea.modbcum.i.exceptions.AmbitException
net.idea.modbcum.i.exceptions.AmbitException
public void setPageSize(long records)
setPageSize
in interface net.idea.modbcum.i.IQueryObject<ResultType>
public long getPageSize()
getPageSize
in interface net.idea.modbcum.i.IQueryObject<ResultType>
public int getPage()
getPage
in interface net.idea.modbcum.i.IQueryObject<ResultType>
public void setPage(int page)
setPage
in interface net.idea.modbcum.i.IQueryObject<ResultType>
public String getKey()
getKey
in interface net.idea.modbcum.i.IQueryObject<ResultType>
public String getCategory()
getCategory
in interface net.idea.modbcum.i.IQueryObject<ResultType>
public boolean supportsPaging()
supportsPaging
in interface net.idea.modbcum.i.IQueryObject<ResultType>
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.