|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.ebxml.registry.persistence.rdb.RegistryObjectDAO
Constructor Summary | |
RegistryObjectDAO()
|
Method Summary | |
protected java.lang.String |
checkAssociationReferences(java.sql.Connection conn,
java.lang.String roId)
|
protected java.lang.String |
checkClassificationReferences(java.sql.Connection conn,
java.lang.String roId)
|
protected void |
checkReferences(java.sql.Connection conn,
java.lang.String roId)
|
void |
delete(org.oasis.ebxml.registry.bindings.rim.User user,
java.sql.Connection connection,
java.util.ArrayList registryObjectIds)
Does a bulk delete of a Collection of objects that match the type for this persister. |
void |
generateAuditbleEvent(java.sql.Connection conn,
java.util.ArrayList ros,
java.lang.String eventType,
org.oasis.ebxml.registry.bindings.rim.User user)
Generate AuditabEvent |
void |
generateAuditbleEvent(java.sql.Connection conn,
org.oasis.ebxml.registry.bindings.rim.RegistryObjectType roType,
java.lang.String eventType,
org.oasis.ebxml.registry.bindings.rim.User user)
Generate AuditabEvent |
static java.util.ArrayList |
getByIds(java.sql.Connection conn,
java.util.ArrayList ids,
boolean getComposedObjects)
|
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 |
getObjectType(java.sql.Connection conn,
java.lang.String id,
java.lang.String tableName)
Get the objectType of a submitted object in persistence layer |
static org.oasis.ebxml.registry.bindings.rim.User |
getOwner(java.sql.Connection connection,
java.lang.String objectId)
Get the User that is the owner for the object with specified objectId |
java.util.HashMap |
getOwnersMap(java.sql.Connection connection,
java.util.ArrayList ids)
Get a HashMap with registry object id as key and owner id as value |
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 registryObjects)
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)
|
boolean |
registryObjectExist(java.sql.Connection conn,
java.lang.String id)
Return true if the RegistryObject exist |
boolean |
registryObjectExist(java.sql.Connection conn,
java.lang.String id,
java.lang.String tableName)
Check whether the object exists in the specified table. |
java.util.ArrayList |
registryObjectsExist(java.sql.Connection conn,
java.util.ArrayList ids)
Returns ArrayList of ids of non-existent RegistryObject. |
java.util.ArrayList |
registryObjectsExist(java.sql.Connection conn,
java.util.ArrayList ids,
java.lang.String tableName)
Returns ArrayList of ids of non-existent RegistryObject. |
java.util.HashMap |
sortIdsByObjectType(java.sql.Connection connection,
java.util.ArrayList registryObjectIds)
Sort registryObjectIds by their objectType. |
void |
update(org.oasis.ebxml.registry.bindings.rim.User user,
java.sql.Connection connection,
java.util.ArrayList registryObjects)
Does a bulk update of a Collection of objects that match the type for this persister. |
protected void |
update(org.oasis.ebxml.registry.bindings.rim.User user,
java.sql.Connection conn,
java.util.ArrayList ros,
boolean checkExistence,
boolean checkAuthorization)
This should be overrided by subclass DAO. |
protected java.util.ArrayList |
updateExistingObjects(org.oasis.ebxml.registry.bindings.rim.User user,
java.sql.Connection conn,
java.util.ArrayList ros)
It is to update exisitng Registry Objects when any existing objects can be found within SubmitObjectsRequest. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RegistryObjectDAO()
Method Detail |
public static java.lang.String getTableNameStatic()
public java.lang.String getTableName()
public void generateAuditbleEvent(java.sql.Connection conn, org.oasis.ebxml.registry.bindings.rim.RegistryObjectType roType, java.lang.String eventType, org.oasis.ebxml.registry.bindings.rim.User user) throws RegistryException
RegistryException
public void generateAuditbleEvent(java.sql.Connection conn, java.util.ArrayList ros, java.lang.String eventType, org.oasis.ebxml.registry.bindings.rim.User user) throws RegistryException
RegistryException
protected java.lang.String checkAssociationReferences(java.sql.Connection conn, java.lang.String roId) throws RegistryException
RegistryException
protected java.lang.String checkClassificationReferences(java.sql.Connection conn, java.lang.String roId) throws RegistryException
RegistryException
protected void checkReferences(java.sql.Connection conn, java.lang.String roId) throws RegistryException
RegistryException
public java.lang.String getObjectType(java.sql.Connection conn, java.lang.String id, java.lang.String tableName) throws RegistryException
RegistryException
public void insert(org.oasis.ebxml.registry.bindings.rim.User user, java.sql.Connection connection, java.util.ArrayList registryObjects) throws RegistryException
RegistryException
public void update(org.oasis.ebxml.registry.bindings.rim.User user, java.sql.Connection connection, java.util.ArrayList registryObjects) throws RegistryException
RegistryException
public java.util.HashMap sortIdsByObjectType(java.sql.Connection connection, java.util.ArrayList registryObjectIds) throws RegistryException
RegistryException
public void delete(org.oasis.ebxml.registry.bindings.rim.User user, java.sql.Connection connection, java.util.ArrayList registryObjectIds) throws RegistryException
RegistryException
public boolean registryObjectExist(java.sql.Connection conn, java.lang.String id) throws RegistryException
RegistryException
public boolean registryObjectExist(java.sql.Connection conn, java.lang.String id, java.lang.String tableName) throws RegistryException
RegistryException
public java.util.ArrayList registryObjectsExist(java.sql.Connection conn, java.util.ArrayList ids) throws RegistryException
RegistryException
public java.util.ArrayList registryObjectsExist(java.sql.Connection conn, java.util.ArrayList ids, java.lang.String tableName) throws RegistryException
RegistryException
protected java.util.ArrayList updateExistingObjects(org.oasis.ebxml.registry.bindings.rim.User user, java.sql.Connection conn, java.util.ArrayList ros) throws RegistryException
RegistryException
protected void update(org.oasis.ebxml.registry.bindings.rim.User user, java.sql.Connection conn, java.util.ArrayList ros, boolean checkExistence, boolean checkAuthorization) throws RegistryException
RegistryException
public static java.util.ArrayList getByIds(java.sql.Connection conn, java.util.ArrayList ids, boolean getComposedObjects) throws RegistryException
RegistryException
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
RegistryException
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
RegistryException
public static org.oasis.ebxml.registry.bindings.rim.User getOwner(java.sql.Connection connection, java.lang.String objectId) throws RegistryException, java.sql.SQLException
RegistryException
java.sql.SQLException
public java.util.HashMap getOwnersMap(java.sql.Connection connection, java.util.ArrayList ids) throws RegistryException
RegistryException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |