org.archiviststoolkit.util
Class UpgradeUtils
java.lang.Object
   org.archiviststoolkit.util.UpgradeUtils
org.archiviststoolkit.util.UpgradeUtils
- public class UpgradeUtils 
- extends java.lang.Object
Created by IntelliJ IDEA.
 User: Nathan Stevens
 Date: Jul 23, 2008
 Time: 1:26:04 PM
 To change this template use File | Settings | File Templates.
 
| Method Summary | 
| static int | getFieldId(java.sql.Statement stmt,
           int tableId,
           java.lang.String fieldName)
 | 
| static int | getFieldId(java.sql.Statement stmt,
           java.lang.String tableName,
           java.lang.String fieldName)
 | 
| static int | getTableId(java.sql.Statement stmt,
           java.lang.String tableName)
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
UpgradeUtils
public UpgradeUtils()
getTableId
public static int getTableId(java.sql.Statement stmt,
                             java.lang.String tableName)
                      throws java.sql.SQLException
- 
- Parameters:
- stmt- The SQL statement used to access the database
- tableName- The name of the table
- Returns:
- The table id for that given table
- Throws:
- java.sql.SQLException
 
getFieldId
public static int getFieldId(java.sql.Statement stmt,
                             int tableId,
                             java.lang.String fieldName)
                      throws java.sql.SQLException
- 
- Parameters:
- stmt- The SQL statement used to access the database
- tableId- The table id
- fieldName- The field name
- Returns:
- the field id
- Throws:
- java.sql.SQLException
 
getFieldId
public static int getFieldId(java.sql.Statement stmt,
                             java.lang.String tableName,
                             java.lang.String fieldName)
                      throws java.sql.SQLException
- 
- Parameters:
- stmt- The SQL statement used to access the database
- tableName- The name of the table
- fieldName- The field name
- Returns:
- field id
- Throws:
- java.sql.SQLException