Skip to content
Snippets Groups Projects
Commit 6626112b authored by tjc's avatar tjc
Browse files

implement hasTransactions()

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@6211 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 5b2321e8
No related branches found
No related tags found
No related merge requests found
......@@ -1965,7 +1965,7 @@ public class ChadoTransactionManager
/**
* Commit the transactions back to the database.
*
**/
*/
public void commit(DatabaseDocument dbDoc)
{
int retVal = dbDoc.commit(sql);
......@@ -1973,6 +1973,17 @@ public class ChadoTransactionManager
sql = new Vector();
}
/**
* Determines if there are transactions registered.
* @return
*/
public boolean hasTransactions()
{
if(sql.size() > 0)
return true;
return false;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment