com.tensegrity.palowebviewer.server.paloaccessor
Class PaloAccessor

java.lang.Object
  extended by com.tensegrity.palowebviewer.server.paloaccessor.PaloAccessor
All Implemented Interfaces:
IXConsts

public class PaloAccessor
extends java.lang.Object
implements IXConsts


Field Summary
 
Fields inherited from interface com.tensegrity.palowebviewer.modules.paloclient.client.IXConsts
MAX_TYPE_ID, TYPE_AXIS, TYPE_CONSOLIDATED_ELEMENT, TYPE_CUBE, TYPE_DATABASE, TYPE_DIMENSION, TYPE_ELEMENT, TYPE_ELEMENT_NODE, TYPE_NAME_AXIS, TYPE_NAME_CONSOLIDATED_ELEMENT, TYPE_NAME_CUBE, TYPE_NAME_DATABASE, TYPE_NAME_DIMENSION, TYPE_NAME_ELEMENT, TYPE_NAME_ELEMENT_NODE, TYPE_NAME_ROOT, TYPE_NAME_SERVER, TYPE_NAME_SUBSET, TYPE_NAME_VIEW, TYPE_ROOT, TYPE_SERVER, TYPE_SUBSET, TYPE_VIEW, XPATH_FIELD_SEPARATOR, XPATH_SEPARATOR
 
Constructor Summary
PaloAccessor()
           
 
Method Summary
 boolean checkExistance(XPath ctx, java.lang.String id, org.palo.api.Connection connection)
           
 XResult fetch(XQueryPath query, org.palo.api.Connection connection)
           
 XObject getLastObject(XPath path, org.palo.api.Connection connection)
          constructs object for given path.
 XElement[] getParentsOf(XPath ctx, java.lang.String elementId, org.palo.api.Connection connection)
           
 XRoot getRoot(IConnectionPool pool)
          constructs root element for server
 XRoot init(XRoot root, IConnectionPool pool, PaloConfiguration cfg)
          initializes root object.
 XObject[] loadChildren(XPath path, int type, org.palo.api.Connection connection)
           
 java.lang.String save(XViewPath viewPath, org.palo.api.Connection connection)
           
 void update(XPath cubePath, IXPoint point, IResultElement value, org.palo.api.Connection connection, java.util.Locale locale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaloAccessor

public PaloAccessor()
Method Detail

getRoot

public XRoot getRoot(IConnectionPool pool)
constructs root element for server


getLastObject

public XObject getLastObject(XPath path,
                             org.palo.api.Connection connection)
                      throws InvalidObjectPathException
constructs object for given path. This object has parent, so always there is way to access root.

Parameters:
connection - - connection for given path. You should supply correct connection to this path, according to server. Server name - is second object in path string array.
Throws:
InvalidObjectPathException

init

public XRoot init(XRoot root,
                  IConnectionPool pool,
                  PaloConfiguration cfg)
initializes root object.


loadChildren

public XObject[] loadChildren(XPath path,
                              int type,
                              org.palo.api.Connection connection)
                       throws InvalidObjectPathException
Throws:
InvalidObjectPathException

getParentsOf

public XElement[] getParentsOf(XPath ctx,
                               java.lang.String elementId,
                               org.palo.api.Connection connection)
                        throws InvalidObjectPathException
Throws:
InvalidObjectPathException

fetch

public XResult fetch(XQueryPath query,
                     org.palo.api.Connection connection)
              throws InvalidObjectPathException
Throws:
InvalidObjectPathException

update

public void update(XPath cubePath,
                   IXPoint point,
                   IResultElement value,
                   org.palo.api.Connection connection,
                   java.util.Locale locale)
            throws InvalidObjectPathException
Throws:
InvalidObjectPathException

save

public java.lang.String save(XViewPath viewPath,
                             org.palo.api.Connection connection)
                      throws InvalidObjectPathException
Throws:
InvalidObjectPathException

checkExistance

public boolean checkExistance(XPath ctx,
                              java.lang.String id,
                              org.palo.api.Connection connection)
                       throws InvalidObjectPathException
Throws:
InvalidObjectPathException