MINI MINI MANI MO
Rem
Rem $Header: ordim/src/server/sql/video/ordvrpsp.sql /main/1 2013/11/08 09:53:34 alexguti Exp $
Rem
Rem ordvrpsp.sql
Rem
Rem Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
Rem
Rem NAME
Rem ordvrpbd.sql - PL/SQL relational interface for ORD_VIDEO specs
Rem
Rem DESCRIPTION
Rem This script creates the specs for the ORD_VIDEO PL/SQL relational interface
Rem
Rem NOTES
Rem This script contains the specs for each of the functions/procedures
Rem of ORD_VIDEO
Rem
Rem MODIFIED (MM/DD/YY)
Rem alexguti 07/18/13 - Plsql package for relational interface - video
Rem alexguti 07/18/13 - Created
Rem
Rem BEGIN SQL_FILE_METADATA
Rem SQL_SOURCE_FILE: $SRCHOME/ordim/src/server/sql/video/ordvrpsp.sql
Rem SQL_SHIPPED_FILE: $ORACLE_HOME/ord/im/admin/ordvrpsp.sql
Rem SQL_PHASE: impbs.sql
Rem SQL_STARTUP_MODE: NORMAL
Rem SQL_IGNORABLE_ERRORS: NONE
Rem SQL_CALLING_FILE: $SRCHOME/ord/admin/impbs.sql
Rem END SQL_FILE_METADATA
@@?/rdbms/admin/sqlsessstart.sql
-- THE FUNCTIONS, PACKAGES AND TYPES SUPPLIED BY THIS PACKAGE AND ITS EXTERNAL
-- INTERFACE ARE RESERVED BY ORACLE AND ARE SUBJECT TO CHANGE IN FUTURE
-- RELEASES.
-- THIS PACKAGE MUST NOT BE MODIFIED BY THE CUSTOMER. DOING SO
-- COULD CAUSE INTERNAL ERRORS AND SECURITY VIOLATIONS IN THE DBMS.
CREATE OR REPLACE PACKAGE ORDSYS.ORD_VIDEO AUTHID CURRENT_USER AS
-----------------------------------
-- FUNCTIONS AND PROCEDURES
-----------------------------------
-- Description: Copies multimedia data from BLOBs within the database to an
-- external data source.
-- Input:
-- src: The BLOB location of the data to be exported (or copied) to the
-- destination location
-- dest_location: The location to which the source data is to be exported.
-- (File directory object)
-- dest_name: The name of the destination file.
-- Exceptions: ORDSourceExceptions.INCOMPLETE_SOURCE_INFORMATION
-- ORDSourceExceptions.IO_ERROR
PROCEDURE export (
src IN BLOB,
dest_location IN VARCHAR2,
dest_name IN VARCHAR2
);
-- Description: Import data from the specified external data source to the
-- BLOB specified by the dest parameter.
-- Input:
-- dest: The BLOB location to receive the data
-- source_type: The type of the source data. (FILE or URL)
-- source_location: The location from which the source data is to be imported.
-- source_name: The name of the source data.
-- Exceptions:ORDSourceExceptions.NULL_SOURCE
PROCEDURE importFrom (
dest IN OUT NOCOPY BLOB,
source_type IN VARCHAR2,
source_location IN VARCHAR2,
source_name IN VARCHAR2
);
-- Description: Import data from the specified external data source to the BLOB
-- specified by the dest parameter.
-- Input:
-- dest: The BLOB location to receive the data
-- source_type: The type of the source data. (FILE or URL)
-- source_location: The location from which the source data is to be imported.
-- source_name: The name of the source data.
-- format: The format of the data.
-- mime_type: The MIME type of the data.
-- Exceptions:ORDSourceExceptions.NULL_SOURCE
PROCEDURE importFrom (
dest IN OUT NOCOPY BLOB,
source_type IN VARCHAR2,
source_location IN VARCHAR2,
source_name IN VARCHAR2,
format OUT VARCHAR2,
mime_type OUT VARCHAR2
);
-- Description: Reads the video BFILE data to get the values of the media
-- attributes for supported formats and then stores them in the input CLOB.
-- This procedure populates the CLOB with a set of format and application
-- properties in XML form.
-- Input:
-- videoBfile: The video data represented as BFILE.
-- attributes: The CLOB to hold the XML attribute information extracted by the
-- getProperties procedure. This CLOB is populated with a set of format and
-- application properties of the video BFILE data in XML form.
-- Exceptions: ORDSourceExceptions.EMPTY_SOURCE
PROCEDURE getProperties (
videoBfile IN OUT NOCOPY BFILE,
attributes IN OUT NOCOPY CLOB
);
-- Description: Reads the video BFILE data to get the values of the media
-- attributes for supported formats and
-- returns them as explicit parameters. This procedure gets the properties
-- for these attributes of the video data: MIME type, format, frame size, frame
-- resolution, frame rate, video duration, number of frames, compression type,
-- number of colors, and bit rate.
-- Input:
-- videoBfile: The video data represented as BFILE.
-- mimeType: The MIME type of the video data.
-- format: The format of the video data.
-- width: The width of the frame in pixels of the video data.
-- height: The height of the frame in pixels of the video data.
-- frameResolution: The number of pixels per inch of frames in the video data.
-- frameRate: The number of frames per second at which the video data was
-- recorded.
-- videoDuration: The total time required to play the video data.
-- numberOfFrames: The total number of frames in the video data.
-- compressionType: The compression type of the video data.
-- numberOfColors: The number of colors in the video data.
-- bitRate: The bit rate in the video data.
-- Exceptions: ORDSourceExceptions.EMPTY_SOURCE
PROCEDURE getProperties (
videoBfile IN OUT NOCOPY BFILE,
mimeType OUT VARCHAR2,
format OUT VARCHAR2,
width OUT INTEGER,
height OUT INTEGER,
frameResolution OUT INTEGER,
frameRate OUT INTEGER,
videoDuration OUT INTEGER,
numberOfFrames OUT INTEGER,
compressionType OUT VARCHAR2,
numberOfColors OUT INTEGER,
bitRate OUT INTEGER
);
-- Description: Reads the video BLOB data to get the values of the media
-- attributes for supported formats and then stores them in the input CLOB.
-- This procedure populates the CLOB with a set of format and application
-- properties in XML form.
-- Input:
-- videoBlob: The video data represented as BLOB.
-- attributes: The CLOB to hold the XML attribute information extracted by
-- the getProperties procedure. This CLOB is populated with a set of format
-- and application properties of the video BFILE data in XML form.
-- Exceptions: ORDSourceExceptions.EMPTY_SOURCE
PROCEDURE getProperties (
videoBlob IN BLOB,
attributes IN OUT NOCOPY CLOB
);
-- Description: Reads the video BLOB data to get the values of the media
-- attributes for supported formats and returns them as explicit parameters. This procedure gets the properties
-- for these attributes of the video data: MIME type, format, frame size,
-- frame resolution, frame rate, video duration, number of frames, compression
-- type, number of colors, and bit rate.
-- Input:
-- videoBlob: The video data represented as BLOB.
-- mimeType: The MIME type of the video data.
-- format: The format of the video data.
-- width: The width of the frame in pixels of the video data.
-- height: The height of the frame in pixels of the video data.
-- frameResolution: The number of pixels per inch of frames in the video data.
-- frameRate: The number of frames per second at which the video data was
-- recorded.
-- videoDuration: The total time required to play the video data.
-- numberOfFrames: The total number of frames in the video data.
-- compressionType: The compression type of the video data.
-- numberOfColors: The number of colors in the video data.
-- bitRate: The bit rate in the video data.
-- Exceptions: ORDSourceExceptions.EMPTY_SOURCE
PROCEDURE getProperties (
videoBlob IN BLOB,
mimeType OUT VARCHAR2,
format OUT VARCHAR2,
width OUT INTEGER,
height OUT INTEGER,
frameResolution OUT INTEGER,
frameRate OUT INTEGER,
videoDuration OUT INTEGER,
numberOfFrames OUT INTEGER,
compressionType OUT VARCHAR2,
numberOfColors OUT INTEGER,
bitRate OUT INTEGER
);
END;
/
show errors;
@?/rdbms/admin/sqlsessend.sql
OHA YOOOO