Subversion Repositories DevTools

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1293 dpurdie 1
###############################################################################
2
# Codestriker: Copyright (c) 2001, 2002 David Sitsky.  All rights reserved.
3
# sits@users.sourceforge.net
4
#
5
# This program is free software; you can redistribute it and modify it under
6
# the terms of the GPL.
7
 
8
# Connection class which actually doesn't connect to a real bug database.
9
# All methods are no-ops.
10
 
11
package Codestriker::BugDB::NoConnection;
12
 
13
use strict;
14
use DBI;
15
 
16
# Static method for building a database connection.
17
sub get_connection($) {
18
    my ($type) = @_;
19
    my $self = {};
20
    bless $self, $type;
21
}
22
 
23
# Method for releasing a database connection.
24
sub release_connection($) {
25
}
26
 
27
# Return true if the specified bugid exists in the bug database,
28
# false otherwise.
29
sub bugid_exists($$) {
30
    return 1;
31
}
32
 
33
# Method for updating the bug with information that a code review has been
34
# created/closed/committed against this bug.
35
sub update_bug($$$$) {
36
}
37
 
38
1;