}
public static PrimaryKeyInfo getEasyMockPrimaryKeyInfo(String catalog,
String schemaName, String tableName, String columnName,
short keySequence, String pkName, boolean replay) {
PrimaryKeyInfo pki = createMock(PrimaryKeyInfo.class);
expect(pki.getCatalogName()).andReturn(catalog).anyTimes();
expect(pki.getColumnName()).andReturn(columnName).anyTimes();
expect(pki.getDatabaseObjectType()).andReturn(DatabaseObjectType.PRIMARY_KEY)
.anyTimes();
expect(pki.getKeySequence()).andReturn(keySequence).anyTimes();
expect(pki.getQualifiedColumnName()).andReturn(columnName).anyTimes();
expect(pki.getQualifiedName()).andReturn(pkName).anyTimes();
expect(pki.getSchemaName()).andReturn(schemaName).anyTimes();
expect(pki.getSimpleName()).andReturn(pkName).anyTimes();
expect(pki.getTableName()).andReturn(tableName).anyTimes();
if (replay) {
replay(pki);
}
return pki;
}