public class DBTableExistenceChecker extends java.lang.Object
Constructor and Description |
---|
DBTableExistenceChecker() |
Modifier and Type | Method and Description |
---|---|
void |
deleteRecord(java.lang.String tableName,
java.lang.String url) |
java.lang.String |
getTableName(java.lang.String url)
This method will return a tableName for a given URL in the storing table
|
boolean |
isTableNameExisted(java.lang.String tableName)
Check if a given table name existed
|
boolean |
isURLExisted(java.lang.String url)
Check if a given url existed.
|
void |
storeTableRecord(java.lang.String tableName,
java.lang.String url)
Method will store a gnerated table info (table name and url) into a
persistant table
|
public DBTableExistenceChecker()
public boolean isURLExisted(java.lang.String url) throws java.sql.SQLException, java.lang.ClassNotFoundException
url
- Stringjava.sql.SQLException
java.lang.ClassNotFoundException
public boolean isTableNameExisted(java.lang.String tableName) throws java.sql.SQLException, java.lang.ClassNotFoundException
tableName
- Stringjava.sql.SQLException
java.lang.ClassNotFoundException
public void storeTableRecord(java.lang.String tableName, java.lang.String url) throws java.sql.SQLException, java.lang.ClassNotFoundException
tableName
- Stringurl
- Stringjava.sql.SQLException
java.lang.ClassNotFoundException
public void deleteRecord(java.lang.String tableName, java.lang.String url) throws java.sql.SQLException, java.lang.ClassNotFoundException
java.sql.SQLException
java.lang.ClassNotFoundException
public java.lang.String getTableName(java.lang.String url) throws java.sql.SQLException, java.lang.ClassNotFoundException
url
- Stringjava.sql.SQLException
java.lang.ClassNotFoundException