/**
* INTERNAL:
*/
public TableSequence process(MetadataLogger logger) {
TableSequence sequence = new TableSequence();
// Process the sequence name.
if (m_pkColumnValue == null || m_pkColumnValue.equals("")) {
logger.logConfigMessage(logger.TABLE_GENERATOR_PK_COLUMN_VALUE, m_generatorName, getAccessibleObject(), getLocation());
sequence.setName(m_generatorName);
} else {
sequence.setName(m_pkColumnValue);
}
// Process the allocation size
sequence.setPreallocationSize(m_allocationSize == null ? Integer.valueOf(50) : m_allocationSize);
// Process the initial value
sequence.setInitialValue(m_initialValue == null ? Integer.valueOf(0) : m_initialValue);
// Get the database table from the table generator.
sequence.setTable(getDatabaseTable());
// If the table has a qualifer, make sure to set it on the sequence.
//sequence.setQualifier(getDatabaseTable().getTableQualifier());
// Process the pk column name
if (m_pkColumnName != null && ! m_pkColumnName.equals("")) {
sequence.setNameFieldName(m_pkColumnName);
}
// Process the pk volumn column name
if (m_valueColumnName != null && ! m_valueColumnName.equals("")) {
sequence.setCounterFieldName(m_valueColumnName);
}
return sequence;
}