Package com.ibatis.sqlmap.client

Examples of com.ibatis.sqlmap.client.SqlMapClient.update()


            }
           
            // Create the tables
           
            getLogger().info( "Creating table: " + tableName );
            sqlMap.update( createPrefix + tableName, null );
           
            sqlMap.commitTransaction();
        }
        catch ( SQLException e )
        {
View Full Code Here


    try
    {
        sqlMap.startTransaction();

        getLogger().info( "Dropping table: " + tableName );
        sqlMap.update( dropPrefix + tableName, null );
       
        sqlMap.commitTransaction();
    }
    catch ( SQLException e )
    {
View Full Code Here

        try
        {
            sqlMap.startTransaction();

            getLogger().info( "Adding repository metadata" );
            sqlMap.update( "addRepositoryMetadata", metadata );
           
            sqlMap.commitTransaction();
        }
        catch ( SQLException e )
        {
View Full Code Here

        try
        {
            sqlMap.startTransaction();

            getLogger().info( "Updating repository metadata" );
            sqlMap.update( "updateRepositoryMetadata", metadata );
           
            sqlMap.commitTransaction();
        }
        catch ( SQLException e )
        {
View Full Code Here

        try
        {
            sqlMap.startTransaction();

            getLogger().info( "Removing repository metadata" );
            sqlMap.update( "removeRepositoryMetadata", new MetadataKey( groupId, artifactId, version ) );
           
            sqlMap.commitTransaction();
        }
        catch ( SQLException e )
        {
View Full Code Here

        try
        {
            sqlMap.startTransaction();

            getLogger().info( "Adding artifact." );
            sqlMap.update( "addArtifact", artifact );

            sqlMap.commitTransaction();
        }
        catch ( SQLException e )
        {
View Full Code Here

            }

            // Create the tables

            getLogger().info( "Creating table: " + tableName );
            sqlMap.update( createPrefix + tableName, null );

            sqlMap.commitTransaction();
        }
        catch ( SQLException e )
        {
View Full Code Here

        try
        {
            sqlMap.startTransaction();

            getLogger().info( "Dropping table: " + tableName );
            sqlMap.update( dropPrefix + tableName, null );

            sqlMap.commitTransaction();
        }
        catch ( SQLException e )
        {
View Full Code Here

  }

  public Entry updateEntry(Object entryId, Entry entry) throws Exception {
    SqlMapClient client = getSqlMapClient();
    String queryId = config.getFeedId() + "-update-entry";
    return client.update(queryId, collectColumns(entry)) > 0
        ? getEntry(entryId) : null;
  }

  public boolean deleteEntry(Object entryId) throws Exception {
    String queryId = config.getFeedId() + "-delete-entry";
View Full Code Here

    SqlMapClient client = getSqlMapClient();
    String queryId = config.getFeedId() + "-update-entry";
    try {
        Map<String, Object> params = getRequestParams(request);
        params.putAll(getPropertyMapForEntry(entry));
      return client.update(queryId, params) > 0 ? retrieveEntry(request,
          entryId) : null;
    } catch (SQLException e) {
      throw new FeedServerAdapterException(
          FeedServerAdapterException.Reason.ERROR_EXECUTING_ADAPTER_REQUEST, e.getMessage());
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.