org.norther.tammi.root.db
Class RepositoryConnection

java.lang.Object
  extended by org.norther.tammi.root.db.RepositoryConnection
All Implemented Interfaces:
Serializable, Cloneable

public final class RepositoryConnection
extends Object
implements Cloneable, Serializable

An inner class for repository connections.

See Also:
Serialized Form

Method Summary
 Object clone()
           
 String getAlias()
          Gets the alias.
 Persister getPersister()
          Gets a persister.
 Persister getPersister(Principal principal)
          Gets a persister for the specified principal.
 Persister getPersister(String username, String password)
          Gets a persister for the specified credentials.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

clone

public Object clone()
Overrides:
clone in class Object

getPersister

public Persister getPersister()
                       throws ConstructionException
Gets a persister.

Returns:
the specified persister.
Throws:
ConstructionException - if construction fails.

getPersister

public Persister getPersister(String username,
                              String password)
                       throws ConstructionException
Gets a persister for the specified credentials.

Parameters:
username - the username.
password - the password.
Returns:
the specified persister.
Throws:
ConstructionException - if construction fails.

getPersister

public Persister getPersister(Principal principal)
                       throws ConstructionException
Gets a persister for the specified principal.

Parameters:
principal - the principal.
Returns:
the specified persister.
Throws:
ConstructionException - if construction fails.

getAlias

public String getAlias()
Gets the alias.

Returns:
the alias.


Copyright © 2004 The Norther Organization. All rights reserved.