Class TranscriptionDatabaseImpl
java.lang.Object
org.opencastproject.transcription.persistence.TranscriptionDatabaseImpl
- All Implemented Interfaces:
TranscriptionDatabase
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DBSessionprotected DBSessionFactoryprotected javax.persistence.EntityManagerFactoryFactory used to create entity managers for transactions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) OSGi callback.voiddeleteJobControl(String jobId) findByMediaPackage(String mpId) findByMediaPackageTrackAndStatus(String mpId, String trackId, String... status) findByStatus(String... status) findIdByProvider(String provider) findProviderById(Long id) voidsetDBSessionFactory(DBSessionFactory dbSessionFactory) voidsetEntityManagerFactory(javax.persistence.EntityManagerFactory emf) storeJobControl(String mpId, String trackId, String jobId, String jobStatus, long trackDuration, Date dateExpected, String provider) storeProviderControl(String provider) voidupdateJobControl(String jobId, String jobStatus)
-
Field Details
-
emf
protected javax.persistence.EntityManagerFactory emfFactory used to create entity managers for transactions -
dbSessionFactory
-
db
-
-
Constructor Details
-
TranscriptionDatabaseImpl
public TranscriptionDatabaseImpl()
-
-
Method Details
-
activate
public void activate(org.osgi.service.component.ComponentContext cc) OSGi callback. -
setEntityManagerFactory
public void setEntityManagerFactory(javax.persistence.EntityManagerFactory emf) -
setDBSessionFactory
-
storeJobControl
public TranscriptionJobControl storeJobControl(String mpId, String trackId, String jobId, String jobStatus, long trackDuration, Date dateExpected, String provider) throws TranscriptionDatabaseException - Specified by:
storeJobControlin interfaceTranscriptionDatabase- Throws:
TranscriptionDatabaseException
-
storeProviderControl
public TranscriptionProviderControl storeProviderControl(String provider) throws TranscriptionDatabaseException - Specified by:
storeProviderControlin interfaceTranscriptionDatabase- Throws:
TranscriptionDatabaseException
-
deleteJobControl
- Specified by:
deleteJobControlin interfaceTranscriptionDatabase- Throws:
TranscriptionDatabaseException
-
updateJobControl
- Specified by:
updateJobControlin interfaceTranscriptionDatabase- Throws:
TranscriptionDatabaseException
-
findByJob
- Specified by:
findByJobin interfaceTranscriptionDatabase- Throws:
TranscriptionDatabaseException
-
findByMediaPackage
public List<TranscriptionJobControl> findByMediaPackage(String mpId) throws TranscriptionDatabaseException - Specified by:
findByMediaPackagein interfaceTranscriptionDatabase- Throws:
TranscriptionDatabaseException
-
findByStatus
public List<TranscriptionJobControl> findByStatus(String... status) throws TranscriptionDatabaseException - Specified by:
findByStatusin interfaceTranscriptionDatabase- Throws:
TranscriptionDatabaseException
-
findByMediaPackageTrackAndStatus
public List<TranscriptionJobControl> findByMediaPackageTrackAndStatus(String mpId, String trackId, String... status) throws TranscriptionDatabaseException - Specified by:
findByMediaPackageTrackAndStatusin interfaceTranscriptionDatabase- Throws:
TranscriptionDatabaseException
-
findIdByProvider
public TranscriptionProviderControl findIdByProvider(String provider) throws TranscriptionDatabaseException - Specified by:
findIdByProviderin interfaceTranscriptionDatabase- Throws:
TranscriptionDatabaseException
-
findProviderById
- Specified by:
findProviderByIdin interfaceTranscriptionDatabase- Throws:
TranscriptionDatabaseException
-