com.openexchange.admin.storage.mysqlStorage
Class OXResourceMySQLStorage

java.lang.Object
  extended by com.openexchange.admin.storage.interfaces.OXResourceStorageInterface
      extended by com.openexchange.admin.storage.sqlStorage.OXResourceSQLStorage
          extended by com.openexchange.admin.storage.mysqlStorage.OXResourceMySQLStorage
All Implemented Interfaces:
OXMySQLDefaultValues

public class OXResourceMySQLStorage
extends OXResourceSQLStorage
implements OXMySQLDefaultValues

Author:
d7, cutmasta

Field Summary
 
Fields inherited from interface com.openexchange.admin.storage.mysqlStorage.OXMySQLDefaultValues
NOBODY, NOGROUP
 
Constructor Summary
OXResourceMySQLStorage()
           
 
Method Summary
 void change(Context ctx, Resource res)
          Change resource in datastore
 void changeLastModified(int resource_id, Context ctx, Connection write_ox_con)
           
 int create(Context ctx, Resource res)
           
 void createRecoveryData(int resource_id, Context ctx, Connection con)
          fetch data from resource and insert in del_resource
 void delete(Context ctx, int resource_id)
           
 void delete(Context ctx, Resource resource)
           
 void deleteAllRecoveryData(Context ctx, Connection con)
          Delete all data from del_resource for context
 void deleteRecoveryData(int resource_id, Context ctx, Connection con)
          delete data from del_resource
 Resource getData(Context ctx, Resource resource)
           
 Resource[] list(Context ctx, String pattern)
           
 
Methods inherited from class com.openexchange.admin.storage.interfaces.OXResourceStorageInterface
getInstance
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OXResourceMySQLStorage

public OXResourceMySQLStorage()
Method Detail

change

public void change(Context ctx,
                   Resource res)
            throws StorageException
Description copied from class: OXResourceStorageInterface
Change resource in datastore

Specified by:
change in class OXResourceSQLStorage
Throws:
StorageException

create

public int create(Context ctx,
                  Resource res)
           throws StorageException
Specified by:
create in class OXResourceSQLStorage
Throws:
StorageException

delete

public void delete(Context ctx,
                   int resource_id)
            throws StorageException
Specified by:
delete in class OXResourceSQLStorage
Throws:
StorageException

delete

public void delete(Context ctx,
                   Resource resource)
            throws StorageException
Specified by:
delete in class OXResourceStorageInterface
Throws:
StorageException

getData

public Resource getData(Context ctx,
                        Resource resource)
                 throws StorageException
Specified by:
getData in class OXResourceStorageInterface
Throws:
StorageException

list

public Resource[] list(Context ctx,
                       String pattern)
                throws StorageException
Specified by:
list in class OXResourceSQLStorage
Throws:
StorageException

changeLastModified

public void changeLastModified(int resource_id,
                               Context ctx,
                               Connection write_ox_con)
                        throws StorageException
Specified by:
changeLastModified in class OXResourceSQLStorage
Throws:
StorageException

createRecoveryData

public void createRecoveryData(int resource_id,
                               Context ctx,
                               Connection con)
                        throws StorageException
Description copied from class: OXResourceStorageInterface
fetch data from resource and insert in del_resource

Specified by:
createRecoveryData in class OXResourceSQLStorage
Throws:
StorageException

deleteAllRecoveryData

public void deleteAllRecoveryData(Context ctx,
                                  Connection con)
                           throws StorageException
Description copied from class: OXResourceStorageInterface
Delete all data from del_resource for context

Specified by:
deleteAllRecoveryData in class OXResourceSQLStorage
Throws:
StorageException

deleteRecoveryData

public void deleteRecoveryData(int resource_id,
                               Context ctx,
                               Connection con)
                        throws StorageException
Description copied from class: OXResourceStorageInterface
delete data from del_resource

Specified by:
deleteRecoveryData in class OXResourceSQLStorage
Throws:
StorageException