com.gauce.gsaf
Class TxEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.gauce.gsaf.TxEvent
All Implemented Interfaces:
java.io.Serializable

public class TxEvent
extends java.util.EventObject

GauceActionŬ·¡½ºÀÇ fireTxEvent¸Þ¼Òµå¸¦ È£ÃâÇÒ ¶§ ¹ß»ýÇÏ´Â À̺¥Æ®·Î¼­ GauceActionŬ·¡½º¸¦ »ó¼Ó¹Þ¾Æ ÀÛ¼ºµÈ Ŭ·¡½ºÀÇ Æ®·£Àè¼Ç ¸Þ¼Òµå¸¦ È£ÃâÇÑ´Ù. À̶§ Æ®·£Àè¼Ç ¸Þ¼Òµå¶õ Ŭ¶óÀ̾ðÆ®¿¡¼­ Àü¼ÛµÈ µ¥ÀÌÅÍ ¼ÂÀÇ °¢°¢ÀÇ Çà¿¡ ´ëÇØ INSERT, UPDATE, DELETE¸¦ ¼öÇàÇÏ´Â ¸Þ¼Òµå¸¦ ¸»ÇÑ´Ù. Æ®·£Àè¼Ç ¸Þ¼Òµå´Â ÀÏÁ¤ÇÑ ±ÔÄ¢À» °¡Áö°í »ý¼º µÇ¾î¾ß ÇÏ¸ç »ý¼º ¹æ¹ýÀº ´ÙÀ½°ú °°´Ù.
Ŭ¶óÀ̾ðÆ®¿¡¼­ Àü¼ÛµÈ °¢°¢ÀÇ µ¥ÀÌÅͼ¿¡ ´ëÇØ insertXxx, updateXxx, deleteXxx·Î ¸Þ¼Òµå À̸§ÀÌ Á¤ÀǵǾî¾ß Çϸç À̶§ Xxx´Â Ŭ¶óÀ̾ðÆ®¿¡¼­ Àü¼ÛµÈ µ¥ÀÌÅͼÂÀÇ À̸§À» °¡¸®Å²´Ù. µ¥ÀÌÅͼ À̸§Àº CapitalizeµÈ À̸§À¸·Î ¸í½Ã¸¦ ÇؾßÇÏ¸ç ¿¹¸¦ µé¸é USER¶ó´Â µ¥ÀÌÅͼÂÀ̸§À» °¡Áú°æ¿ì insertUser, updateUser, deleteUser°¡ µÈ´Ù.
ÀÌ À̺¥Æ®ÀÇ getSource¸Þ¼Òµå¸¦ ÅëÇؼ­ HttpGauceRequest°´Ã¼¸¦ ¾ò¾î¿Ã ¼ö ÀÖ´Ù.

Since:
4.0
Version:
4.0
See Also:
Serialized Form

Constructor Summary
TxEvent(HttpGauceRequest greq, GauceDataRow row, GauceDataColumn[] cols, java.lang.Object resource)
          GauceDataSetÀÇ °¢°¢ÀÇ row¿¡ ´ëÇØ ¹ß»ýÇÏ´Â À̺¥Æ®¸¦ ³ªÅ¸³½´Ù.
 
Method Summary
 GauceDataColumn[] getDataCols()
          À̺¥Æ®¸¦ ¹ß»ý½ÃÅ°´Â µ¥ÀÌÅͼÂÀÇ Ä÷³Á¤º¸¸¦ ¹ÝȯÇÑ´Ù.
 GauceDataRow getDataRow()
          À̺¥Æ®°¡ ¹ß»ýµÈ Çà(GauceDataRow)À» ¹ÝȯÇÑ´Ù.
 java.lang.Object getResource()
          À̺¥Æ®¸¦ ¹ß»ý½Ãų ¶§ÀÇ °ü·Ã ¸®¼Ò½º¸¦ ¹ÝȯÇÑ´Ù.
 int indexOfColumn(java.lang.String name)
          ÁÖ¾îÁø ColumnÀ̸§À¸·Î ÇØ´çµÈ index¸¦ ¹ÝȯÇÑ´Ù.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TxEvent

public TxEvent(HttpGauceRequest greq,
               GauceDataRow row,
               GauceDataColumn[] cols,
               java.lang.Object resource)
GauceDataSetÀÇ °¢°¢ÀÇ row¿¡ ´ëÇØ ¹ß»ýÇÏ´Â À̺¥Æ®¸¦ ³ªÅ¸³½´Ù. HttpGauceRequest, GauceDataRow, Object¸¦ ÀÌ¿ëÇÏ¿© °´Ã¼¸¦ »ý¼ºÇÑ´Ù.

Parameters:
greq - Ŭ¶óÀ̾ðÆ®¿¡¼­ ¿äûµÈ Request
row - Æ®·¢Àè¼ÇÀ» ó¸®ÇÒ GauceDataRow
cols - À̺¥Æ®¸¦ ¹ß»ý½ÃŲ µ¥ÀÌÅͼÂÀÇ Ä÷³Á¤º¸
resource - À̺¥Æ® ¹ß»ý½Ã ³Ñ°Ü¹ÞÀº ¸®¼Ò½º
Since:
4.0
Method Detail

getDataRow

public GauceDataRow getDataRow()
À̺¥Æ®°¡ ¹ß»ýµÈ Çà(GauceDataRow)À» ¹ÝȯÇÑ´Ù.

Returns:
À̺¥Æ®°¡ ¹ß»ýµÈ Çà
Since:
4.0

getDataCols

public GauceDataColumn[] getDataCols()
À̺¥Æ®¸¦ ¹ß»ý½ÃÅ°´Â µ¥ÀÌÅͼÂÀÇ Ä÷³Á¤º¸¸¦ ¹ÝȯÇÑ´Ù.

Returns:
µ¥ÀÌÅͼ Ä÷³Á¤º¸
Since:
4.0

indexOfColumn

public int indexOfColumn(java.lang.String name)
ÁÖ¾îÁø ColumnÀ̸§À¸·Î ÇØ´çµÈ index¸¦ ¹ÝȯÇÑ´Ù.

Parameters:
name - GauceDataColumnÀÇ À̸§
Returns:
ÇØ´çµÈ Column index, ¸¸¾à ÇØ´çµÇ´Â index°¡ ¾øÀ¸¸é -1À» ¹ÝȯÇÑ´Ù.
Since:
4.0

getResource

public java.lang.Object getResource()
À̺¥Æ®¸¦ ¹ß»ý½Ãų ¶§ÀÇ °ü·Ã ¸®¼Ò½º¸¦ ¹ÝȯÇÑ´Ù. ÀÌ ¸®¼Ò½º´Â JDBCÀÇ Connection°¡ µÉ ¼öµµ ÀÖÀ¸¸ç EJBÀÇ ContextµîÀÌ µÉ¼ö ÀÖ´Ù. ÇÊ¿ä¿¡ µû¶ó¼­ °ü·Ã Resource ÀúÀåÇÏ¿© ¹ÝȯÇÒ ¼ö ÀÖ´Ù. ¸®¼Ò½º´Â GauceActionŬ·¡½ºÀÇ fireTxEvent¸Þ¼Òµå¸¦ ÅëÇØ ÀúÀåÇÒ ¼ö ÀÖ´Ù.

Returns:
fireTxEvent¸Þ¼Òµå¸¦ ÅëÇØ ÀúÀåµÈ ÇØ´ç ¸®¼Ò½º
Since:
4.0