|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--medi.db.util.Dir2Db
Captures directory information to put in the database.
| Constructor Summary | |
Dir2Db()
Creates new Dir2Db |
|
Dir2Db(Provider pPrv,
int pMountPointLength,
DirectoryGetter inDirget,
java.lang.Integer pVolumeID,
java.lang.Integer pSuperSessionID)
Creates new Dir2Db. |
|
Dir2Db(Provider pPrv,
int pMountPointLength,
java.io.File inDir,
java.lang.Integer pVolumeID,
java.lang.Integer pSuperSessionID)
Creates a new Dir2Db. |
|
| Method Summary | |
static void |
file2Db(Provider pPrv,
java.lang.Long dataID,
java.io.File tempFile)
Gets information from a file and stores it in the database. |
void |
scan()
Scans directory and puts information in the database. |
void |
scan(boolean onlyDir)
Scans directory and puts information in the database. |
void |
setDirectory(java.io.File inDir)
Sets the starting directory. |
void |
setDirectoryGetter(DirectoryGetter inDirget)
Sets the starting DirectoryGetter. |
void |
setDispatcher(File2DbDispatcher pDispatcher)
Sets the dispatcher to be used when analyzing different file types. |
void |
setMountPointLength(int pMountPointLength)
Sets the length of the prefix of starting mount point. |
void |
setProvider(Provider pPrv)
Sets the provider to use. |
void |
setStatusFrame(Volume2DbStatus pStatus)
Sets the status frame to display information into. |
void |
setSuperSessionID(java.lang.Integer pSuperSessionID)
Sets the starting session ID. |
void |
setVolumeID(java.lang.Integer pVolumeID)
Sets the starting volume ID. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Dir2Db()
public Dir2Db(Provider pPrv,
int pMountPointLength,
java.io.File inDir,
java.lang.Integer pVolumeID,
java.lang.Integer pSuperSessionID)
pPrv - The provider to use.pMountPointLength - The length of the prefix of starting mount point.inDir - The starting directory.pVolumeID - The starting volume ID.pSuperSessionID - The starting session ID.
public Dir2Db(Provider pPrv,
int pMountPointLength,
DirectoryGetter inDirget,
java.lang.Integer pVolumeID,
java.lang.Integer pSuperSessionID)
pPrv - The provider to use.pMountPointLength - The length of the prefix of starting mount point.inDirget - The starting DirectoryGetter to start from.pVolumeID - The volume ID to start from.pSuperSessionID - The session ID to start from.| Method Detail |
public static void file2Db(Provider pPrv,
java.lang.Long dataID,
java.io.File tempFile)
throws DbException
pPrv - The provider to use.dataID - The data ID to use.tempFile - The file to get information from.
DbException - If something goes wrong.public void setProvider(Provider pPrv)
pPrv - The provider.public void setStatusFrame(Volume2DbStatus pStatus)
pStatus - The status frame to use.public void setDispatcher(File2DbDispatcher pDispatcher)
pDispatcher - The dispatcher to use.public void setMountPointLength(int pMountPointLength)
pMountPointLength - The length of the prefix of starting mount point.public void setDirectory(java.io.File inDir)
inDir - The starting directory.public void setDirectoryGetter(DirectoryGetter inDirget)
inDirget - The starting DirectoryGetter.public void setVolumeID(java.lang.Integer pVolumeID)
pVolumeID - The starting volume ID.public void setSuperSessionID(java.lang.Integer pSuperSessionID)
pSuperSessionID - The starting session ID.
public void scan(boolean onlyDir)
throws java.io.IOException,
DbException
onlyDir - true: only directories are going to be scanned;
false: also files are going to be scanned.
java.io.IOException - If some I/O error occurred.
DbException - If some database error occurred.
public void scan()
throws java.io.IOException,
DbException
java.io.IOException - If some I/O error occurred.
DbException - If some database error occurred.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||