public interface DBDataInterface
The database data interface provides methods for loading/saving file data to database fields.
Modifier and Type | Method and Description |
---|---|
void |
deleteFileData(int fileId,
int streamId)
Delete the file data for the specified file/stream
|
void |
deleteJarData(int jarId)
Delete the file data for the specified Jar file
|
DBDataDetails |
getFileDataDetails(int fileId,
int streamId)
Return the file data details for the specified file or stream.
|
long |
getMaximumFragmentSize()
Return the maximum data fragment size supported
|
void |
loadFileData(int fileId,
int streamId,
FileSegment fileSeg)
Load file data from the database into a temporary/local file
|
void |
loadJarData(int jarId,
FileSegment jarSeg)
Load Jar file data from the database into a temporary file
|
int |
saveFileData(int fileId,
int streamId,
FileSegment fileSeg)
Save the file data from the temporary/local file to the database
|
int |
saveJarData(java.lang.String jarFile,
DBDataDetailsList fileList)
Save the file data from a Jar file to the database
|
DBDataDetails getFileDataDetails(int fileId, int streamId) throws DBException
fileId
- streamId
- DBException
long getMaximumFragmentSize()
void loadFileData(int fileId, int streamId, FileSegment fileSeg) throws DBException, java.io.IOException
fileId
- intstreamId
- intfileSeg
- FileSegmentDBException
java.io.IOException
void loadJarData(int jarId, FileSegment jarSeg) throws DBException, java.io.IOException
jarId
- intjarSeg
- FileSegmentDBException
java.io.IOException
int saveFileData(int fileId, int streamId, FileSegment fileSeg) throws DBException, java.io.IOException
fileId
- intstreamId
- intfileSeg
- FileSegmentDBException
java.io.IOException
int saveJarData(java.lang.String jarFile, DBDataDetailsList fileList) throws DBException, java.io.IOException
jarFile
- StringfileList
- DBDataDetailsListDBException
java.io.IOException
void deleteFileData(int fileId, int streamId) throws DBException, java.io.IOException
fileId
- intstreamId
- intDBException
java.io.IOException
void deleteJarData(int jarId) throws DBException, java.io.IOException
jarId
- intDBException
java.io.IOException
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.