package com.asksunny.jbdstudio.protocol;

import java.util.List;

/*
 * <jdbi>
 * 	<request>
 *   	<id>123456</id>
 *   	<printHeader>true</printHeader>
 *      <printMeta>true</printMeta>
 *      <printMetaOnly>true</printMetaOnly>
 *      <sql><[CDATA[
 *      	SELECT * FROM TEST
 *      ]]></sql>
 *      <sql><[CDATA[
 *      	SELECT * FROM TEST
 *      ]]></sql>
 *      <sql><[CDATA[
 *      	SELECT * FROM TEST
 *      ]]></sql>
 *      <sql><[CDATA[
 *      	SELECT * FROM TEST
 *      ]]></sql>
 * 	</request>
 * </jdbi>
 * 
 * <jdbi>
 * 	<response>
 *   	<id>123456</id> *   	
 *      <resultset><[CDATA[
 *      1|Sunny|Liu
 *      2|John|Doe
 *       ]]></resultset>
 *        <resultset><[CDATA[
 *      1|Sunny|Liu
 *      2|John|Doe
 *       ]]></resultset>
 *        <resultset><[CDATA[
 *      1|Sunny|Liu
 *      2|John|Doe
 *       ]]></resultset>
 * 	</response>
 * </jdbi>
 * 
 * 
 */

public class SqlResponse {
	int requestId;
	List<String> responseBody;	
}

@@ -65,28 +65,21 @@
 %0A%0A/*%0A * 
-%3Cjdbi%3E%0A * %09%3C
+%09%3Csql
 request%3E
@@ -493,20 +493,22 @@
 /sql%3E%0A *
- 
 %09%3C/
+sql
 request%3E
@@ -515,35 +515,17 @@
 %0A * 
-%3C/jdbi%3E%0A * %0A * %3Cjdbi%3E
 %0A * %09%3C
+sql
 resp
@@ -844,16 +844,19 @@
 %3E%0A * %09%3C/
+sql
 response
@@ -864,24 +864,13 @@
 %0A * 
-%3C/jdbi%3E
 %0A * %0A
- * %0A
  */%0A
@@ -895,16 +895,17 @@
 esponse 
+%0A
 %7B%0A%09int r
@@ -941,12 +941,308 @@
 nseBody;
+%0A%09public int getRequestId() %7B%0A%09%09return requestId;%0A%09%7D%0A%09public void setRequestId(int requestId) %7B%0A%09%09this.requestId = requestId;%0A%09%7D%0A%09public List%3CString%3E getResponseBody() %7B%0A%09%09return responseBody;%0A%09%7D%0A%09public void setResponseBody(List%3CString%3E responseBody) %7B%0A%09%09this.responseBody = responseBody;%0A%09%7D%09%0A%09%0A
 %09%0A%7D%0A

Add XML