Class DB_Key
- java.lang.Object
-
- org.apache.derby.impl.tools.dblook.DB_Key
-
public class DB_Key extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static java.sql.PreparedStatementgetReferenceColsprivate static booleanprintedHeader
-
Constructor Summary
Constructors Constructor Description DB_Key()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static voidcreateKeysFrom(java.sql.ResultSet rs)private static java.lang.StringBuffercreateKeyString(java.lang.String tableId, java.lang.String tableName, java.sql.ResultSet aKey)static voiddoKeys(java.sql.Connection conn)private static java.lang.StringexpandKeyType(char keyType)(package private) static voidmakeDeferredClauses(java.lang.StringBuffer buffer, java.sql.ResultSet constraint, int stateColumn)private static java.lang.StringmakeFKReferenceClause(java.lang.String constraintId, char deleteChar, char updateChar)private static voidprintHeader()
-
-
-
Method Detail
-
doKeys
public static void doKeys(java.sql.Connection conn) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
createKeysFrom
private static void createKeysFrom(java.sql.ResultSet rs) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
createKeyString
private static java.lang.StringBuffer createKeyString(java.lang.String tableId, java.lang.String tableName, java.sql.ResultSet aKey) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
expandKeyType
private static java.lang.String expandKeyType(char keyType)
-
makeFKReferenceClause
private static java.lang.String makeFKReferenceClause(java.lang.String constraintId, char deleteChar, char updateChar) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
makeDeferredClauses
static void makeDeferredClauses(java.lang.StringBuffer buffer, java.sql.ResultSet constraint, int stateColumn) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
printHeader
private static void printHeader()
-
-