|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GlueMessageLayout
Message¸¦ Create ¹× parsing¸¦ ó¸®Çϱâ À§ÇÑ Interface Class. LayoutÀ» XML, DBµîÀ¸·Î ¿©·¯ ÇüÅ·Π󸮰¡´ÉÇÔ
Method Summary | |
---|---|
GlueMessageDefinition |
getAttributes(String messageId)
ÇØ´ç Msg LayoutÀÇ Attribute Á¤º¸¸¦ ÃßÃâÇÏ´Â Method óÀ½ È£Ãâ½Ã AttributeÀÇ Á¤º¸¸¦ Cache¿¡ ÀúÀåÇÏ°í, Àç È£Ãâ½Ã Cache¸¦ ÅëÇØ Á¤º¸¸¦ ÃßÃâÇÏ¿© Á¦°ø |
GlueMessage |
makeMessageParsing(GlueMessageDefinition messageDefinition,
String message)
Message Layout Ç׸ñ Á¤º¸¿¡ µû Message¸¦ ÆĽÌÇÏ¿© GlueMessage °´Ã¼¿¡ ´ã´Â´Ù. |
String |
makeMessageString(GlueMessageDefinition messageDefinition,
GlueMessage message)
Message Layout¿¡ µû¶ó ÇØ´ç Message¸¦ »ý¼ºÇÑ´Ù. |
Method Detail |
---|
String makeMessageString(GlueMessageDefinition messageDefinition, GlueMessage message)
[Message Byte »ý¼º ±ÔÄ¢] 1. Data Type : String DataType : STRING, CHAR, VARCHAR2 ¸ðµÎ µ¿ÀÏÇÏ°Ô StringÀ¸·Î °£ÁÖ String Data°¡ LayoutÀÇ Lengthº¸´Ù ÀÛÀ»¶§ : Length¸¸Å ¿À¸¥ÂÊ °ø¹é Ãß°¡ String Data°¡ LayoutÀÇ Lengthº¸´Ù Ŭ¶§ : Length¸¸Å ¿ÞÂÊ ±âÁØÀ¸·Î ÀÚ¸§ ´Ü, StringÀÌ Null, ""(zero Length) ÀÏ °æ¿ì : Length¸¸Å °ø¹é »ý¼º ´Ü, StringÀ» Byte Length »ý¼º½Ã String Áß°£Àý»èÀÏ °æ¿ì ±úÁø String ±×´ë·Î ó¸®ÇÔ. ¿¹) 123ÇÑ(Length:4) : 123? 2. Data Type : Number 1) Truncateó¸® 2) ¿À¸¥ÂÊ Shift 3) Cut Number Data°¡ LayoutÀÇ Lengthº¸´Ù ÀÛÀ»¶§ : Length¸¸Å ¿ÞÂÊÀ¸·Î '0' Ãß°¡ ¿¹) -123(Length:5) : -0123 Number Data°¡ LayoutÀÇ Lengthº¸´Ù Ŭ¶§ : Length¸¸Å ¿ÞÂÊ ±âÁØÀ¸·Î ÀÚ¸§ ´Ü, '-', '.'µµ 1 Byte·Î °£ÁÖÇÑ´Ù. ´Ü, Number°¡ Null, ""(zero Length) ÀÏ °æ¿ì : Length¸¸Å °ø¹é »ý¼º 3. Data Type : Date Date°´Ã¼¿¡¼ ÇØ´ç Length¿¡ ¸ÂÃç °ªÀ» °¡Á®¿È. [Áö¿øÇÏ´Â Date Type] Length(14) : yyyyMMddHHmmss Length(12) : yyyyMMddHHmm Length(10) : yyyyMMddHH Length(8) : yyyyMMdd Length(6) : yyyyMM Length(4) : yyyy ´Ü, Date°¡ Null, ""(zero Length) ÀÏ °æ¿ì : Length¸¸Å °ø¹é »ý¼º
messageDefinition
- Message LayoutÀÇ AttributeÇ׸ñ Listmessage
- GlueMessage °´Ã¼
GlueMessage makeMessageParsing(GlueMessageDefinition messageDefinition, String message) throws GlueMessageParserException
[Message Byte ÆÄ½Ì ±ÔÄ¢] 1. Data Type : String -DataType : STRING, CHAR, VARCHAR2 ¸ðµÎ µ¿ÀÏÇÏ°Ô StringÀ¸·Î °£ÁÖ -String Data¸¦ ÀÚ¸¥ÈÄ Rigth Trimó¸®ÇÏ¿© Message °´Ã¼¿¡ ÀúÀå ´Ü, String ÆĽ̽à String Áß°£ Àý»èÀÌ µÉ °æ¿ì ±úÁø»óÅ·Π»ý¼º. ¿¹) 123ÇѱÛ1 : ¾Õ String(Length:4) -> 123? µÚ String(Length:4) -> ?±Û1 ´Ü, Message °ø¹é½Ã -> ""(Empty String) 2. Data Type : Number 1) Cut ´Ü, '-', '.'µµ 1 Byte·Î °£ÁÖÇÑ´Ù. 2) Right Trim 3) ¿ÞÂÊÀ¸·Î Shift 4) Number »ý¼ºÈÄ Message °´Ã¼¿¡ ÀúÀå ´Ü, NumberÀ϶§ À߸øµÈ ÆĽÌÀ¸·Î String Áß°£ Àý»è½Ã Exceptionó¸® ´Ü, Message °ø¹é½Ã -> null(Default)Number Message °ø¹é½Ã ó¸® Option 1) Message °ªÀÌ Zero -> null 2) Message °ªÀÌ Space -> Zero 3) 1,2 µ¿½Ã Message °ªÀÌ Zero -> null Message °ªÀÌ Space -> Zero 3. Data Type : Date 1) Length¸¸Å Cut 2) Date Type¿¡ ¸ÂÃç Date °´Ã¼ »ý¼ºÈÄ Message °´Ã¼¿¡ ÀúÀå [Áö¿øÇÏ´Â Date Type] Length(14) : yyyyMMddHHmmss Length(12) : yyyyMMddHHmm Length(10) : yyyyMMddHH Length(8) : yyyyMMdd Length(6) : yyyyMM Length(4) : yyyy ´Ü, DateÀ϶§ À߸øµÈ ÆĽÌÀ¸·Î String Áß°£ Àý»è½Ã Exceptionó¸® ´Ü, Message °ø¹é½Ã -> null
messageDefinition
- Objectmessage
- Message ¹®ÀÚ¿
GlueMessageParserException
GlueMessageDefinition getAttributes(String messageId) throws GlueMessageDefinitionException
messageId
- Message ID
GlueMessageDefinitionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |