-import java.lang.*;
-import java.io.*;
-import java.util.*;
-import java.sql.*;
-
-import mir.entity.*;
-import mir.misc.*;
-import mir.storage.*;
-
-/**
- * Diese Klasse enthält die Daten eines MetaObjekts
- *
- * @author RK
- * @version 11.11.2000
- */
-
-
-public class EntityVideo extends EntityUploadedMedia
-{
-
- public EntityVideo()
- {
- super();
- }
-
- public EntityVideo(StorageObject theStorage) {
- this();
- setStorage(theStorage);
- }
-
- //
- // methods
-
- public byte[] getVideoData() throws StorageObjectException
- {
-
- Connection con=null;Statement stmt=null;
- byte[] video_data=null;
-
- try {
- con = theStorageObject.getPooledCon();
- con.setAutoCommit(false);
- stmt = con.createStatement();
- ResultSet rs = theStorageObject.executeSql(stmt,"select video_data from video where id="+getId());
- if(rs!=null) {
- if (rs.next()) {
- video_data = rs.getBytes(1);
- }
- rs.close();
- }
- }
- catch (Exception e) {theLog.printDebugInfo("-- getImage gescheitert: "+e.toString());}
- finally {
- try {con.setAutoCommit(true); } catch (Exception e) {;}
- theStorageObject.freeConnection(con,stmt); }
-
- return video_data;
- }
-
- public void setVideoData(byte[] uploadData) throws StorageObjectException
- {
- if (uploadData!=null) {
- Connection con=null;PreparedStatement pstmt=null;
- try {