com.posco.glue.reuse
Class PoscoServiceLoaderUtil

java.lang.Object
  extended by com.posco.glue.reuse.PoscoServiceLoaderUtil

public abstract class PoscoServiceLoaderUtil
extends Object


Constructor Summary
PoscoServiceLoaderUtil()
           
 
Method Summary
static void loadFileToDb(GlueGenericDao dao, File file, String gcsCompCode, GlueAuditAttributes audit, boolean isVersionUp)
          FileÀ» Àо DB¿¡ ÀúÀå.
static GlueService loadGlueServiceInfo(DataSource dataSource, GlueQueryManager queryManager, String serviceName, String GCS_COMP_CODE)
          ÃֽŹöÀüÀÇ GlueService Á¤º¸ ·Îµù.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PoscoServiceLoaderUtil

public PoscoServiceLoaderUtil()
Method Detail

loadGlueServiceInfo

public static GlueService loadGlueServiceInfo(DataSource dataSource,
                                              GlueQueryManager queryManager,
                                              String serviceName,
                                              String GCS_COMP_CODE)
ÃֽŹöÀüÀÇ GlueService Á¤º¸ ·Îµù.
 <?xml version="1.0" encoding="UTF-8"?>
 <beans ...>
     ...
     <bean id="dataSource" ... />
     <bean id="queryManager" ...>
         ...
         <property name="queryLoader" ref="queryLoader" />
     </bean>
     <bean id="queryLoader" class="com.poscoict.glueframework.dao.manager.GlueQueryLoader">
         ...
         <property name="extraQueryFiles">
             <list>
                 ...
                 <value>libquery/posco-meta-access-query.glue_sql</value>
             </list>
         </property>
     </bean>
     ...
 </beans>
 

Parameters:
dataSource -
queryManager -
serviceName -
GCS_COMP_CODE -
Returns:

loadFileToDb

public static void loadFileToDb(GlueGenericDao dao,
                                File file,
                                String gcsCompCode,
                                GlueAuditAttributes audit,
                                boolean isVersionUp)
                         throws Exception
FileÀ» Àо DB¿¡ ÀúÀå.
 <?xml version="1.0" encoding="UTF-8"?>
 <beans ...>
     ...
     <bean id="dataSource" ... />
     <bean id="dao" class="com.poscoict.glueframework.dao.jdbc.GlueJdbcDao">
         <property name="dataSource" ref="dataSource" />
         <property name="queryManager" ref="queryManager" />
     </bean>
     <bean id="queryManager" ...>
         ...
         <property name="queryLoader" ref="queryLoader" />
     </bean>
     <bean id="queryLoader" class="com.poscoict.glueframework.dao.manager.GlueQueryLoader">
         ...
         <property name="extraQueryFiles">
             <list>
                 ...
                 <value>libquery/posco-meta-access-xml-to-db-query.glue_sql</value>
             </list>
         </property>
     </bean>
     ...
 </beans>
 

Parameters:
dao -
file -
gcsCompCode -
audit -
isVersionUp -
Throws:
Exception


Copyright © 2013–2016 POSCO ICT. All rights reserved.