001/* 002MIT License 003 004Copyright (c) 2020 FBSQL Team 005 006Permission is hereby granted, free of charge, to any person obtaining a copy 007of this software and associated documentation files (the "Software"), to deal 008in the Software without restriction, including without limitation the rights 009to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 010copies of the Software, and to permit persons to whom the Software is 011furnished to do so, subject to the following conditions: 012 013The above copyright notice and this permission notice shall be included in all 014copies or substantial portions of the Software. 015 016THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 017IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 018FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 019AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 020LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 021OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 022SOFTWARE. 023 024Home: https://fbsql.github.io 025E-Mail: fbsql.team@gmail.com 026*/ 027 028package org.fbsql.servlet; 029 030import java.util.Arrays; 031 032/** 033 * DTO (Data Transfer Object) that represents cached result of SQL statement execution 034 * 035 */ 036class ReadyResult { 037 038 /** 039 * ETag (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag) 040 */ 041 String etag; 042 043 /** 044 * Compression flag 045 */ 046 boolean compressed; 047 048 /** 049 * Output data 050 */ 051 byte[] bs; 052 053 @Override 054 public String toString() { 055 return "ReadyResult [etag=" + etag + ", compressed=" + compressed + ", bs=" + Arrays.toString(bs) + "]"; 056 } 057 058} 059 060/* 061Please contact FBSQL Team by E-Mail fbsql.team@gmail.com 062or visit https://fbsql.github.io if you need additional 063information or have any questions. 064*/ 065 066/* EOF */