From 4485f7c18043c32539e029ee37c654d45e213f7d Mon Sep 17 00:00:00 2001 From: Luc Boudreau Date: Thu, 5 Mar 2009 18:21:16 +0000 Subject: [PATCH] Made the Axis enumeration serializable and all the components of the org.olap4j.mdx package too, thus allowing their use through RPC. git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@148 c6a108a4-781c-0410-a6c6-c2d559e19af0 --- src/org/olap4j/Axis.java | 3 ++- src/org/olap4j/mdx/IdentifierNode.java | 3 ++- src/org/olap4j/mdx/ParseRegion.java | 4 +++- src/org/olap4j/mdx/ParseTreeNode.java | 3 ++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/org/olap4j/Axis.java b/src/org/olap4j/Axis.java index 558f569..c7561ef 100644 --- a/src/org/olap4j/Axis.java +++ b/src/org/olap4j/Axis.java @@ -9,6 +9,7 @@ */ package org.olap4j; +import java.io.Serializable; import java.util.Locale; /** @@ -24,7 +25,7 @@ * @version $Id$ * @since Oct 23, 2006 */ -public interface Axis { +public interface Axis extends Serializable { /** * @deprecated Will be removed before olap4j 1.0. diff --git a/src/org/olap4j/mdx/IdentifierNode.java b/src/org/olap4j/mdx/IdentifierNode.java index 123edd8..1cc118c 100644 --- a/src/org/olap4j/mdx/IdentifierNode.java +++ b/src/org/olap4j/mdx/IdentifierNode.java @@ -12,6 +12,7 @@ import org.olap4j.impl.Olap4jUtil; import org.olap4j.type.Type; +import java.io.Serializable; import java.util.*; /** @@ -312,7 +313,7 @@ static void quoteMdxIdentifier( * To parse an identifier into a list of segments, use the method * {@link IdentifierNode#parseIdentifier(String)}.

*/ - public static class Segment { + public static class Segment implements Serializable{ final String name; final IdentifierNode.Quoting quoting; private final ParseRegion region; diff --git a/src/org/olap4j/mdx/ParseRegion.java b/src/org/olap4j/mdx/ParseRegion.java index cf0b116..b72d17b 100644 --- a/src/org/olap4j/mdx/ParseRegion.java +++ b/src/org/olap4j/mdx/ParseRegion.java @@ -9,6 +9,8 @@ */ package org.olap4j.mdx; +import java.io.Serializable; + /** * Region of parser source code. * @@ -32,7 +34,7 @@ * @version $Id$ * @author jhyde */ -public class ParseRegion { +public class ParseRegion implements Serializable{ private final int startLine; private final int startColumn; private final int endLine; diff --git a/src/org/olap4j/mdx/ParseTreeNode.java b/src/org/olap4j/mdx/ParseTreeNode.java index 2c5851e..a0e92e7 100644 --- a/src/org/olap4j/mdx/ParseTreeNode.java +++ b/src/org/olap4j/mdx/ParseTreeNode.java @@ -9,6 +9,7 @@ */ package org.olap4j.mdx; +import java.io.Serializable; import org.olap4j.type.Type; /** @@ -21,7 +22,7 @@ * @version $Id$ * @since Jun 4, 2007 */ -public interface ParseTreeNode { +public interface ParseTreeNode extends Serializable { /** * Accepts a visitor to this MDX parse tree node. *