|
static HashMap< String, Vector< String > > | getSourceData (int audioFileID, Connection connection) |
| Get all of the raw metadata entries from the database for an Audio File. More...
|
|
arlo.NesterWavFileMetaData.NesterWavFileMetaData |
( |
| ) |
|
arlo.NesterWavFileMetaData.NesterWavFileMetaData |
( |
AudioFile |
audioFile | ) |
|
boolean arlo.NesterWavFileMetaData.BatchSaveMetaData |
( |
int |
mediaFileID, |
|
|
PreparedStatement |
stmtInsertMetadata |
|
) |
| |
Save MetaData as a 'Batch'.
This saves MetaData in a batch using an SQL Prepared Statement.
- Parameters
-
mediaFileID | The Db id of the mediafile corresponding to this Metadata |
stmtInsertMetadata | A prepared INSERT statement. See arlo.NesterAudioFile.saveNewAudioFilesToDb Of the form "INSERT INTO tools_mediafilemetadata (mediaFile_id, name, value, userEditable)
VALUES (?, ?, ?, ?)" |
- Returns
- Boolean - true if success, false on error
boolean arlo.NesterWavFileMetaData.getNesterWavFileMetaData |
( |
int |
audioFileID, |
|
|
Connection |
connection, |
|
|
HashMap< String, Boolean > |
fieldNames |
|
) |
| |
boolean arlo.NesterWavFileMetaData.getNesterWavFileMetaData |
( |
HashMap< String, Vector< String >> |
sourceData, |
|
|
HashMap< String, Boolean > |
fieldNames |
|
) |
| |
Parse the Metadata from a Map of values.
- Parameters
-
sourceData | A key/value map of raw metadata values, where 'value' is a Vector where each entry represent a record in the database (there will usually be only one record per key in the database, so this Vector will usually be length = 1. |
fieldNames | If not null, then require and parse only these keys. |
- Returns
- True on success, False if any errors occur, including missing required keys.
static HashMap<String, Vector<String> > arlo.NesterWavFileMetaData.getSourceData |
( |
int |
audioFileID, |
|
|
Connection |
connection |
|
) |
| |
|
static |
Get all of the raw metadata entries from the database for an Audio File.
- Parameters
-
audioFileID | Database Id of the AudioFile for which to retrieve data. |
connection | An opened database connection. |
- Returns
- null if any error, otherwise a key/value map, where keys are the metadata names and values are Vectors, where each entry represents a database record for that key.
boolean arlo.NesterWavFileMetaData.saveNesterWavFileMetaData |
( |
int |
mediaFileID, |
|
|
Connection |
connection |
|
) |
| |
int arlo.NesterWavFileMetaData.bitsPerSample = -1 |
long arlo.NesterWavFileMetaData.dataSize = -1 |
int arlo.NesterWavFileMetaData.dataStartIndex = -1 |
double arlo.NesterWavFileMetaData.durationInSeconds = Double.NaN |
long arlo.NesterWavFileMetaData.fileSize |
int arlo.NesterWavFileMetaData.nAvgBytesPerSec = -1 |
int arlo.NesterWavFileMetaData.nBlockAlign = -1 |
int arlo.NesterWavFileMetaData.numBytesToTailPad = -1 |
int arlo.NesterWavFileMetaData.numChannels = -1 |
int arlo.NesterWavFileMetaData.numFrames = -1 |
int arlo.NesterWavFileMetaData.sampleRate = -1 |
final long arlo.NesterWavFileMetaData.serialVersionUID = 7938171648762895537L |
|
staticprivate |
boolean arlo.NesterWavFileMetaData.validDATAsize = false |
boolean arlo.NesterWavFileMetaData.validRIFFsize = false |
int arlo.NesterWavFileMetaData.wFormatTag = -1 |
The documentation for this class was generated from the following file: