net.sf.oxclient.communication.json
Class JSONQuery

java.lang.Object
  extended by net.sf.oxclient.communication.json.JSONQuery
All Implemented Interfaces:
CommunicationQuery, IQuery

@Guarded
public class JSONQuery
extends Object
implements CommunicationQuery

Author:
Björn Voß

Constructor Summary
JSONQuery(ICommunicationClient client, String module, IJSONMapper jsonMapper, IParameterGenerator parameterGenerator)
           
JSONQuery(IJSONMapper jsonMapper, IParameterGenerator parameterGenerator)
           
 
Method Summary
<E> List<E>
queryForList(Class<E> elementClass)
           
<E> E
queryForObject(Class<E> elementClass)
           
 String queryForResponseString()
           
 void setClient(ICommunicationClient client)
           
 void setModule(String module)
           
 void setParameters(Map<String,String> params)
           
 void setPropertyColumns(Map<Integer,String> propertyColumns)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONQuery

public JSONQuery(ICommunicationClient client,
                 String module,
                 IJSONMapper jsonMapper,
                 IParameterGenerator parameterGenerator)

JSONQuery

public JSONQuery(IJSONMapper jsonMapper,
                 IParameterGenerator parameterGenerator)
Method Detail

queryForList

public <E> List<E> queryForList(Class<E> elementClass)
Specified by:
queryForList in interface IQuery

queryForObject

public <E> E queryForObject(Class<E> elementClass)
Specified by:
queryForObject in interface IQuery

setParameters

public void setParameters(Map<String,String> params)
Specified by:
setParameters in interface IQuery

setPropertyColumns

public void setPropertyColumns(Map<Integer,String> propertyColumns)
Specified by:
setPropertyColumns in interface IQuery

setModule

public void setModule(@NotNull@NotEmpty
                      String module)
Specified by:
setModule in interface IQuery
Parameters:
module - the module to set

setClient

public void setClient(@NotNull
                      ICommunicationClient client)
Specified by:
setClient in interface CommunicationQuery
Parameters:
client - the client to set

queryForResponseString

public String queryForResponseString()
Specified by:
queryForResponseString in interface IQuery


Copyright © 2007. All Rights Reserved.