
public class GlueMongoSave extends GlueActivity<GlueContext>
 Activity Property
 
 - repository : (Çʼö) applicationContext.xmlÀÇ repository id.
 
 - entity-id / entity-name : (Çʼö) µÑ Áß Çϳª¸¸ Ç×»ó ÀÖ¾î¾ß ÇÔ.
       entity-id :  ctx¿¡ ´ã±ä entity¸¦ ³ªÅ¸³»´Â key
       entity-name : »ý¼ºÇϰíÀÚ ÇÏ´Â entity class¸í
   
 - entity-bindings : (¼±ÅÃ) entity-nameÀÌ »ç¿ëµÉ °æ¿ì ÇÊ¿äÇÔ.
               binding¿¡ »ç¿ëµÇ´Â °ª°ú Mapping µÇ´Â Key( fieldName=ctxKey[|fieldName=ctxKey] ).
   
 - result-key : (¼±ÅÃ) Context¿¡ ´ã±â´Â mongodb ÀúÀå°á°ú
          [ default ] : {repository}_result
 
 
 
 ¿¹Á¦
 »ç¿ë ¿¹# 1
 
     
          
      
     
          
          
          
      
 
 
 »ç¿ë ¿¹# 2
 
     
          
      
     
          
          
          
      
 
 
 »ç¿ë ¿¹# 3
 
     
          
      
     
          
          
          
          
      
 
 
 
 Âü°í : applicationContext.xml
 
      
 
 
 Âü°í : MongoRepository È®Àå
 
     package sample.repository;
     import org.springframework.data.mongodb.repository.MongoRepository;
     import sample.vo.Customer;
     public interface CustomerRepository extends MongoRepository {
     }
 
 
 Âü°í : Document
 
     package sample.vo;
     import org.springframework.data.annotation.Id;
     import org.springframework.data.mongodb.core.mapping.Document;
     £À Document
     public class Customer {
         £À Id
         private String id;
         private String firstName;
         private String lastName;
         public Customer( String firstName, String lastName ) {
             this.firstName = firstName;
             this.lastName = lastName;
         }
     }
 
 
 Âü°í : Java Code (Custom)
 
     ctx.put( "data", new Customer("glue", "f/w") );
     List dataList = new ArrayList();
     dataList.add(new Customer("glue", "f/w"));
     dataList.add(new Customer("spring", "f/w"));
     ctx.put( "dataList", dataList );
     ctx.put( "fName", "glue" );
     ctx.put( "lName", "f/w" );  
 dynamicProperties, logger| Constructor and Description | 
|---|
GlueMongoSave()  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
runActivity(GlueContext ctx)
Sub Class¿¡¼ ¹Ýµå½Ã ±¸ÇöÇÏ¿©¾ß ÇÏ´Â Abstract Method À̸ç ÀÌ Method´Â F/W¿¡¼ È£ÃâÇÑ´Ù. 
 | 
commitTransaction, commitTransaction, getDao, getEventList, getName, getProperty, getPropertyNames, getTransition, rollbackTransaction, rollbackTransaction, setEventList, setName, setProperty, setTransitionpublic String runActivity(GlueContext ctx)
GlueActivityrunActivity in class GlueActivity<GlueContext>ctx - GlueContext¿¹)==> return "success"À̸é BizLogic Activity ¸¦ ½ÇÇàÇÔ. 
Copyright © 2013–2020 POSCO ICT. All rights reserved.