gov.nasa.pds.report.update.db
Class DatabaseManager

java.lang.Object
  extended by gov.nasa.pds.report.update.db.DatabaseManager
Direct Known Subclasses:
DBUtil

public class DatabaseManager
extends Object

Author:
jpadams

Field Summary
protected  Connection conn
           
protected  DBProperties dbProps
           
protected  Logger log
           
 
Constructor Summary
protected DatabaseManager(String path)
           
 
Method Summary
protected  void closeConnect()
           
protected  void connect()
           
protected  int executeUpdate(String sql)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conn

protected Connection conn

dbProps

protected DBProperties dbProps

log

protected Logger log
Constructor Detail

DatabaseManager

protected DatabaseManager(String path)
                   throws FileNotFoundException
Parameters:
path -
Throws:
FileNotFoundException
Method Detail

closeConnect

protected final void closeConnect()

connect

protected void connect()
                throws SQLException
Throws:
SQLException

executeUpdate

protected final int executeUpdate(String sql)
                           throws SQLException
Parameters:
sql -
Returns:
Throws:
SQLException


Copyright © 2010-2014 Planetary Data System. All Rights Reserved.