Package org.apache.ctakes.core.resource

Examples of org.apache.ctakes.core.resource.JdbcConnectionResource


      throws Exception
  {
    super(aCtx, properties);
    iv_maxListSize = maxListSize;
    String resrcName = props.getProperty(DB_CONN_RESRC_KEY_PRP_KEY);
    JdbcConnectionResource resrc = (JdbcConnectionResource) aCtx.getResourceObject(resrcName);

    String prepStmtSql = props.getProperty(MAP_PREP_STMT_PRP_KEY);
    Connection conn = resrc.getConnection();
    mapPrepStmt = conn.prepareStatement(prepStmtSql);

  }
View Full Code Here


  public UmlsToSnomedDbConsumerImpl(UimaContext aCtx, Properties properties)
      throws Exception
  {
    super(aCtx, properties);
    String resrcName = props.getProperty(DB_CONN_RESRC_KEY_PRP_KEY);
    JdbcConnectionResource resrc = (JdbcConnectionResource) aCtx.getResourceObject(resrcName);

    String prepStmtSql = props.getProperty(MAP_PREP_STMT_PRP_KEY);
    Connection conn = resrc.getConnection();
    mapPrepStmt = conn.prepareStatement(prepStmtSql);

  }
View Full Code Here

   public UmlsToSnomedDbConsumerImpl( final UimaContext uimaContext, final Properties properties, final int maxListSize )
         throws Exception {
      super( uimaContext, properties );
      _maxListSize = maxListSize;
      final String resourceName = props.getProperty( DB_CONN_RESRC_KEY_PRP_KEY );
      final JdbcConnectionResource resrc = (JdbcConnectionResource) uimaContext.getResourceObject( resourceName );

      final String sqlStatement = props.getProperty( MAP_PREP_STMT_PRP_KEY );
      final Connection connection = resrc.getConnection();
      _preparedStatement = connection.prepareStatement( sqlStatement );

   }
View Full Code Here

        try
        {
            String sql = (String) getConfigParameterValue(PARAM_SQL);
            docTextColName = (String) getConfigParameterValue(PARAM_DOCTEXT_COL);
            String resrcName = (String) getConfigParameterValue(PARAM_DB_CONN_RESRC);
            JdbcConnectionResource resrc = (JdbcConnectionResource) getUimaContext().getResourceObject(resrcName);

            docIdColNames = (String[]) getConfigParameterValue(PARAM_DOCID_COLS);
            if (getConfigParameterValue(PARAM_DOCID_DELIMITER) != null)
            {
                docIdDelimiter = (String) getConfigParameterValue(PARAM_DOCID_DELIMITER);
            }

            Connection conn = resrc.getConnection();
            queryPrepStmt = conn.prepareStatement(sql);

            String fileResrcName = (String) getConfigParameterValue(PARAM_VALUE_FILE_RESRC);
            if ((fileResrcName != null) && (fileResrcName.trim().length() > 0))
            {
View Full Code Here

   public UmlsToSnomedDbConsumerImpl( final UimaContext uimaContext, final Properties properties, final int maxListSize )
         throws Exception {
      super( uimaContext, properties );
      _maxListSize = maxListSize;
      final String resourceName = props.getProperty( DB_CONN_RESRC_KEY_PRP_KEY );
      final JdbcConnectionResource resrc = (JdbcConnectionResource) uimaContext.getResourceObject( resourceName );

      final String sqlStatement = props.getProperty( MAP_PREP_STMT_PRP_KEY );
      final Connection connection = resrc.getConnection();
      _preparedStatement = connection.prepareStatement( sqlStatement );

   }
View Full Code Here

        try
        {
            String sql = (String) getConfigParameterValue(PARAM_SQL);
            docTextColName = (String) getConfigParameterValue(PARAM_DOCTEXT_COL);
            String resrcName = (String) getConfigParameterValue(PARAM_DB_CONN_RESRC);
            JdbcConnectionResource resrc = (JdbcConnectionResource) getUimaContext().getResourceObject(resrcName);

            docIdColNames = (String[]) getConfigParameterValue(PARAM_DOCID_COLS);
            if (getConfigParameterValue(PARAM_DOCID_DELIMITER) != null)
            {
                docIdDelimiter = (String) getConfigParameterValue(PARAM_DOCID_DELIMITER);
            }

            Connection conn = resrc.getConnection();
            queryPrepStmt = conn.prepareStatement(sql);

            String fileResrcName = (String) getConfigParameterValue(PARAM_VALUE_FILE_RESRC);
            if ((fileResrcName != null) && (fileResrcName.trim().length() > 0))
            {
View Full Code Here

TOP

Related Classes of org.apache.ctakes.core.resource.JdbcConnectionResource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.