com.openexchange.admin.storage.mysqlStorage
Class OXContextMySQLStorageCommon

java.lang.Object
  extended by com.openexchange.admin.storage.mysqlStorage.OXContextMySQLStorageCommon

public class OXContextMySQLStorageCommon
extends java.lang.Object


Field Summary
static java.lang.String LOG_ERROR_CLOSING_STATEMENT
           
 
Constructor Summary
OXContextMySQLStorageCommon()
           
 
Method Summary
 void createStandardGroupForContext(int context_id, java.sql.Connection ox_write_con, java.lang.String display_name, int group_id, int gid_number)
           
 void deleteContextFromConfigDB(java.sql.Connection configCon, int contextId)
           
 void fillContextAndServer2DBPool(Context ctx, java.sql.Connection con, Database db)
           
 void fillLogin2ContextTable(Context ctx, java.sql.Connection configdb_write_con)
           
 Context getData(Context ctx, java.sql.Connection configdb_con, long average_size)
           
 void handleContextDeleteRollback(java.sql.Connection write_ox_con, java.sql.Connection con_write)
           
 void handleCreateContextRollback(java.sql.Connection configCon, java.sql.Connection oxCon, int contextId)
           
 void initFilestoreUsage(java.sql.Connection con, int contextId)
           
 void initReplicationMonitor(java.sql.Connection con, int contextId)
           
 void initSequenceTables(int contextId, java.sql.Connection con)
           
 Context[] loadContexts(java.util.Collection<java.lang.Integer> cids, long averageSize)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_ERROR_CLOSING_STATEMENT

public static final java.lang.String LOG_ERROR_CLOSING_STATEMENT
See Also:
Constant Field Values
Constructor Detail

OXContextMySQLStorageCommon

public OXContextMySQLStorageCommon()
Method Detail

getData

public Context getData(Context ctx,
                       java.sql.Connection configdb_con,
                       long average_size)
                throws java.sql.SQLException,
                       PoolException
Throws:
java.sql.SQLException
PoolException

loadContexts

public Context[] loadContexts(java.util.Collection<java.lang.Integer> cids,
                              long averageSize)
                       throws StorageException
Throws:
StorageException

createStandardGroupForContext

public final void createStandardGroupForContext(int context_id,
                                                java.sql.Connection ox_write_con,
                                                java.lang.String display_name,
                                                int group_id,
                                                int gid_number)
                                         throws java.sql.SQLException
Throws:
java.sql.SQLException

deleteContextFromConfigDB

public final void deleteContextFromConfigDB(java.sql.Connection configCon,
                                            int contextId)
                                     throws java.sql.SQLException
Throws:
java.sql.SQLException

fillContextAndServer2DBPool

public void fillContextAndServer2DBPool(Context ctx,
                                        java.sql.Connection con,
                                        Database db)
                                 throws StorageException
Throws:
StorageException

handleCreateContextRollback

public final void handleCreateContextRollback(java.sql.Connection configCon,
                                              java.sql.Connection oxCon,
                                              int contextId)

handleContextDeleteRollback

public final void handleContextDeleteRollback(java.sql.Connection write_ox_con,
                                              java.sql.Connection con_write)

initSequenceTables

public final void initSequenceTables(int contextId,
                                     java.sql.Connection con)
                              throws java.sql.SQLException
Throws:
java.sql.SQLException

initReplicationMonitor

public final void initReplicationMonitor(java.sql.Connection con,
                                         int contextId)
                                  throws java.sql.SQLException
Throws:
java.sql.SQLException

initFilestoreUsage

public final void initFilestoreUsage(java.sql.Connection con,
                                     int contextId)
                              throws java.sql.SQLException
Throws:
java.sql.SQLException

fillLogin2ContextTable

public void fillLogin2ContextTable(Context ctx,
                                   java.sql.Connection configdb_write_con)
                            throws java.sql.SQLException,
                                   StorageException
Throws:
java.sql.SQLException
StorageException