org.exoplatform.wcm.benchmark.preparation.repository
Class FastAPI

java.lang.Object
  extended by org.exoplatform.wcm.benchmark.preparation.repository.FastAPI

public class FastAPI
extends java.lang.Object

Fast access to the JCR.


Nested Class Summary
protected static class FastAPI.DCPropertyQName
          The Class DCPropertyQName.
 
Field Summary
protected  org.apache.commons.logging.Log log
          The log.
 
Constructor Summary
FastAPI(org.exoplatform.services.jcr.impl.core.SessionImpl session)
          Instantiates a new fast api.
 
Method Summary
protected  void addNode_file(java.lang.String name, int orderNum, java.lang.String metadata, org.exoplatform.services.jcr.impl.dataflow.TransientNodeData parentNode, org.exoplatform.services.jcr.impl.dataflow.TransientValueData fData, java.lang.String mimeType, java.lang.String title)
          Adds the node_file.
 org.exoplatform.services.jcr.impl.dataflow.TransientNodeData addNode(java.lang.String name, int orderNum, org.exoplatform.services.jcr.impl.core.NodeImpl parentNode)
          Adds the node.
 org.exoplatform.services.jcr.impl.dataflow.TransientNodeData addNode(java.lang.String name, int orderNum, org.exoplatform.services.jcr.impl.dataflow.TransientNodeData parentNode)
          Adds the node.
 void commit()
          Commit.
 org.exoplatform.services.jcr.impl.dataflow.TransientNodeData createNodeData_nt_folder(java.lang.String name, int orderNum, org.exoplatform.services.jcr.impl.core.NodeImpl parentNode)
          Creates the node data_nt_folder.
 org.exoplatform.services.jcr.impl.dataflow.TransientNodeData createNodeData(org.exoplatform.services.jcr.datamodel.InternalQName iQName, int orderNum, org.exoplatform.services.jcr.impl.dataflow.TransientNodeData parentNode, org.exoplatform.services.jcr.datamodel.InternalQName primaryType, org.exoplatform.services.jcr.datamodel.InternalQName mixinName)
          Creates the node data.
 void release()
          Release.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.apache.commons.logging.Log log
The log.

Constructor Detail

FastAPI

public FastAPI(org.exoplatform.services.jcr.impl.core.SessionImpl session)
Instantiates a new fast api.

Parameters:
session - the session
Method Detail

release

public void release()
Release.


commit

public void commit()
Commit.


addNode

public org.exoplatform.services.jcr.impl.dataflow.TransientNodeData addNode(java.lang.String name,
                                                                            int orderNum,
                                                                            org.exoplatform.services.jcr.impl.core.NodeImpl parentNode)
                                                                     throws java.lang.Exception
Adds the node.

Parameters:
name - the name
orderNum - the order num
parentNode - the parent node
Returns:
the transient node data
Throws:
java.lang.Exception - the exception

createNodeData_nt_folder

public org.exoplatform.services.jcr.impl.dataflow.TransientNodeData createNodeData_nt_folder(java.lang.String name,
                                                                                             int orderNum,
                                                                                             org.exoplatform.services.jcr.impl.core.NodeImpl parentNode)
Creates the node data_nt_folder.

Parameters:
name - the name
orderNum - the order num
parentNode - the parent node
Returns:
the transient node data

addNode

public org.exoplatform.services.jcr.impl.dataflow.TransientNodeData addNode(java.lang.String name,
                                                                            int orderNum,
                                                                            org.exoplatform.services.jcr.impl.dataflow.TransientNodeData parentNode)
                                                                     throws java.lang.Exception
Adds the node.

Parameters:
name - the name
orderNum - the order num
parentNode - the parent node
Returns:
the transient node data
Throws:
java.lang.Exception - the exception

createNodeData

public org.exoplatform.services.jcr.impl.dataflow.TransientNodeData createNodeData(org.exoplatform.services.jcr.datamodel.InternalQName iQName,
                                                                                   int orderNum,
                                                                                   org.exoplatform.services.jcr.impl.dataflow.TransientNodeData parentNode,
                                                                                   org.exoplatform.services.jcr.datamodel.InternalQName primaryType,
                                                                                   org.exoplatform.services.jcr.datamodel.InternalQName mixinName)
                                                                            throws java.lang.Exception
Creates the node data.

Parameters:
iQName - the i q name
orderNum - the order num
parentNode - the parent node
primaryType - the primary type
mixinName - the mixin name
Returns:
the transient node data
Throws:
java.lang.Exception - the exception

addNode_file

protected void addNode_file(java.lang.String name,
                            int orderNum,
                            java.lang.String metadata,
                            org.exoplatform.services.jcr.impl.dataflow.TransientNodeData parentNode,
                            org.exoplatform.services.jcr.impl.dataflow.TransientValueData fData,
                            java.lang.String mimeType,
                            java.lang.String title)
                     throws java.lang.Exception
Adds the node_file.

Parameters:
name - the name
orderNum - the order num
metadata - the metadata
parentNode - the parent node
fData - the f data
mimeType - the mime type
title - the title
Throws:
java.lang.Exception - the exception


Copyright © 2010 eXo Platform SAS. All Rights Reserved.