}
private AddModifySequenceDialog createCustomDialog() throws SQLException
{
ResultSet rs = null;
AddModifySequenceDialog result = null;
String simpleName = _info[0].getSimpleName();
DatabaseObjectQualifier qualifier =
new DatabaseObjectQualifier(_info[0].getCatalogName(), _info[0].getSchemaName());
String sql = _dialect.getSequenceInformationSQL(simpleName, qualifier, _sqlPrefs);
try
{
rs = executeQuery(sql, simpleName);
if (rs.next())
{
// Here we use index inside of column names so that we don't have to alias the columns in the
// dialect. Different dialects call these sequence information columns by different names. Just
// make sure to preserve the order in the dialect.
String last_value = rs.getString(1); // last_value
String max_value = rs.getString(2); // max_value
String min_value = rs.getString(3); // min_value
String cache_value = rs.getString(4); // cache_value
String increment_by = rs.getString(5); // increment_by
int cycleInt = rs.getInt(6); // is_cycled
boolean is_cyled = cycleInt == 1 ? true : false;
result =
new AddModifySequenceDialog( AddModifySequenceDialog.MODIFY_MODE,
simpleName,
last_value,
increment_by,
min_value,
max_value,