Skip navigation links

Oracle Internet Directory API Reference
11g Release 1 (11.1.1)

E10664-01


oracle.ldap.util
Class OracleSchema

java.lang.Object
  extended by oracle.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.


Field Summary
protected  java.lang.String ohome
           
protected  java.lang.String orclSchemaVersion
           
protected  java.io.PrintStream pStream
           

 

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

 

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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

ohome

protected java.lang.String ohome

pStream

protected java.io.PrintStream pStream

orclSchemaVersion

protected java.lang.String orclSchemaVersion

Constructor Detail

OracleSchema

public OracleSchema(javax.naming.directory.DirContext ctx,
                    java.util.logging.Logger lgr,
                    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)

OracleSchema

public OracleSchema(javax.naming.directory.DirContext ctx,
                    java.util.logging.Logger lgr,
                    java.lang.String ohome,
                    java.io.PrintStream pStream)
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)

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
11g Release 1 (11.1.1)

E10664-01


Copyright © 1999, 2009 Oracle. All Rights Reserved.