|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdea.albums.DB
This class is the database interface class for all the programs
Field Summary | |
static int |
TOCD
publish the CD |
static java.lang.String |
topStr
from DB top of the input tree |
static int |
TOWEB
publish the web |
Fields inherited from interface dea.common.IDebugLevels |
BASIC, DEBUG_ALL, ERROR, METH_DETAIL, METH_ENTER, METH_EXIT, METH_EXT, METH_GET, METH_SET, METH_VARS, SHOW_PASS |
Constructor Summary | |
DB()
|
Method Summary | |
void |
closeCon()
close DB connections and logs. |
java.sql.Connection |
connect()
connect to the DB. |
boolean |
getBLocal()
Return the value of bLocal |
java.lang.String |
getFtpPasswd()
|
java.lang.String |
getFtpUser()
|
java.lang.String |
getHostAddr()
|
java.lang.String |
getHostDir()
Return the value of hostDir |
java.lang.String |
getHostTop()
|
int |
getIconWidth()
Return the value of iconWidth |
int |
getKey(java.lang.String tabNam)
get next key for table name |
java.util.Hashtable |
getKeys()
|
java.lang.String |
getMenuStr()
Return the value of menuStr |
java.lang.String |
getOutStr()
Return the value of outStr |
void |
getPARMS()
read parms from PARMS table into local vars. |
java.sql.ResultSet |
getPicData(long pnum)
|
java.lang.String |
getRawStr()
Return the value of rawStr |
java.lang.String |
getRelStr()
Return the value of relStr |
java.lang.String |
getTopStr()
Return the value of topStr |
java.lang.String |
getWebStr()
Return the value of webStr |
int |
getWebWidth()
Return the value of webWidth |
void |
init()
Used to create tables if needed now basicly just calls getPARMS. |
static void |
loadKeys()
get next key for table name |
boolean |
mkdirs(java.lang.String s)
Creates subdirectories as needed to complete path. |
long |
nextKey(java.lang.String tabNam)
|
void |
parse(java.lang.String[] args)
parses the command line arguments. |
void |
rmTree(java.io.File dir)
delete a file tree |
void |
setFtpPasswd(java.lang.String newFtpPasswd)
|
void |
setFtpUser(java.lang.String newFtpUser)
|
void |
setHostAddr(java.lang.String newHostAddr)
|
void |
setHostTop(java.lang.String newHostTop)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TOWEB
public static final int TOCD
public static java.lang.String topStr
Constructor Detail |
public DB()
Method Detail |
public boolean getBLocal() throws java.sql.SQLException
java.sql.SQLException
public int getIconWidth() throws java.sql.SQLException
java.sql.SQLException
public int getWebWidth() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getTopStr() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getOutStr() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getMenuStr() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getRawStr() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getWebStr() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getRelStr() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getHostDir() throws java.sql.SQLException
java.sql.SQLException
public void parse(java.lang.String[] args) throws java.lang.Exception
args
- A string array of the command line arguments.
java.lang.Exception
public java.sql.Connection connect() throws java.sql.SQLException, java.lang.ClassNotFoundException
java.sql.SQLException
java.lang.ClassNotFoundException
public void init() throws java.sql.SQLException, java.lang.ClassNotFoundException
java.sql.SQLException
java.lang.ClassNotFoundException
public void getPARMS() throws java.sql.SQLException
java.sql.SQLException
public void closeCon() throws java.sql.SQLException
java.sql.SQLException
public void rmTree(java.io.File dir) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public boolean mkdirs(java.lang.String s) throws java.io.IOException
s
- String representing the directory path that needs to be created.
java.io.IOException
- if unable to create directorypublic int getKey(java.lang.String tabNam)
public java.sql.ResultSet getPicData(long pnum)
public static void loadKeys()
public java.util.Hashtable getKeys()
public long nextKey(java.lang.String tabNam)
public void setHostAddr(java.lang.String newHostAddr)
public java.lang.String getHostAddr()
public void setHostTop(java.lang.String newHostTop)
public java.lang.String getHostTop()
public void setFtpUser(java.lang.String newFtpUser)
public java.lang.String getFtpUser()
public void setFtpPasswd(java.lang.String newFtpPasswd)
public java.lang.String getFtpPasswd()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |