public boolean renameTable(String tableName, String newTableName) throws DBException
    {
        try {
            if (DBConstants.TRUE.equals((String)this.getDatabase().getProperties().get(SQLParams.NO_PREPARED_STATEMENTS_ON_CREATE)))
                this.setStatement(null, DBConstants.SQL_CREATE_TYPE);
            if (this.getStatement(DBConstants.SQL_CREATE_TYPE) == null)
            	this.setStatement(((JdbcDatabase)this.getDatabase()).getJDBCConnection().createStatement(), DBConstants.SQL_CREATE_TYPE);

            String sql = "RENAME TABLE " + tableName + " TO " + newTableName;
            this.getStatement(DBConstants.SQL_CREATE_TYPE).execute(sql);
            
            if (DBConstants.TRUE.equals((String)this.getDatabase().getProperties().get(SQLParams.NO_PREPARED_STATEMENTS_ON_CREATE)))
                this.setStatement(null, DBConstants.SQL_CREATE_TYPE);
        } catch (SQLException e) {
            throw this.getDatabase().convertError(e);
        }
        return true;
    }
public boolean renameTable ( String tableName , String newTableName ) throws DBException { try { if ( DBConstants . TRUE . equals ( ( String ) this . getDatabase ( ) . getProperties ( ) . get ( SQLParams . NO_PREPARED_STATEMENTS_ON_CREATE ) ) ) this . setStatement ( null , DBConstants . SQL_CREATE_TYPE ) ; if ( this . getStatement ( DBConstants . SQL_CREATE_TYPE ) == null ) this . setStatement ( ( ( JdbcDatabase ) this . getDatabase ( ) ) . getJDBCConnection ( ) . createStatement ( ) , DBConstants . SQL_CREATE_TYPE ) ; String sql = "RENAME TABLE " + tableName + " TO " + newTableName ; this . getStatement ( DBConstants . SQL_CREATE_TYPE ) . execute ( sql ) ; if ( DBConstants . TRUE . equals ( ( String ) this . getDatabase ( ) . getProperties ( ) . get ( SQLParams . NO_PREPARED_STATEMENTS_ON_CREATE ) ) ) this . setStatement ( null , DBConstants . SQL_CREATE_TYPE ) ; } catch ( SQLException e ) { throw this . getDatabase ( ) . convertError ( e ) ; } return true ; }
Rename this table
@param tableName
@param newTableName
@return