Skip navigation links

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

E10664-01


oracle.idm.provisioning.event
Class PlsqlAttr

java.lang.Object
  extended by oracle.idm.provisioning.event.PlsqlAttr

All Implemented Interfaces:
oracle.jdbc.internal.ObjectData, oracle.jdbc.internal.ObjectDataFactory, oracle.sql.ORAData, oracle.sql.ORADataFactory

public class PlsqlAttr
extends java.lang.Object
implements oracle.sql.ORAData, oracle.sql.ORADataFactory

This is a helper class to represent the PL/SQL data type LDAP_ATTR which is passed to the PL/SQL event callback routines.

Since:
OCS R3

Constructor Summary
PlsqlAttr()
          Default Constructor.
PlsqlAttr(java.sql.Connection conn, LDIFAttribute attr, java.lang.String schemaName)
          Creates a PlsqlAttr object from LDIFAttribute
PlsqlAttr(java.lang.String attrName, int attrType, int attrChgType)
          Create a PlsqlAttr attribute object.

 

Method Summary
 void addValues(oracle.sql.ARRAY attrs)
          Add values to this attribute
 void addValues(java.sql.Connection conn, PlsqlAttrVal[] attrVals)
          Add values to this attribute
 oracle.sql.ORAData create(oracle.sql.Datum d, int sqlType)
          Convert from SQL data type to JAVA object.
 java.lang.String getAttrName()
          Return the attribute name
 int getAttrType()
          Return the attribute type
 int getChgType()
          Return the attribute change type
static oracle.sql.ORADataFactory getFactory()
           
 oracle.sql.ARRAY getValues()
           
 oracle.sql.Datum toDatum(java.sql.Connection c)
          Convert to SQL data type
 java.lang.String toString()
          Returns the string representation

 

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

 

Constructor Detail

PlsqlAttr

public PlsqlAttr()
Default Constructor.

PlsqlAttr

public PlsqlAttr(java.lang.String attrName,
                 int attrType,
                 int attrChgType)
Create a PlsqlAttr attribute object.
Parameters:
attrName - attribute name
attrType - attribute type
attrChgType - attribute change type

PlsqlAttr

public PlsqlAttr(java.sql.Connection conn,
                 LDIFAttribute attr,
                 java.lang.String schemaName)
          throws java.sql.SQLException
Creates a PlsqlAttr object from LDIFAttribute
Throws:
java.sql.SQLException

Method Detail

getFactory

public static oracle.sql.ORADataFactory getFactory()

addValues

public void addValues(java.sql.Connection conn,
                      PlsqlAttrVal[] attrVals)
               throws java.sql.SQLException
Add values to this attribute
Parameters:
conn - JDBC Connection object
attrs - a list of attribute values
Throws:
java.sql.SQLException

addValues

public void addValues(oracle.sql.ARRAY attrs)
Add values to this attribute
Parameters:
attrs - array of attribute value objects.

toDatum

public oracle.sql.Datum toDatum(java.sql.Connection c)
                         throws java.sql.SQLException
Convert to SQL data type
Specified by:
toDatum in interface oracle.sql.ORAData
Parameters:
conn - JDBC Connection object
Throws:
java.sql.SQLException

create

public oracle.sql.ORAData create(oracle.sql.Datum d,
                                 int sqlType)
                          throws java.sql.SQLException
Convert from SQL data type to JAVA object.
Specified by:
create in interface oracle.sql.ORADataFactory
Throws:
java.sql.SQLException

getValues

public oracle.sql.ARRAY getValues()

toString

public java.lang.String toString()
Returns the string representation
Overrides:
toString in class java.lang.Object
Returns:
the string representation

getAttrName

public java.lang.String getAttrName()
Return the attribute name
Returns:
attribute name

getAttrType

public int getAttrType()
Return the attribute type
Returns:
attribute type

getChgType

public int getChgType()
Return the attribute change type
Returns:
attribute type

Skip navigation links

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

E10664-01


Copyright © 1999, 2009 Oracle. All Rights Reserved.