@Override public SerializerResult serialize(final ODataRequest request, final EntityCollection result) throws SerializerException { return new JPAValueSerializerResult(serializer.count(result.getCount())); }
public void writeCount(int count) throws SerializerException { assert (!isClosed()); this.response.setContent(this.serializer.count(count)); writeOK(ContentType.TEXT_PLAIN); close(); }
public void writeCount(int count) throws SerializerException { assert (!isClosed()); this.response.setContent(this.serializer.count(count)); writeOK(ContentType.TEXT_PLAIN); close(); }