com.gauce.io
Interface GauceResponse

All Known Implementing Classes:
CommonResponse

public interface GauceResponse

Component·Î Àü¼ÛÇÏ´Â Response¸¦ Gauce Service¿¡ ºÎÇÕÇϵµ·Ï Ãß»óÈ­ ½ÃŲ Ŭ·¡½ºÀÌ´Ù.

Since:
Gauce 2.9
Version:
1.0 2002.08
Author:
Shift Information & Communication CO.

Method Summary
 void close()
          Component¿ÍÀÇ Åë½ÅÀ» ²÷´Â´Ù.
 void commit()
          Component¿¡°Ô TransactionÀ» ³¡¸¶Ä£ °á°ú¸¦ Àü¼ÛÇÑ´Ù.
 void commit(java.lang.String msg)
          Component¿¡°Ô TransactionÀ» ³¡¸¶Ä£ °á°ú¸¦ Àü¼ÛÇÑ´Ù. commit() method¿Í ±â´ÉÀº µ¿ÀÏÇϸç ÁöÁ¤µÈ ¸Þ¼¼Áö¸¦ Component·Î °°ÀÌ Àü¼ÛÇÑ´Ù.
 void enableFirstRow(GauceDataSet dataSet)
          GauceDataSetÀ» first-row°¡ Áö¿øµÇ´Â GauceDataSetÀ¸·Î ¼­ºñ½ºÇϱâ À§ÇØ ¼­ºñ½º¿¡ µî·Ï½ÃŲ´Ù.
 void flush()
          Buffer¿¡ ³²Àº PacketÀ» Component·Î Àü¼ÛÇϰí Buffer¸¦ ºñ¿î´Ù.
 void write(byte[] buf)
          char¹è¿­À» Component·Î Àü¼ÛÇÑ´Ù.
 void write(byte[] buf, int off, int len)
          bufÀÇ ³»¿ëÁß ÁöÁ¤µÈ ºÎºÐ¸¸Å­ Component·Î Àü¼ÛÇÑ´Ù.
 void write(GauceDataSet dataSet)
          GauceDataSetÀ» Component·Î Àü¼ÛÇÑ´Ù.
 void write(java.lang.String str)
          StringÀ» Component·Î Àü¼ÛÇÑ´Ù.
 void writeException(java.lang.String type, java.lang.String code, java.lang.String e)
          ¼­ºñ½º Áß ¹ß»ýÇÏ´Â ExceptionÀ» Component·Î Àü¼ÛÇÑ´Ù.
 

Method Detail

write

public void write(GauceDataSet dataSet)
           throws java.io.IOException
GauceDataSetÀ» Component·Î Àü¼ÛÇÑ´Ù.

Parameters:
dataSet - Component·Î Àü¼ÛÇÒ GauceDataSet
Throws:
java.io.IOException - Àü¼ÛÁß ¹ß»ýÇÏ´Â ¿À·ù
Since:
Gauce 2.9

write

public void write(byte[] buf)
           throws java.io.IOException
char¹è¿­À» Component·Î Àü¼ÛÇÑ´Ù.

Parameters:
buf - Àü¼ÛÇÒ byte¹è¿­
Throws:
java.io.IOException - Àü¼ÛÁß ¹ßÇàÇÏ´Â ¿À·ù
Since:
Gauce 2.9

write

public void write(byte[] buf,
                  int off,
                  int len)
           throws java.io.IOException
bufÀÇ ³»¿ëÁß ÁöÁ¤µÈ ºÎºÐ¸¸Å­ Component·Î Àü¼ÛÇÑ´Ù.

Parameters:
buf - Àü¼ÛÇÒ byte¹è¿­
off - offset
len - Àü¼ÛÇÒ char¹è¿­ÀÇ ±æÀÌ
Throws:
java.io.IOException - Àü¼ÛÁß ¹ß»ýÇÏ´Â ¿À·ù
Since:
Gauce 2.9

write

public void write(java.lang.String str)
           throws java.io.IOException
StringÀ» Component·Î Àü¼ÛÇÑ´Ù.

Parameters:
str - Component·Î Àü¼ÛÇÒ String
Throws:
java.io.IOException - Àü¼ÛÁß ¹ß»ýÇÏ´Â ¿À·ù
Since:
Gauce 2.9

writeException

public void writeException(java.lang.String type,
                           java.lang.String code,
                           java.lang.String e)
