tigase.db
Class RepositoryFactory

java.lang.Object
  extended by tigase.db.RepositoryFactory

public abstract class RepositoryFactory
extends Object

Describe class RepositoryFactory here. Created: Tue Oct 24 22:13:52 2006

Version:
$Rev: 2996 $
Author:
Artur Hefczyc

Field Summary
static String AUTH_REPO_CLASS_PROP_KEY
          Field description
static String AUTH_REPO_CLASS_PROP_VAL
          Field description
static String AUTH_REPO_POOL_CLASS_PROP_DEF
          Field description
static String AUTH_REPO_POOL_CLASS_PROP_KEY
          Field description
static String AUTH_REPO_POOL_CLASS_PROP_VAL
          Field description
static String AUTH_REPO_POOL_SIZE_PROP_KEY
          Field description
static int AUTH_REPO_POOL_SIZE_PROP_VAL
          Field description
static String DATA_REPO_CLASS_PROP_KEY
          Field description
static String DATA_REPO_CLASS_PROP_VAL
          Field description
static String DATA_REPO_POOL_CLASS_PROP_KEY
          Field description
static String DATA_REPO_POOL_CLASS_PROP_VAL
          Field description
static String DATA_REPO_POOL_SIZE_PROP_KEY
          Field description
static int DATA_REPO_POOL_SIZE_PROP_VAL
          Field description
static String USER_REPO_CLASS_PROP_KEY
          Field description
static String USER_REPO_CLASS_PROP_VAL
          Field description
static String USER_REPO_POOL_CLASS_PROP_DEF
          Field description
static String USER_REPO_POOL_CLASS_PROP_KEY
          Field description
static String USER_REPO_POOL_CLASS_PROP_VAL
          Field description
static String USER_REPO_POOL_SIZE_PROP_KEY
          Field description
static int USER_REPO_POOL_SIZE_PROP_VAL
          Field description
 
Constructor Summary
RepositoryFactory()
           
 
Method Summary
static AuthRepository getAuthRepository(String class_name, String resource, Map<String,String> params)
          Method description
static DataRepository getDataRepository(String class_name, String resource, Map<String,String> params)
          Method description
static String getRepoClass(String repo_name)
          Method description
static UserRepository getUserRepository(String class_name, String resource, Map<String,String> params)
          Method description
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATA_REPO_CLASS_PROP_KEY

public static final String DATA_REPO_CLASS_PROP_KEY
Field description

See Also:
Constant Field Values

DATA_REPO_CLASS_PROP_VAL

public static final String DATA_REPO_CLASS_PROP_VAL
Field description

See Also:
Constant Field Values

DATA_REPO_POOL_CLASS_PROP_KEY

public static final String DATA_REPO_POOL_CLASS_PROP_KEY
Field description

See Also:
Constant Field Values

DATA_REPO_POOL_CLASS_PROP_VAL

public static final String DATA_REPO_POOL_CLASS_PROP_VAL
Field description

See Also:
Constant Field Values

DATA_REPO_POOL_SIZE_PROP_KEY

public static final String DATA_REPO_POOL_SIZE_PROP_KEY
Field description

See Also:
Constant Field Values

DATA_REPO_POOL_SIZE_PROP_VAL

public static final int DATA_REPO_POOL_SIZE_PROP_VAL
Field description

See Also:
Constant Field Values

AUTH_REPO_CLASS_PROP_KEY

public static final String AUTH_REPO_CLASS_PROP_KEY
Field description

See Also:
Constant Field Values

AUTH_REPO_CLASS_PROP_VAL

public static final String AUTH_REPO_CLASS_PROP_VAL
Field description

See Also:
Constant Field Values

AUTH_REPO_POOL_CLASS_PROP_KEY

public static final String AUTH_REPO_POOL_CLASS_PROP_KEY
Field description

See Also:
Constant Field Values

AUTH_REPO_POOL_CLASS_PROP_DEF

public static final String AUTH_REPO_POOL_CLASS_PROP_DEF
Field description

See Also:
Constant Field Values

AUTH_REPO_POOL_CLASS_PROP_VAL

public static final String AUTH_REPO_POOL_CLASS_PROP_VAL
Field description


AUTH_REPO_POOL_SIZE_PROP_KEY

public static final String AUTH_REPO_POOL_SIZE_PROP_KEY
Field description

See Also:
Constant Field Values

AUTH_REPO_POOL_SIZE_PROP_VAL

public static final int AUTH_REPO_POOL_SIZE_PROP_VAL
Field description

See Also:
Constant Field Values

USER_REPO_CLASS_PROP_KEY

public static final String USER_REPO_CLASS_PROP_KEY
Field description

See Also:
Constant Field Values

USER_REPO_CLASS_PROP_VAL

public static final String USER_REPO_CLASS_PROP_VAL
Field description

See Also:
Constant Field Values

USER_REPO_POOL_CLASS_PROP_KEY

public static final String USER_REPO_POOL_CLASS_PROP_KEY
Field description

See Also:
Constant Field Values

USER_REPO_POOL_CLASS_PROP_DEF

public static final String USER_REPO_POOL_CLASS_PROP_DEF
Field description

See Also:
Constant Field Values

USER_REPO_POOL_CLASS_PROP_VAL

public static final String USER_REPO_POOL_CLASS_PROP_VAL
Field description


USER_REPO_POOL_SIZE_PROP_KEY

public static final String USER_REPO_POOL_SIZE_PROP_KEY
Field description

See Also:
Constant Field Values

USER_REPO_POOL_SIZE_PROP_VAL

public static final int USER_REPO_POOL_SIZE_PROP_VAL
Field description

See Also:
Constant Field Values
Constructor Detail

RepositoryFactory

public RepositoryFactory()
Method Detail

getAuthRepository

public static AuthRepository getAuthRepository(String class_name,
                                               String resource,
                                               Map<String,String> params)
                                        throws ClassNotFoundException,
                                               InstantiationException,
                                               IllegalAccessException,
                                               DBInitException
Method description

Parameters:
class_name -
resource -
params -
Returns:
Throws:
ClassNotFoundException
DBInitException
IllegalAccessException
InstantiationException

getDataRepository

public static DataRepository getDataRepository(String class_name,
                                               String resource,
                                               Map<String,String> params)
                                        throws ClassNotFoundException,
                                               InstantiationException,
                                               IllegalAccessException,
                                               DBInitException,
                                               SQLException
Method description

Parameters:
class_name -
resource -
params -
Returns:
Throws:
ClassNotFoundException
DBInitException
IllegalAccessException
InstantiationException
SQLException

getRepoClass

public static String getRepoClass(String repo_name)
Method description

Parameters:
repo_name -
Returns:

getUserRepository

public static UserRepository getUserRepository(String class_name,
                                               String resource,
                                               Map<String,String> params)
                                        throws ClassNotFoundException,
                                               InstantiationException,
                                               IllegalAccessException,
                                               DBInitException
Method description

Parameters:
class_name -
resource -
params -
Returns:
Throws:
ClassNotFoundException
DBInitException
IllegalAccessException
InstantiationException


Copyright © 2012 Tigase. All Rights Reserved.