Skip navigation links

Oracle Internet Directory API Reference
10g(10.1.4)

B15992-01


oracle.ldap.util
Class OracleSchema

java.lang.Object
  extended byoracle.ldap.util.OracleSchema


public class OracleSchema
extends java.lang.Object

This class represents the Oracle Schema in the directory. It provides methods to handle the creation and upgrade of Oracle LDAP Schema. Currently this method is exposed to only OIDCA and should not be included as part of the Javadoc.


Constructor Summary
OracleSchema(javax.naming.directory.DirContext ctx, java.lang.String ohome)
          Constructs an OracleSchema object
OracleSchema(javax.naming.directory.DirContext ctx, java.lang.String ohome, java.io.PrintStream pStream)
          Constructs an OracleSchema object

 

Method Summary
 void create()
          Creates Oracle Schema
 void create(java.lang.String product, java.lang.String schemaLoc)
          Creates decoupled schema
 boolean exists()
           
 java.lang.String getVersionFor(javax.naming.directory.DirContext ctx, java.lang.String product)
          Gets schema version for a particular product
 java.lang.String[][] getVersions()
           
 boolean isUpToDate(javax.naming.directory.DirContext ctx)
          Checks whether a schema is uptodate
 boolean isUpToDate(javax.naming.directory.DirContext ctx, java.lang.String product, java.lang.String schemaLoc)
          Checks whether a decoupled schema is uptodate
 void upgrade(javax.naming.directory.DirContext ctx)
           
 void upgrade(javax.naming.directory.DirContext ctx, java.lang.String product, java.lang.String schemaLoc)
          Upgrades schema for a particular product

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

OracleSchema

public OracleSchema(javax.naming.directory.DirContext ctx,
                    java.lang.String ohome)
Constructs an OracleSchema object
Parameters:
ctx - a valid DirContext
ohome - the absolute path of ORACLE_HOME

OracleSchema

public OracleSchema(javax.naming.directory.DirContext ctx,
                    java.lang.String ohome,
                    java.io.PrintStream pStream)
Constructs an OracleSchema object
Parameters:
ctx - a valid DirContext
ohome - the absolute path of ORACLE_HOME

Method Detail

create

public void create()
            throws UtilException
Creates Oracle Schema
Throws:
UtilException

create

public void create(java.lang.String product,
                   java.lang.String schemaLoc)
            throws UtilException
Creates decoupled schema
Parameters:
product - the product for which schema is to be created
schemaLoc - location of schema creation files
Throws:
UtilException

isUpToDate

public boolean isUpToDate(javax.naming.directory.DirContext ctx)
Checks whether a schema is uptodate
Parameters:
ctx - a valid DirContext

isUpToDate

public boolean isUpToDate(javax.naming.directory.DirContext ctx,
                          java.lang.String product,
                          java.lang.String schemaLoc)
Checks whether a decoupled schema is uptodate
Parameters:
ctx - a valid DirContext
product - the product for which schema has to be checked
schemaLoc - Location where schema files are maintained

getVersionFor

public java.lang.String getVersionFor(javax.naming.directory.DirContext ctx,
                                      java.lang.String product)
                               throws UtilException
Gets schema version for a particular product
Throws:
UtilException

getVersions

public java.lang.String[][] getVersions()

upgrade

public void upgrade(javax.naming.directory.DirContext ctx)
             throws java.lang.Exception
Throws:
java.lang.Exception

upgrade

public void upgrade(javax.naming.directory.DirContext ctx,
                    java.lang.String product,
                    java.lang.String schemaLoc)
             throws java.lang.Exception
Upgrades schema for a particular product
Throws:
java.lang.Exception

exists

public boolean exists()
               throws UtilException
Throws:
UtilException

Skip navigation links

Oracle Internet Directory API Reference
10g(10.1.4)

B15992-01


Copyright © 1999, 2006 Oracle. All Rights Reserved.