|
||||||||||
| 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 IQueryIQuery.addAttribute(net.sf.webmancer.db.IAttribute)public long queryCount()
queryCount in interface IQueryIQuery.queryCount()public IData queryResult()
queryResult in interface IQueryIQuery.queryResult()public long delete()
delete in interface IQueryIQuery.delete()public long update(java.util.Map<IAttribute,ICell> row)
update in interface IQueryIQuery.update(java.util.Map)public void insert(java.util.Map<IAttribute,ICell> row)
insert in interface IQueryIQuery.insert(java.util.Map)public void insert(IData data)
insert in interface IQuerypublic void registerRestrictor(IRestrictor restrictor)
registerRestrictor in interface IRestrictableIRestrictable.registerRestrictor(net.sf.webmancer.db.IRestrictor)public void restrictByCondition(ICondition condition)
restrictByCondition in interface IRestrictableIRestrictable.restrictByCondition(net.sf.webmancer.db.ICondition)public void restrictLimit(long limit)
restrictLimit in interface IRestrictableIRestrictable.restrictLimit(long)public void restrictOffset(long offset)
restrictOffset in interface IRestrictableIRestrictable.restrictOffset(long)
public void restrictOrdering(IAttribute attribute,
boolean ascending)
restrictOrdering in interface IRestrictableIRestrictable.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 | |||||||||