¼­ºñ½º Áß ¹ß»ýÇÏ´Â ExceptionÀ» Component·Î Àü¼ÛÇÑ´Ù. À̶§ writeµÇ´Â ExceptionÀº buffer¿¡ ½×¿©ÀÖ´Ù°¡ ¸¶Áö¸· commitµÉ¶§ Component·Î Àü¼ÛµÈ´Ù.

Parameters:
type - ¿À·ù À¯Çü
code - ¿À·ùÄÚµå
e - ¿À·ù ³»¿ë
Since:
Gauce 2.9

commit

public void commit()
            throws java.io.IOException
Component¿¡°Ô TransactionÀ» ³¡¸¶Ä£ °á°ú¸¦ Àü¼ÛÇÑ´Ù.

Gauce¼­ºñ½ºÁß TransactionÀ» Á¾·áÇÏ´Â PacketÀ» ³ªÅ¸³½´Ù.Gauce¼­ºñ½º µ¿ÀÛÁß ¹ß»ýÇÏ´Â ¿À·ù¸¦ ´©ÀûÇØ¼­ ÀúÀåÇÑ´Ù. ¹ß»ýÇÏ´Â ¿À·ù¸¦ Stack¿¡ ÀúÀåÇϰí ÀÖ´Ù°¡ ¼­ºñ½º Á¾·á½Ã Component·Î Áö±Ý±îÁö ¹ß»ýÇÑ ¸ðµç ¿À·ù¸¦ Packet(CSV)·Î ¸¸µé¾î¼­ Àü¼ÛÇÑ´Ù. ¸¸¾à ¼º°øÀ̸é 0ÀÌ, ½ÇÆÐÀ̸é -1ÀÌ Component·Î Àü¼ÛµÇ¸ç, -1Àϰæ¿ì ¼ö¹ÝµÇ´Â¿À·ù°¡ °°ÀÌ Component·Î Àü¼ÛµÈ´Ù.

Throws:
java.io.IOException - commitÇÏ´Â °úÁ¤¿¡¼­ ¹ß»ýÇÏ´Â ¿À·ù
Since:
Gauce 2.9

commit

public void commit(java.lang.String msg)
            throws java.io.IOException
Component¿¡°Ô TransactionÀ» ³¡¸¶Ä£ °á°ú¸¦ Àü¼ÛÇÑ´Ù. commit() method¿Í ±â´ÉÀº µ¿ÀÏÇϸç ÁöÁ¤µÈ ¸Þ¼¼Áö¸¦ Component·Î °°ÀÌ Àü¼ÛÇÑ´Ù.

¸¸¾à ¼º°øÀûÀÎ ÀÛ¾÷ÀÌ¸é ¼º°ø¸Þ½ÃÁö·Î Component¿¡°Ô Àü¼ÛµÇ¸ç ½ÇÆÐÀÌ¸é ¿À·ù¸Þ½ÃÁö¿¡ Ãß°¡µÇ¾î Àü¼ÛµÈ´Ù.

Parameters:
msg - Component¿¡°Ô Àü¼ÛÇÒ ¸Þ½ÃÁö
Throws:
java.io.IOException - TransactionÀ» commitÇÏ´Â µ¿¾È ¹ß»ýÇÏ´Â ¿À·ù
Since:
Gauce 2.9

flush

public void flush()
           throws java.io.IOException
Buffer¿¡ ³²Àº PacketÀ» Component·Î Àü¼ÛÇϰí Buffer¸¦ ºñ¿î´Ù.

Throws:
java.io.IOException - Àü¼ÛÁß ¹ß»ýÇÏ´Â ¿À·ù
Since:
Gauce 2.9

enableFirstRow

public void enableFirstRow(GauceDataSet dataSet)
GauceDataSetÀ» first-row°¡ Áö¿øµÇ´Â GauceDataSetÀ¸·Î ¼­ºñ½ºÇϱâ À§ÇØ ¼­ºñ½º¿¡ µî·Ï½ÃŲ´Ù.

Parameters:
dataSet - ¼­ºñ½º¿¡ µî·Ï½Ãų GauceDataSet
Since:
Gauce 2.9

close

public void close()
           throws java.io.IOException
Component¿ÍÀÇ Åë½ÅÀ» ²÷´Â´Ù.

Throws:
java.io.IOException - Åë½ÅÁß ¹ß»ýÇÏ´Â ¿À·ù
Since:
Gauce 2.9