Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Extending the Data Warehouse

Following the instructions within the tutorial to extend the report data warehouse we are having problems with the following method: createTableDescriptors()

The tutorial states that the method should be overriden as follows:

protected ITableDescriptor[] createTableDescriptors()
{
ITableDescriptor numbersStorageTable =
createNumbersStorageFact();
return new ITableDescriptor[] { numbersStorageTable };
}

However, the version of Jazz we are using (v JazzTeamServer-1.0M5a) defines the method as follows:

protected void createTableDescriptors() throws TeamRepositoryException
{
// TODO Auto-generated method stub
}

Has anyone encountered this same problem with the clash of return types? Any suggestions please?

0 votes



One answer

Permanent link
Hi,

The data warehouse API changed slightly since the article was written.

- I will update the page in the wiki so that it reflects the current
codebase.
- As you've seen, createTableDescriptors() no longer needs to return the
tables, as all the addition happens when you call the
createTableDescriptor() method. Here's an updated version from our
example (NumbersTableDescriptorFactory):

public class NumbersTableDescriptorFactory extends
AbstractTableDescriptorFactory {

protected void createTableDescriptors() throws
TeamRepositoryException {
createNumbersStorageFact();
}

private ITableDescriptor createNumbersStorageFact()
throws TeamRepositoryException {
IFieldDescriptor id = createFieldDescriptor(
ISnapshotService.FACT_ID_COLUMN, FieldKind.LONG,
FieldFlags.DEFAULT);
IFieldDescriptor timeId = createFieldDescriptor(
ISnapshotService.TIME_ID_COLUMN, FieldKind.LONG,
FieldFlags.QUERYABLE);
IFieldDescriptor continent = createFieldDescriptor(
INumbersSnapshotService.CONTINENT_COLUMN, FieldKind.STRING,
FieldFlags.QUERYABLE | FieldFlags.PARAMETER |
FieldFlags.SELECT);
IFieldDescriptor number = createFieldDescriptor(
INumbersSnapshotService.NUMBER_COLUMN, FieldKind.INTEGER,
FieldFlags.SELECT);
timeId.setReference(getTableDescriptor(
ICommonSnapshotService.SNAPSHOT_NAME,
ICommonSnapshotService.TIME_DIMENSION));
ITableDescriptor numbersStorageTable = createTableDescriptor(
INumbersSnapshotService.NUMBERS_FACT_TABLE,
new IFieldDescriptor[] { id, timeId, continent, number
}, id);
return numbersStorageTable;
}
}

Hope this helps.

james
Jazz Reports Team Lead

farrugiarobert wrote:
Following the instructions within the tutorial to extend the report
data warehouse we are having problems with the following method:
createTableDescriptors()

The tutorial states that the method should be overriden as follows:

protected ITableDescriptor[] createTableDescriptors()
{
ITableDescriptor numbersStorageTable =
createNumbersStorageFact();
return new ITableDescriptor[] { numbersStorageTable };
}

However, the version of Jazz we are using (v JazzTeamServer-1.0M5a)
defines the method as follows:

protected void createTableDescriptors() throws TeamRepositoryException

{
// TODO Auto-generated method stub
}

Has anyone encountered this same problem with the clash of return
types? Any suggestions please?

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,943

Question asked: Mar 17 '08, 6:46 a.m.

Question was seen: 6,811 times

Last updated: Mar 17 '08, 6:46 a.m.

Confirmation Cancel Confirm