org.apache.jackrabbit.jca
Class JCARepositoryHandle

java.lang.Object
  extended by org.apache.jackrabbit.jca.JCARepositoryHandle
All Implemented Interfaces:
Serializable, Repository, Referenceable

public final class JCARepositoryHandle
extends Object
implements Repository, javax.resource.Referenceable, Serializable

This class implements the JCA implementation of repository.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.jcr.Repository
LEVEL_1_SUPPORTED, LEVEL_2_SUPPORTED, OPTION_LOCKING_SUPPORTED, OPTION_OBSERVATION_SUPPORTED, OPTION_QUERY_SQL_SUPPORTED, OPTION_TRANSACTIONS_SUPPORTED, OPTION_VERSIONING_SUPPORTED, QUERY_XPATH_DOC_ORDER, QUERY_XPATH_POS_INDEX, REP_NAME_DESC, REP_VENDOR_DESC, REP_VENDOR_URL_DESC, REP_VERSION_DESC, SPEC_NAME_DESC, SPEC_VERSION_DESC
 
Constructor Summary
JCARepositoryHandle(JCAManagedConnectionFactory mcf, javax.resource.spi.ConnectionManager cm)
          Construct the repository.
 
Method Summary
 String getDescriptor(String key)
          Return the descriptor for key.
 String[] getDescriptorKeys()
          Return the descriptor keys.
 Reference getReference()
          Return the reference.
 Session login()
          Creates a new session.
 Session login(Credentials creds)
          Creates a new session.
 Session login(Credentials creds, String workspace)
          Creates a new session.
 Session login(String workspace)
          Creates a new session.
 void setReference(Reference reference)
          Set the reference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCARepositoryHandle

public JCARepositoryHandle(JCAManagedConnectionFactory mcf,
                           javax.resource.spi.ConnectionManager cm)
Construct the repository.

Method Detail

login

public Session login()
              throws LoginException,
                     NoSuchWorkspaceException,
                     RepositoryException
Creates a new session.

Specified by:
login in interface Repository
Throws:
LoginException
NoSuchWorkspaceException
RepositoryException

login

public Session login(Credentials creds)
              throws LoginException,
                     NoSuchWorkspaceException,
                     RepositoryException
Creates a new session.

Specified by:
login in interface Repository
Throws:
LoginException
NoSuchWorkspaceException
RepositoryException

login

public Session login(String workspace)
              throws LoginException,
                     NoSuchWorkspaceException,
                     RepositoryException
Creates a new session.

Specified by:
login in interface Repository
Throws:
LoginException
NoSuchWorkspaceException
RepositoryException

login

public Session login(Credentials creds,
                     String workspace)
              throws LoginException,
                     NoSuchWorkspaceException,
                     RepositoryException
Creates a new session.

Specified by:
login in interface Repository
Throws:
LoginException
NoSuchWorkspaceException
RepositoryException

getDescriptorKeys

public String[] getDescriptorKeys()
Return the descriptor keys.

Specified by:
getDescriptorKeys in interface Repository

getDescriptor

public String getDescriptor(String key)
Return the descriptor for key.

Specified by:
getDescriptor in interface Repository

getReference

public Reference getReference()
Return the reference.

Specified by:
getReference in interface Referenceable

setReference

public void setReference(Reference reference)
Set the reference.



Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.