com.sun.ebxml.registry.persistence.rdb
Class ExternalIdentifierDAO

java.lang.Object
  |
  +--com.sun.ebxml.registry.persistence.rdb.RegistryObjectDAO
        |
        +--com.sun.ebxml.registry.persistence.rdb.ExternalIdentifierDAO

public class ExternalIdentifierDAO
extends RegistryObjectDAO

ExternalIdentifier instances provide the additional identifier information to RegistryEntry such as DUNS number, Social Security Number, or an alias name of the organization. The attribute name inherited from Object is used to contain the identification scheme (Social Security Number, etc), and the attribute value contains the actual information. Each RegistryEntry may have 0 or more association(s) with ExternalIdentifier.

Author:
Farrukh S. Najmi, Adrian Chong
See Also:
<{RegistryEntry}>

Constructor Summary
protected ExternalIdentifierDAO()
           
 
Method Summary
 void deleteByParentIds(org.oasis.ebxml.registry.bindings.rim.User user, java.sql.Connection connection, java.util.ArrayList parentIds)
          Does a bulk delete of objects for specified parentIds
 java.util.ArrayList getByParentId(java.sql.Connection connection, java.lang.String parentId, java.util.ArrayList objectRefs)
          Gets objects for specified parentIds
 java.util.ArrayList getLeafObjectList(java.sql.Connection conn, java.sql.ResultSet rs, org.oasis.ebxml.registry.bindings.query.ResponseOption responseOption, java.util.ArrayList objectRefs)
           
 java.lang.String getTableName()
           
static java.lang.String getTableNameStatic()
           
 void insert(org.oasis.ebxml.registry.bindings.rim.User user, java.sql.Connection connection, java.util.ArrayList extIds)
          Does a bulk insert of a Collection of objects that match the type for this persister.
 void insert(org.oasis.ebxml.registry.bindings.rim.User user, java.sql.Connection connection, java.lang.String parentId, java.util.ArrayList extIds)
          Does a bulk insert of a Collection of objects that match the type for this persister.
 void loadObjectFromResultSet(java.sql.Connection conn, java.lang.Object obj, java.sql.ResultSet rs, org.oasis.ebxml.registry.bindings.query.ResponseOption responseOption, java.util.ArrayList objectRefs)
           
 void update(org.oasis.ebxml.registry.bindings.rim.User user, java.sql.Connection connection, java.util.ArrayList extIds)
          Does a bulk update of a Collection of objects that match the type for this persister.
 void update(org.oasis.ebxml.registry.bindings.rim.User user, java.sql.Connection connection, java.lang.String parentId, java.util.ArrayList extIds)
          Does a bulk update of a ArrayList of ExternalIdentifier.
 
Methods inherited from class com.sun.ebxml.registry.persistence.rdb.RegistryObjectDAO
checkAssociationReferences, checkClassificationReferences, checkReferences, delete, generateAuditbleEvent, generateAuditbleEvent, getByIds, getObjectType, getOwner, getOwnersMap, registryObjectExist, registryObjectExist, registryObjectsExist, registryObjectsExist, sortIdsByObjectType, update, updateExistingObjects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalIdentifierDAO

protected ExternalIdentifierDAO()
Method Detail

getTableNameStatic

public static java.lang.String getTableNameStatic()

getTableName

public java.lang.String getTableName()
Overrides:
getTableName in class RegistryObjectDAO

insert

public void insert(org.oasis.ebxml.registry.bindings.rim.User user,
                   java.sql.Connection connection,
                   java.util.ArrayList extIds)
            throws RegistryException
Description copied from class: RegistryObjectDAO
Does a bulk insert of a Collection of objects that match the type for this persister. It is for inserting the nested objects, i.e., Name, Description, Slot, Classification and ExternalIdentifier

Overrides:
insert in class RegistryObjectDAO
RegistryException

insert

public void insert(org.oasis.ebxml.registry.bindings.rim.User user,
                   java.sql.Connection connection,
                   java.lang.String parentId,
                   java.util.ArrayList extIds)
            throws RegistryException
Does a bulk insert of a Collection of objects that match the type for this persister.

RegistryException

update

public void update(org.oasis.ebxml.registry.bindings.rim.User user,
                   java.sql.Connection connection,
                   java.util.ArrayList extIds)
            throws RegistryException
Description copied from class: RegistryObjectDAO
Does a bulk update of a Collection of objects that match the type for this persister. It is for updating the nested objects (i.e. Name, Description, Slot, Classification and ExternalIdentifier. It will firstly delete all the nested objects of each objects in the ArrayList registryObjects, and then inserts the nested objects again.

Overrides:
update in class RegistryObjectDAO
RegistryException

update

public void update(org.oasis.ebxml.registry.bindings.rim.User user,
                   java.sql.Connection connection,
                   java.lang.String parentId,
                   java.util.ArrayList extIds)
            throws RegistryException
Does a bulk update of a ArrayList of ExternalIdentifier. The attribute registryObject is not mutable

RegistryException

getByParentId

public java.util.ArrayList getByParentId(java.sql.Connection connection,
                                         java.lang.String parentId,
                                         java.util.ArrayList objectRefs)
                                  throws RegistryException
Gets objects for specified parentIds

RegistryException

deleteByParentIds

public void deleteByParentIds(org.oasis.ebxml.registry.bindings.rim.User user,
                              java.sql.Connection connection,
                              java.util.ArrayList parentIds)
                       throws RegistryException
Does a bulk delete of objects for specified parentIds

RegistryException

loadObjectFromResultSet

public void loadObjectFromResultSet(java.sql.Connection conn,
                                    java.lang.Object obj,
                                    java.sql.ResultSet rs,
                                    org.oasis.ebxml.registry.bindings.query.ResponseOption responseOption,
                                    java.util.ArrayList objectRefs)
                             throws RegistryException
Overrides:
loadObjectFromResultSet in class RegistryObjectDAO
RegistryException

getLeafObjectList

public java.util.ArrayList getLeafObjectList(java.sql.Connection conn,
                                             java.sql.ResultSet rs,
                                             org.oasis.ebxml.registry.bindings.query.ResponseOption responseOption,
                                             java.util.ArrayList objectRefs)
                                      throws RegistryException
Overrides:
getLeafObjectList in class RegistryObjectDAO
RegistryException


Copyright © 2001-2003 OASIS. All Rights Reserved.