void CreateTableSqlStatementBuilder::addColumnDefinition(const Utf8String &columnName,
                                                         ColumnType columnType,
                                                         bool isPrimaryKey)
{
    sqlStatementBuilder.clear();

    ColumnDefinition columnDefinition;
    columnDefinition.setName(columnName);
    columnDefinition.setType(columnType);
    columnDefinition.setIsPrimaryKey(isPrimaryKey);

    columnDefinitions.append(columnDefinition);
}
ColumnDefinition AppColumnDefinitionFactory::getDefinition(ColumnType type)
{
   ColumnDefinition definition;
   switch (type) {
   case ColumnType::Text:
      definition = ColumnDefinition(new TextDefinition);
      break;
   case ColumnType::DateTime:
      definition = ColumnDefinition(new DateTimeDefinition);
      break;
   case ColumnType::Selection:
      definition = ColumnDefinition(new SelectionDefinition);
      break;
   case ColumnType::None:
      break;
   }

   if (definition) {
      definition->setType(type);
   }

   return definition;
}