org.outerj.daisy.repository.serverimpl.variant
Class LocalVariantStrategy

java.lang.Object
  extended byorg.outerj.daisy.repository.serverimpl.variant.LocalVariantStrategy
All Implemented Interfaces:
org.outerj.daisy.repository.commonimpl.variant.VariantStrategy

public class LocalVariantStrategy
extends java.lang.Object
implements org.outerj.daisy.repository.commonimpl.variant.VariantStrategy


Constructor Summary
LocalVariantStrategy(LocalRepositoryManager.Context context, org.outerj.daisy.jdbcutil.JdbcHelper jdbcHelper)
           
 
Method Summary
 void deleteBranch(long id, org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
           
 void deleteLanguage(long id, org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
           
 org.outerj.daisy.repository.commonimpl.variant.BranchImpl[] getAllBranches(org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
           
 org.outerj.daisy.repository.commonimpl.variant.LanguageImpl[] getAllLanguages(org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
           
 org.outerj.daisy.repository.commonimpl.variant.BranchImpl getBranch(long id, org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
           
 org.outerj.daisy.repository.commonimpl.variant.BranchImpl getBranchByName(java.lang.String name, org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
           
 org.outerj.daisy.repository.commonimpl.variant.LanguageImpl getLanguage(long id, org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
           
 org.outerj.daisy.repository.commonimpl.variant.LanguageImpl getLanguageByName(java.lang.String name, org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
           
 org.outerj.daisy.repository.commonimpl.variant.BranchImpl loadBranchUsingConnection(long id, org.outerj.daisy.repository.commonimpl.AuthenticatedUser user, java.sql.Connection conn)
           
 void storeBranch(org.outerj.daisy.repository.commonimpl.variant.BranchImpl branch)
           
 void storeLanguage(org.outerj.daisy.repository.commonimpl.variant.LanguageImpl language)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalVariantStrategy

public LocalVariantStrategy(LocalRepositoryManager.Context context,
                            org.outerj.daisy.jdbcutil.JdbcHelper jdbcHelper)
Method Detail

getBranch

public org.outerj.daisy.repository.commonimpl.variant.BranchImpl getBranch(long id,
                                                                           org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
                                                                    throws org.outerj.daisy.repository.RepositoryException
Specified by:
getBranch in interface org.outerj.daisy.repository.commonimpl.variant.VariantStrategy
Throws:
org.outerj.daisy.repository.RepositoryException

loadBranchUsingConnection

public org.outerj.daisy.repository.commonimpl.variant.BranchImpl loadBranchUsingConnection(long id,
                                                                                           org.outerj.daisy.repository.commonimpl.AuthenticatedUser user,
                                                                                           java.sql.Connection conn)
                                                                                    throws java.sql.SQLException,
                                                                                           org.outerj.daisy.repository.variant.BranchNotFoundException
Throws:
java.sql.SQLException
org.outerj.daisy.repository.variant.BranchNotFoundException

getBranchByName

public org.outerj.daisy.repository.commonimpl.variant.BranchImpl getBranchByName(java.lang.String name,
                                                                                 org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
                                                                          throws org.outerj.daisy.repository.RepositoryException
Specified by:
getBranchByName in interface org.outerj.daisy.repository.commonimpl.variant.VariantStrategy
Throws:
org.outerj.daisy.repository.RepositoryException

getAllBranches

public org.outerj.daisy.repository.commonimpl.variant.BranchImpl[] getAllBranches(org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
                                                                           throws org.outerj.daisy.repository.RepositoryException
Specified by:
getAllBranches in interface org.outerj.daisy.repository.commonimpl.variant.VariantStrategy
Throws:
org.outerj.daisy.repository.RepositoryException

storeBranch

public void storeBranch(org.outerj.daisy.repository.commonimpl.variant.BranchImpl branch)
                 throws org.outerj.daisy.repository.RepositoryException
Specified by:
storeBranch in interface org.outerj.daisy.repository.commonimpl.variant.VariantStrategy
Throws:
org.outerj.daisy.repository.RepositoryException

deleteBranch

public void deleteBranch(long id,
                         org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
                  throws org.outerj.daisy.repository.RepositoryException
Specified by:
deleteBranch in interface org.outerj.daisy.repository.commonimpl.variant.VariantStrategy
Throws:
org.outerj.daisy.repository.RepositoryException

getLanguage

public org.outerj.daisy.repository.commonimpl.variant.LanguageImpl getLanguage(long id,
                                                                               org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
                                                                        throws org.outerj.daisy.repository.RepositoryException
Specified by:
getLanguage in interface org.outerj.daisy.repository.commonimpl.variant.VariantStrategy
Throws:
org.outerj.daisy.repository.RepositoryException

getLanguageByName

public org.outerj.daisy.repository.commonimpl.variant.LanguageImpl getLanguageByName(java.lang.String name,
                                                                                     org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
                                                                              throws org.outerj.daisy.repository.RepositoryException
Specified by:
getLanguageByName in interface org.outerj.daisy.repository.commonimpl.variant.VariantStrategy
Throws:
org.outerj.daisy.repository.RepositoryException

getAllLanguages

public org.outerj.daisy.repository.commonimpl.variant.LanguageImpl[] getAllLanguages(org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
                                                                              throws org.outerj.daisy.repository.RepositoryException
Specified by:
getAllLanguages in interface org.outerj.daisy.repository.commonimpl.variant.VariantStrategy
Throws:
org.outerj.daisy.repository.RepositoryException

storeLanguage

public void storeLanguage(org.outerj.daisy.repository.commonimpl.variant.LanguageImpl language)
                   throws org.outerj.daisy.repository.RepositoryException
Specified by:
storeLanguage in interface org.outerj.daisy.repository.commonimpl.variant.VariantStrategy
Throws:
org.outerj.daisy.repository.RepositoryException

deleteLanguage

public void deleteLanguage(long id,
                           org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
                    throws org.outerj.daisy.repository.RepositoryException
Specified by:
deleteLanguage in interface org.outerj.daisy.repository.commonimpl.variant.VariantStrategy
Throws:
org.outerj.daisy.repository.RepositoryException


Copyright © -2005 . All Rights Reserved.