|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.wordhoard.tools.BuildUtils
public class BuildUtils
Build utilities.
Constructor Summary | |
---|---|
BuildUtils()
|
Method Summary | |
---|---|
static java.lang.String |
createTempDir()
Creates the temp dir. |
static void |
deleteTempDir()
Deletes the temp dir. |
static void |
emsg(java.lang.String msg)
Issues an error message. |
static java.lang.String |
formatElapsedTime(long startTime,
long endTime)
Formats elapsed time. |
static java.sql.Connection |
getConnection(java.lang.String dbname,
java.lang.String username,
java.lang.String password)
Gets a connection to the static object model database. |
static int |
getNumErrorMessages()
Gets the number of error messages issued. |
static long |
getTaggingDataFlags(org.w3c.dom.Element el)
Gets tagging data flags. |
static java.util.Map |
getWordClassMap(java.sql.Connection c)
Gets the word class map. |
static void |
initHibernate(java.lang.String dbname,
java.lang.String username,
java.lang.String password)
Initializes Hibernate. |
static void |
reportNumErrors()
Reports the number of errors. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BuildUtils()
Method Detail |
---|
public static void emsg(java.lang.String msg)
msg
- Error message.
Err
public static int getNumErrorMessages()
public static java.sql.Connection getConnection(java.lang.String dbname, java.lang.String username, java.lang.String password) throws java.lang.Exception
dbname
- Database name.username
- MySQL username.password
- MySQL password.
java.lang.Exception
public static void initHibernate(java.lang.String dbname, java.lang.String username, java.lang.String password) throws java.lang.Exception
dbname
- Database name. May be in form "dbname" for a database on
localhost or in form "host/dbname" or "host:port/dbname" for a
database on a remote host.username
- MySQL username.password
- MySQL password.
java.lang.Exception
public static long getTaggingDataFlags(org.w3c.dom.Element el)
el
- "taggingData" element.
public static java.util.Map getWordClassMap(java.sql.Connection c) throws java.lang.Exception
c
- Connection to database.
java.lang.Exception
public static java.lang.String formatElapsedTime(long startTime, long endTime)
startTime
- Start time in milliseconds.endTime
- End time in milliseconds.
public static void reportNumErrors()
public static java.lang.String createTempDir() throws java.lang.Exception
java.lang.Exception
public static void deleteTempDir() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |