|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.bloof.db.Database ca.utoronto.JCVSReport.MetricDatabase
A McKoi database for storing metrics based on statistics gathered from CVS repositories
Field Summary |
Constructor Summary | |
MetricDatabase(Connection connection)
Initialize from an existing connection |
Method Summary | |
protected void |
addCvsOperation(History aRecord)
Update the database by adding the cvs operation captured by the given history record. |
void |
close()
Close the metric database |
String |
getRevisionId(String file,
String version)
Query the revision id of the file given the file pathname and version. |
boolean |
isDeletedFile(String filepath)
Checks if the file with the given path has been deleted from CVS. |
void |
populateWithHistory(Iterator historyIter)
Populate the database with CVS history data. |
PreparedStatement |
prepareStatement(String statement)
Prepare an SQL statement for execution |
void |
setAutoCommit(boolean value)
Sets auto commit to the given value. |
Methods inherited from class net.sf.bloof.db.Database |
addDeletedFile, addFile, addNewDeveloper, addRevision, executeQuery, formatResultSet, getDevelopersOrderedByName, getFilesOrderdByPath, getOnlyRowResultSet, getProjectScmAccess, getTimespanBoundaries, populateDatabase, proccessDBScript, updateDatabase |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MetricDatabase(Connection connection) throws SQLException
connection
- An existing connectionMethod Detail |
public void close() throws IOException, SQLException
SQLException
- on error
IOException
- on errorpublic PreparedStatement prepareStatement(String statement) throws SQLException
statement
- An SQL statement
SQLException
- if the statement cannot be compiledpublic void populateWithHistory(Iterator historyIter) throws SQLException
historyIter
- An iterator over CVS history records
SQLException
public String getRevisionId(String file, String version) throws SQLException
file
- Pathname of the file in CVS.version
- Version of the file in CVS.
SQLException
public boolean isDeletedFile(String filepath) throws SQLException
filepath
- The path to the file
SQLException
public void setAutoCommit(boolean value) throws SQLException
value
- Boolean value to set autocommit to.
SQLException
protected void addCvsOperation(History aRecord) throws SQLException
aRecord
- The history record.
SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |