* @return A Schema.
*/
public static Schema initTableSchema(String tableName,
String dbName)
{
Schema schema = null;
DBConnection db = null;
try
{
if (dbName == null)
{
// Get a connection to the db.
db = TurbineDB.getConnection();
}
else
{
// Get a connection to the db.
db = TurbineDB.getConnection( dbName );
}
Connection connection = db.getConnection();
schema = new Schema().schema(connection, tableName);
}
catch(Exception e)
{
Log.error(e);
throw new Error("Error in BasePeer.initTableSchema(" +