public static Long insertSQLKey(String poolName, String sqlKey, Object[] params)
      throws SQLStatementNotFoundException, YankSQLException {

    String sql = YANK_POOL_MANAGER.getMergedSqlProperties().getProperty(sqlKey);
    if (sql == null || sql.equalsIgnoreCase("")) {
      throw new SQLStatementNotFoundException();
    } else {
      return insert(poolName, sql, params);
    }
  }
public static Long insertSQLKey ( String poolName , String sqlKey , Object [ ] params ) throws SQLStatementNotFoundException , YankSQLException { String sql = YANK_POOL_MANAGER . getMergedSqlProperties ( ) . getProperty ( sqlKey ) ; if ( sql == null || sql . equalsIgnoreCase ( "" ) ) { throw new SQLStatementNotFoundException ( ) ; } else { return insert ( poolName , sql , params ) ; } }
Executes a given INSERT SQL prepared statement matching the sqlKey String in a properties file
loaded via Yank.addSQLStatements(...). Returns the auto-increment id of the inserted row.

@param poolName The name of the connection pool to query against
@param sqlKey The SQL Key found in a properties file corresponding to the desired SQL statement
value
@param params The replacement parameters
@return the auto-increment id of the inserted row, or null if no id is available
@throws SQLStatementNotFoundException if an SQL statement could not be found for the given
sqlKey String