com.sun.ebxml.registry.persistence.rdb
Class SlotDAO
java.lang.Object
com.sun.ebxml.registry.persistence.rdb.SlotDAO
- public class SlotDAO
- extends java.lang.Object
Constructor Summary |
protected |
SlotDAO()
|
Method Summary |
void |
deleteByParentIdAndSlots(java.sql.Connection connection,
java.lang.String parentId,
java.util.ArrayList slots)
|
void |
deleteByParentIds(java.sql.Connection connection,
java.util.ArrayList parentIds)
|
java.util.ArrayList |
getDuplicateSlots(java.util.ArrayList slots)
It checks whether there exists more than a slot having the same name |
java.lang.String |
getTableName()
|
static java.lang.String |
getTableNameStatic()
|
void |
insert(java.sql.Connection connection,
java.lang.String parentId,
java.util.ArrayList slots,
boolean parentInsert)
|
java.util.ArrayList |
slotsExist(java.sql.Connection connection,
java.lang.String parentId,
java.util.ArrayList slots)
Get the ArrayList of the names of a Slots that already exist in database |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SlotDAO
protected SlotDAO()
getTableNameStatic
public static java.lang.String getTableNameStatic()
getTableName
public java.lang.String getTableName()
slotsExist
public java.util.ArrayList slotsExist(java.sql.Connection connection,
java.lang.String parentId,
java.util.ArrayList slots)
throws RegistryException
- Get the ArrayList of the names of a Slots that already exist in database
- Parameters:
parentId
- the id of the parent of those slots
- Throws:
RegistryException
getDuplicateSlots
public java.util.ArrayList getDuplicateSlots(java.util.ArrayList slots)
- It checks whether there exists more than a slot having the same name
insert
public void insert(java.sql.Connection connection,
java.lang.String parentId,
java.util.ArrayList slots,
boolean parentInsert)
throws RegistryException
- Parameters:
parentInsert
- It should be set to true if Slot insert is part of new
RegistryObject insert (i.e. in the case of SubmitObjectsRequest). It should
be set to false in the case of AddSlotsRequest because the parent of the
slot is expected to be already submitted by previous SubmitObjectRequest.
In the latter case whether the parents of the slots exist will be checked.
- Throws:
RegistryException
deleteByParentIds
public void deleteByParentIds(java.sql.Connection connection,
java.util.ArrayList parentIds)
throws RegistryException
- Throws:
RegistryException
deleteByParentIdAndSlots
public void deleteByParentIdAndSlots(java.sql.Connection connection,
java.lang.String parentId,
java.util.ArrayList slots)
throws RegistryException
- Throws:
RegistryException