Skip to content

Commit cef7caa

Browse files
committed
add rowset schema definitions based on MS-SSAS v20251031 and fix old
Signed-off-by: dbulahov <bulahovdenis@gmail.com>
1 parent 747569b commit cef7caa

File tree

13 files changed

+2424
-778
lines changed

13 files changed

+2424
-778
lines changed

.markdownlint.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"MD024": false
3+
}

api/src/main/java/org/eclipse/daanse/xmla/api/discover/mdschema/actions/MdSchemaActionsResponseRow.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public interface MdSchemaActionsResponseRow {
3737
/**
3838
* @return The name of the cube.
3939
*/
40-
String cubeName();
40+
Optional<String> cubeName();
4141

4242
/**
4343
* @return The name of this action.
@@ -58,7 +58,7 @@ public interface MdSchemaActionsResponseRow {
5858
* in which the action is performed. The COORDINATE MUST resolve to the object specified in
5959
* COORDINATE_TYPE.
6060
*/
61-
String coordinate();
61+
Optional<String> coordinate();
6262

6363
/**
6464
* @return An enumeration that specifies how the COORDINATE restriction column is interpreted. The
@@ -67,7 +67,7 @@ public interface MdSchemaActionsResponseRow {
6767
* coordinate refers to a member. 5 - Action coordinate refers to a set. 6 - Action
6868
* coordinate refers to a cell.
6969
*/
70-
CoordinateTypeEnum coordinateType();
70+
Optional<CoordinateTypeEnum> coordinateType();
7171

7272
/**
7373
* @return The caption for the action. The action name is used if no caption was specified and no

client/soapmessage/src/main/java/org/eclipse/daanse/xmla/client/soapmessage/Convertor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -845,9 +845,9 @@ static List<MdSchemaActionsResponseRow> convertToMdSchemaActionsResponseRow(SOAP
845845
return l.stream()
846846
.map(m -> (MdSchemaActionsResponseRow) new MdSchemaActionsResponseRowR(
847847
Optional.ofNullable(m.get(CATALOG_NAME)), Optional.ofNullable(m.get(SCHEMA_NAME)),
848-
m.get(CUBE_NAME), Optional.ofNullable(m.get(ACTION_NAME)),
849-
Optional.ofNullable(ActionTypeEnum.fromValue(m.get(ACTION_TYPE))), m.get(COORDINATE),
850-
CoordinateTypeEnum.fromValue(m.get(COORDINATE_TYPE)),
848+
Optional.ofNullable(m.get(CUBE_NAME)), Optional.ofNullable(m.get(ACTION_NAME)),
849+
Optional.ofNullable(ActionTypeEnum.fromValue(m.get(ACTION_TYPE))), Optional.ofNullable(m.get(COORDINATE)),
850+
Optional.ofNullable(CoordinateTypeEnum.fromValue(m.get(COORDINATE_TYPE))),
851851
Optional.ofNullable(m.get(ACTION_CAPTION)), Optional.ofNullable(m.get(DESCRIPTION_UC)),
852852
Optional.ofNullable(m.get(CONTENT_UC)), Optional.ofNullable(m.get(APPLICATION)),
853853
Optional.ofNullable(InvocationEnum.fromValue(m.get(INVOCATION)))))

definition/README.md

Lines changed: 2391 additions & 748 deletions
Large diffs are not rendered by default.

definition/rowset-dbschema-catalogs.xsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<!-- DBSCHEMA_CATALOGS row definition (MS-SSAS v20251031) -->
99
<xsd:complexType name="dbschema-catalogs-row">
1010
<xsd:sequence>
11-
<xsd:element name="CATALOG_NAME" type="xsd:string" />
11+
<xsd:element name="CATALOG_NAME" type="xsd:string" minOccurs="0"/>
1212
<xsd:element name="DESCRIPTION" type="xsd:string" minOccurs="0" />
1313
<xsd:element name="ROLES" type="xsd:string" minOccurs="0" />
1414
<xsd:element name="DATE_MODIFIED" type="xsd:dateTime" minOccurs="0" />

definition/rowset-discover-enumerators.xsd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
<xsd:sequence>
1111
<xsd:element name="EnumName" type="xsd:string" />
1212
<xsd:element name="EnumDescription" type="xsd:string" minOccurs="0" />
13-
<xsd:element name="EnumType" type="xsd:string" minOccurs="0" />
14-
<xsd:element name="ElementName" type="xsd:string" minOccurs="0" />
13+
<xsd:element name="EnumType" type="xsd:string" />
14+
<xsd:element name="ElementName" type="xsd:string" />
1515
<xsd:element name="ElementDescription" type="xsd:string" minOccurs="0" />
1616
<xsd:element name="ElementValue" type="xsd:string" minOccurs="0" />
1717
</xsd:sequence>

definition/rowset-discover-literals.xsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<xsd:complexType name="discover-literals-row">
1010
<xsd:sequence>
1111
<xsd:element name="LiteralName" type="xsd:string" />
12-
<xsd:element name="LiteralValue" type="xsd:string" minOccurs="0" />
12+
<xsd:element name="LiteralValue" type="xsd:string" />
1313
<xsd:element name="LiteralInvalidChars" type="xsd:string" minOccurs="0" />
1414
<xsd:element name="LiteralInvalidStartingChars" type="xsd:string" minOccurs="0" />
1515
<xsd:element name="LiteralMaxLength" type="xsd:int" minOccurs="0" />

definition/rowset-discover-properties.xsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<xsd:element name="PropertyName" type="xsd:string" />
1212
<xsd:element name="PropertyDescription" type="xsd:string" minOccurs="0" />
1313
<xsd:element name="PropertyType" type="xsd:string" minOccurs="0" />
14-
<xsd:element name="PropertyAccessType" type="xsd:string" minOccurs="0" />
14+
<xsd:element name="PropertyAccessType" type="xsd:string" />
1515
<xsd:element name="IsRequired" type="xsd:boolean" minOccurs="0" />
1616
<xsd:element name="Value" type="xsd:string" minOccurs="0" />
1717
</xsd:sequence>

definition/rowset-mdschema-actions.xsd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
<xsd:sequence>
1111
<xsd:element name="CATALOG_NAME" type="xsd:string" minOccurs="0" />
1212
<xsd:element name="SCHEMA_NAME" type="xsd:string" minOccurs="0" />
13-
<xsd:element name="CUBE_NAME" type="xsd:string" />
13+
<xsd:element name="CUBE_NAME" type="xsd:string" minOccurs="0" />
1414
<xsd:element name="ACTION_NAME" type="xsd:string" minOccurs="0" />
1515
<xsd:element name="ACTION_TYPE" type="xsd:int" minOccurs="0" />
16-
<xsd:element name="COORDINATE" type="xsd:string" />
17-
<xsd:element name="COORDINATE_TYPE" type="xsd:int" />
16+
<xsd:element name="COORDINATE" type="xsd:string" minOccurs="0" />
17+
<xsd:element name="COORDINATE_TYPE" type="xsd:int" minOccurs="0" />
1818
<xsd:element name="ACTION_CAPTION" type="xsd:string" minOccurs="0" />
1919
<xsd:element name="DESCRIPTION" type="xsd:string" minOccurs="0" />
2020
<xsd:element name="CONTENT" type="xsd:string" minOccurs="0" />

model.record/src/main/java/org/eclipse/daanse/xmla/model/record/discover/mdschema/actions/MdSchemaActionsResponseRowR.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
import org.eclipse.daanse.xmla.api.common.enums.InvocationEnum;
2121
import org.eclipse.daanse.xmla.api.discover.mdschema.actions.MdSchemaActionsResponseRow;
2222

23-
public record MdSchemaActionsResponseRowR(Optional<String> catalogName, Optional<String> schemaName, String cubeName,
24-
Optional<String> actionName, Optional<ActionTypeEnum> actionType, String coordinate,
25-
CoordinateTypeEnum coordinateType, Optional<String> actionCaption, Optional<String> description,
23+
public record MdSchemaActionsResponseRowR(Optional<String> catalogName, Optional<String> schemaName, Optional<String> cubeName,
24+
Optional<String> actionName, Optional<ActionTypeEnum> actionType, Optional<String> coordinate,
25+
Optional<CoordinateTypeEnum> coordinateType, Optional<String> actionCaption, Optional<String> description,
2626
Optional<String> content, Optional<String> application, Optional<InvocationEnum> invocation)
2727
implements MdSchemaActionsResponseRow {
2828

0 commit comments

Comments
 (0)