// Create the MdmDimensionLevel and MemberListMap objects.
int i = 0;
for(Level level : levels){
MdmDimensionLevel mdmDimLevel = dimension.findOrCreateDimensionLevel(((OracleLevel)level).getUniqueID());
dimLevelList.add(mdmDimLevel);
// Create a MemberListMap for the dimension level.
MemberListMap mdmDimLevelMemListMap = mdmDimLevel.findOrCreateMemberListMap();
ColumnExpression keyColExp = (ColumnExpression)SyntaxObject.fromSyntax(level.getTableColumnId(), metadataProvider);
mdmDimLevelMemListMap.setKeyExpression(keyColExp);
mdmDimLevelMemListMap.setQuery(keyColExp.getQuery());
// Create the long description attribute and set the data type for it.