Package com.tridion.storage.management
Interface StorageManager
public interface StorageManager
Interface with methods to retrieve all DAO objects.
-
Method Summary
Modifier and TypeMethodDescriptiongetDAO(int namespaceId, int publicationId, String typeMapping, String itemExtension, String transactionId) Get the Data Access Object for a given namespace id, publication id, type mapping and extension.getDAO(int publicationId, StorageTypeMapping typeMapping) Get the Data Access Object for a given publication id and type mapping.getDAO(int publicationId, StorageTypeMapping typeMapping, String itemExtension) Get the Data Access Object for a given publication id, type mapping and extension.Get the Data Access Object for a given publication id and type mapping.Get the Data Access Object for a given publication id, type mapping and extension.getDAOFactoryForStorageId(String storageId) Deprecated.this method will be removed soon.getDAOForStorageId(int namespaceId, String storageId, StorageTypeMapping typeMapping) This allows retrieval of a specific DAO for a specific storage provider.getDAOForStorageId(int namespaceId, String storageId, String typeMapping) getDAOForStorageId(String storageId, StorageTypeMapping typeMapping) This allows retrieval of a specific DAO for a specific storage provider.getDAOForStorageId(String storageId, String typeMapping) getDAOForStorageIdAndTransaction(int namespaceId, String storageId, StorageTypeMapping typeMapping, String transactionId) This allows retrieval of a specific DAO for a specific storage provider and transaction id.getDAOForStorageIdAndTransaction(int namespaceId, String storageId, String typeMapping, String transactionId) getDAOForStorageIdAndTransaction(String storageId, StorageTypeMapping typeMapping, String transactionId) This allows retrieval of a specific DAO for a specific storage provider and transaction id.getDAOForStorageIdAndTransaction(String storageId, String typeMapping, String transactionId) getDAOForTransaction(int publicationId, StorageTypeMapping typeMapping, String transactionId) getDAOForTransaction(int publicationId, StorageTypeMapping typeMapping, String itemExtension, String transactionId) getDAOForTransaction(int publicationId, String typeMapping, String transactionId) getDAOForTransaction(int publicationId, String typeMapping, String itemExtension, String transactionId) getDefaultDAO(StorageTypeMapping typeMapping) Get the default Data Access Object for a given type mapping.getDefaultDAO(String typeMapping) Get the default Data Access Object for a given type mapping.
-
Method Details
-
getDefaultDAO
Get the default Data Access Object for a given type mapping.- Parameters:
typeMapping- The type mapping (i.e. component / page).- Returns:
- The Data Access Object for this publication and type.
- Throws:
com.tridion.broker.StorageException- If the Data Access Object could not be retrieved.
-
getDefaultDAO
Get the default Data Access Object for a given type mapping.- Parameters:
typeMapping- The type mapping (i.e. component / page).- Returns:
- The Data Access Object for this type.
- Throws:
com.tridion.broker.StorageException- If the Data Access Object could not be retrieved.
-
getDAO
BaseDAO getDAO(int publicationId, StorageTypeMapping typeMapping) throws com.tridion.broker.StorageException Get the Data Access Object for a given publication id and type mapping.- Parameters:
publicationId- The publication id to use.typeMapping- The type mapping (i.e. component / page).- Returns:
- The Data Access Object for this publication and type.
- Throws:
com.tridion.broker.StorageException- If the Data Access Object could not be retrieved.
-
getDAOForTransaction
BaseDAO getDAOForTransaction(int publicationId, StorageTypeMapping typeMapping, String transactionId) throws com.tridion.broker.StorageException - Throws:
com.tridion.broker.StorageException
-
getDAOForTransaction
BaseDAO getDAOForTransaction(int publicationId, String typeMapping, String transactionId) throws com.tridion.broker.StorageException - Throws:
com.tridion.broker.StorageException
-
getDAOForTransaction
BaseDAO getDAOForTransaction(int publicationId, StorageTypeMapping typeMapping, String itemExtension, String transactionId) throws com.tridion.broker.StorageException - Throws:
com.tridion.broker.StorageException
-
getDAOForTransaction
BaseDAO getDAOForTransaction(int publicationId, String typeMapping, String itemExtension, String transactionId) throws com.tridion.broker.StorageException - Throws:
com.tridion.broker.StorageException
-
getDAO
Get the Data Access Object for a given publication id and type mapping.- Parameters:
publicationId- The publication id to use.typeMapping- The type mapping (i.e. component / page).- Returns:
- The Data Access Object for this publication and type.
- Throws:
com.tridion.broker.StorageException- If the Data Access Object could not be retrieved.
-
getDAO
BaseDAO getDAO(int publicationId, StorageTypeMapping typeMapping, String itemExtension) throws com.tridion.broker.StorageException Get the Data Access Object for a given publication id, type mapping and extension.- Parameters:
publicationId- The publication id to use.typeMapping- The type mapping (i.e. component / page).itemExtension- The item extension (in case of binaries etc).- Returns:
- The Data Access Object for this publication and type.
- Throws:
com.tridion.broker.StorageException- If the Data Access Object could not be retrieved.
-
getDAO
BaseDAO getDAO(int publicationId, String typeMapping, String itemExtension, String transactionId) throws com.tridion.broker.StorageException Get the Data Access Object for a given publication id, type mapping and extension.- Parameters:
publicationId- The publication id to use.typeMapping- The type mapping (i.e. component / page).itemExtension- The item extension (in case of binaries etc).- Returns:
- The Data Access Object for this publication and type.
- Throws:
com.tridion.broker.StorageException- If the Data Access Object could not be retrieved.
-
getDAO
BaseDAO getDAO(int namespaceId, int publicationId, String typeMapping, String itemExtension, String transactionId) throws com.tridion.broker.StorageException Get the Data Access Object for a given namespace id, publication id, type mapping and extension.- Parameters:
namespaceId- The namespace id to use.publicationId- The publication id to use.typeMapping- The type mapping (i.e. component / page).itemExtension- The item extension (in case of binaries etc).transactionId- The transaction identifier- Returns:
- The Data Access Object for this publication and type.
- Throws:
com.tridion.broker.StorageException- If the Data Access Object could not be retrieved.
-
getDAOForStorageId
BaseDAO getDAOForStorageId(String storageId, StorageTypeMapping typeMapping) throws com.tridion.broker.StorageException This allows retrieval of a specific DAO for a specific storage provider.- Parameters:
storageId- The storage provider to use.typeMapping- The typeMapping of the DAO requested.- Returns:
- The instance of the DAO if storageProvider was found.
- Throws:
com.tridion.broker.StorageException- If there is no DAO for the storage id.
-
getDAOForStorageId
BaseDAO getDAOForStorageId(int namespaceId, String storageId, StorageTypeMapping typeMapping) throws com.tridion.broker.StorageException This allows retrieval of a specific DAO for a specific storage provider.- Parameters:
namespaceId- The namespace id to use.storageId- The storage provider to use.typeMapping- The typeMapping of the DAO requested.- Returns:
- The instance of the DAO if storageProvider was found.
- Throws:
com.tridion.broker.StorageException- If there is no DAO for the storage id.
-
getDAOForStorageId
BaseDAO getDAOForStorageId(String storageId, String typeMapping) throws com.tridion.broker.StorageException - Throws:
com.tridion.broker.StorageException
-
getDAOForStorageId
BaseDAO getDAOForStorageId(int namespaceId, String storageId, String typeMapping) throws com.tridion.broker.StorageException - Throws:
com.tridion.broker.StorageException
-
getDAOForStorageIdAndTransaction
BaseDAO getDAOForStorageIdAndTransaction(String storageId, StorageTypeMapping typeMapping, String transactionId) throws com.tridion.broker.StorageException This allows retrieval of a specific DAO for a specific storage provider and transaction id.- Parameters:
storageId- The storage provider to usetypeMapping- The typeMapping of the DAO requestedtransactionId- The transactionId of the current transaction- Returns:
- The instance of the DAO if storageProvider and transactionId were found
- Throws:
com.tridion.broker.StorageException- If there is no DAO for the storage id or it can't get DAO for the specified transactionId
-
getDAOForStorageIdAndTransaction
BaseDAO getDAOForStorageIdAndTransaction(int namespaceId, String storageId, StorageTypeMapping typeMapping, String transactionId) throws com.tridion.broker.StorageException This allows retrieval of a specific DAO for a specific storage provider and transaction id.- Parameters:
namespaceId- The namespace id to usestorageId- The storage provider to usetypeMapping- The typeMapping of the DAO requestedtransactionId- The transactionId of the current transaction- Returns:
- The instance of the DAO if storageProvider and transactionId were found
- Throws:
com.tridion.broker.StorageException- If there is no DAO for the storage id or it can't get DAO for the specified transactionId
-
getDAOForStorageIdAndTransaction
BaseDAO getDAOForStorageIdAndTransaction(String storageId, String typeMapping, String transactionId) throws com.tridion.broker.StorageException - Throws:
com.tridion.broker.StorageException
-
getDAOForStorageIdAndTransaction
BaseDAO getDAOForStorageIdAndTransaction(int namespaceId, String storageId, String typeMapping, String transactionId) throws com.tridion.broker.StorageException - Throws:
com.tridion.broker.StorageException
-
getDAOFactoryForStorageId
@Deprecated DAOFactory getDAOFactoryForStorageId(String storageId) throws com.tridion.broker.StorageException Deprecated.this method will be removed soon. Direct access to the DAOFactory is not recommended.- Throws:
com.tridion.broker.StorageException
-