public class VerifyContext extends Object
It creates a temporary Oracle user, a temporary table, inserts a file (as a BLOB) into the table, performs an interMedia Text index (sync) operation, and then cleans up all the temporary objects.
If anything goes wrong, interMedia Text is considered improperly configured.
Constructor and Description |
---|
VerifyContext(String sysUser,
String pass,
String dbUrl,
String testFile)
Creates a new VerifyContext given parameters to connect to an
Oracle database and a file to index with interMedia.
|
Modifier and Type | Method and Description |
---|---|
boolean |
doesContextHasNew9iFeatures()
This function is used to find out if the user is having a context
which does not have the new features which are required for the latest
installation of the 9iFS.
|
SQLException |
getReasonForFailure()
Returns the SQLException that was raised when testing if context
is correctly configured for iFS.
|
boolean |
isContextConfigured()
Returns true if context is correctly configured for iFS.
|
static void |
main(String[] args)
Runs VerifyContext from the command-line.
|
public VerifyContext(String sysUser, String pass, String dbUrl, String testFile)
sysUser
- the Oracle SYS user.pass
- the Oracle SYS user's password.dbUrl
- database URL for connecting to Oracle.testFile
- the file to use for testing context indexing.public static void main(String[] args)
args
- command-line arguments. The arguments must be:
public boolean doesContextHasNew9iFeatures() throws SQLException, ClassNotFoundException
SQLException
ClassNotFoundException
public boolean isContextConfigured() throws ClassNotFoundException, FileNotFoundException, IOException
ClassNotFoundException
- if the Oracle JDBC drivers
cannot be found or loaded.FileNotFoundException
- if the test file specified
cannot be found.IOException
- if the test file cannot be read.public SQLException getReasonForFailure()
Copyright © 2023. All rights reserved.