Package org.teiid.olingo.service
Class OperationResponseImpl
- java.lang.Object
-
- org.teiid.olingo.service.OperationResponseImpl
-
- All Implemented Interfaces:
BaseResponse
,ComplexResponse
,OperationResponse
,QueryResponse
public class OperationResponseImpl extends Object implements OperationResponse
-
-
Constructor Summary
Constructors Constructor Description OperationResponseImpl(org.teiid.olingo.service.ProcedureSQLBuilder.ProcedureReturn procedureReturn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRow(ResultSet rs)
String
getNextToken()
org.teiid.olingo.service.ProcedureSQLBuilder.ProcedureReturn
getProcedureReturn()
org.apache.olingo.commons.api.data.Property
getResult()
void
serialize(org.apache.olingo.server.api.ODataResponse response, TeiidODataJsonSerializer serializer, org.apache.olingo.server.api.ServiceMetadata metadata, org.apache.olingo.commons.api.data.ContextURL contextURL, URI next)
void
setCount(long count)
void
setNextToken(String token)
void
setReturnValue(Object returnValue)
long
size()
-
-
-
Method Detail
-
addRow
public void addRow(ResultSet rs) throws SQLException
- Specified by:
addRow
in interfaceQueryResponse
- Throws:
SQLException
-
size
public long size()
- Specified by:
size
in interfaceQueryResponse
-
setCount
public void setCount(long count)
- Specified by:
setCount
in interfaceQueryResponse
-
setNextToken
public void setNextToken(String token)
- Specified by:
setNextToken
in interfaceQueryResponse
-
getNextToken
public String getNextToken()
- Specified by:
getNextToken
in interfaceQueryResponse
-
getResult
public org.apache.olingo.commons.api.data.Property getResult()
- Specified by:
getResult
in interfaceOperationResponse
-
setReturnValue
public void setReturnValue(Object returnValue) throws SQLException
- Specified by:
setReturnValue
in interfaceOperationResponse
- Throws:
SQLException
-
getProcedureReturn
public org.teiid.olingo.service.ProcedureSQLBuilder.ProcedureReturn getProcedureReturn()
-
serialize
public void serialize(org.apache.olingo.server.api.ODataResponse response, TeiidODataJsonSerializer serializer, org.apache.olingo.server.api.ServiceMetadata metadata, org.apache.olingo.commons.api.data.ContextURL contextURL, URI next) throws org.apache.olingo.server.api.serializer.SerializerException
- Specified by:
serialize
in interfaceComplexResponse
- Throws:
org.apache.olingo.server.api.serializer.SerializerException
-
-