|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.webmancer.db.Query
public class Query
Constructor Summary | |
---|---|
Query(IDatabaseOperationPerformer performer)
Constructs the AbstractQuery. |
Method Summary | |
---|---|
void |
addAttribute(IAttribute attribute)
|
protected void |
callRestrictors(RestrictionType type)
|
long |
delete()
|
protected java.util.Map<java.lang.String,IAttribute> |
getAttributes()
Returns the attributes. |
protected java.util.List<ICondition> |
getConditions()
Returns the conditions. |
protected long |
getLimit()
Returns the limit. |
protected long |
getOffset()
Returns the offset. |
protected IAttribute |
getOrderingAttribute()
Returns the ordering attribute. |
void |
insert(IData data)
|
void |
insert(java.util.Map<IAttribute,ICell> row)
|
protected boolean |
isOrderingAscending()
Returns the orderingIsAscending. |
long |
queryCount()
|
IData |
queryResult()
|
void |
registerRestrictor(IRestrictor restrictor)
|
void |
restrictByCondition(ICondition condition)
|
void |
restrictLimit(long limit)
|
void |
restrictOffset(long offset)
|
void |
restrictOrdering(IAttribute attribute,
boolean ascending)
|
void |
setAttributes(java.util.Map<java.lang.String,IAttribute> attributes)
Sets the attributes. |
void |
setConditions(java.util.List<ICondition> conditions)
Sets the conditions. |
void |
setLimit(long limit)
Sets the limit. |
void |
setOffset(long offset)
Sets the offset. |
void |
setOrderingAscending(boolean ascending)
Sets the orderingIsAscending. |
void |
setOrderingAttribute(IAttribute attribute)
Sets the ordering attribute. |
long |
update(java.util.Map<IAttribute,ICell> row)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Query(IDatabaseOperationPerformer performer)
Method Detail |
---|
public void addAttribute(IAttribute attribute)
addAttribute
in interface IQuery
IQuery.addAttribute(net.sf.webmancer.db.IAttribute)
public long queryCount()
queryCount
in interface IQuery
IQuery.queryCount()
public IData queryResult()
queryResult
in interface IQuery
IQuery.queryResult()
public long delete()
delete
in interface IQuery
IQuery.delete()
public long update(java.util.Map<IAttribute,ICell> row)
update
in interface IQuery
IQuery.update(java.util.Map)
public void insert(java.util.Map<IAttribute,ICell> row)
insert
in interface IQuery
IQuery.insert(java.util.Map)
public void insert(IData data)
insert
in interface IQuery
public void registerRestrictor(IRestrictor restrictor)
registerRestrictor
in interface IRestrictable
IRestrictable.registerRestrictor(net.sf.webmancer.db.IRestrictor)
public void restrictByCondition(ICondition condition)
restrictByCondition
in interface IRestrictable
IRestrictable.restrictByCondition(net.sf.webmancer.db.ICondition)
public void restrictLimit(long limit)
restrictLimit
in interface IRestrictable
IRestrictable.restrictLimit(long)
public void restrictOffset(long offset)
restrictOffset
in interface IRestrictable
IRestrictable.restrictOffset(long)
public void restrictOrdering(IAttribute attribute, boolean ascending)
restrictOrdering
in interface IRestrictable
IRestrictable.restrictOrdering(net.sf.webmancer.db.IAttribute, boolean)
protected void callRestrictors(RestrictionType type)
type
- protected java.util.Map<java.lang.String,IAttribute> getAttributes()
public void setAttributes(java.util.Map<java.lang.String,IAttribute> attributes)
attributes
- the attributes to setprotected java.util.List<ICondition> getConditions()
public void setConditions(java.util.List<ICondition> conditions)
conditions
- the conditions to setprotected long getLimit()
public void setLimit(long limit)
limit
- the limit to setprotected long getOffset()
public void setOffset(long offset)
offset
- the offset to setprotected IAttribute getOrderingAttribute()
public void setOrderingAttribute(IAttribute attribute)
attribute
- the orderingAttribute to setprotected boolean isOrderingAscending()
public void setOrderingAscending(boolean ascending)
ascending
- the orderingIsAscending to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |