de.uplanet.lucy.server.usermanager.usecases
Interface IDsucSet

All Superinterfaces:
IDsucObject
All Known Subinterfaces:
IDsucDistList, IDsucGroup, IDsucRole

public interface IDsucSet
extends IDsucObject

Version:
$Revision: 48263 $

Method Summary
 void addMembers(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strSetGuid, int... p_ids)
           
 void addMembers(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strSetGuid, java.lang.String... p_guids)
           
 void clearMembers(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strSetGuid)
          removes all members from a given set
 java.util.List<IDsObjectRecord> getMembers(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strSetGuid, IDsSelectFilter p_filter)
           
 int getMembersCount(de.uplanet.jdbc.JdbcConnection p_strConn, java.lang.String p_strSetGuid, IDsSelectFilter p_selectFilter)
           
 void removeMembers(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strSetGuid, int... p_ids)
           
 void removeMembers(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strSetGuid, java.lang.String... p_guids)
           
 java.util.List<IDsSetRecord> selectContainingSets(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strGuid)
          Get a list of set records that contain the object given by the id (records that are not deleted and not disabled).
 IDsSetRecord selectFullSet(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strGuid)
           
 java.util.List<IDsSetRecord> selectNotContainingSets(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strGuid)
          Get a list of set records that contains not the object given by the id (records that are not deleted and not disabled).
 java.util.List<IDsSetRecord> selectSet(de.uplanet.jdbc.JdbcConnection p_conn, IDsSelectFilter p_filter)
           
 IDsSetRecord selectSet(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strGuid)
           
 IDsSetRecord selectSet(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strGuid, java.lang.String... p_fieldGuids)
           
 int selectSetCount(de.uplanet.jdbc.JdbcConnection p_conn, IDsSelectFilter p_filter)
           
 java.util.List<IDsSetRecord> selectSetsContains(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId)
           
 java.util.List<IDsSetRecord> selectSetsContainsNot(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId)
          Get a list of set records that contains not the object given by the id (records that are not deleted and not disabled).
 
Methods inherited from interface de.uplanet.lucy.server.usermanager.usecases.IDsucObject
append, delete, fromGuid, fromGuid, getLastSQLStatement, guidToId, idToGuid, move, select, selectCount, selectFullObject, selectObject, selectObject, selectObject, selectObjectCount, update
 

Method Detail

selectSetCount

int selectSetCount(de.uplanet.jdbc.JdbcConnection p_conn,
                   IDsSelectFilter p_filter)
                   throws java.sql.SQLException
Parameters:
p_conn - database connection
p_filter - can be null
Returns:
count of sets
Throws:
java.sql.SQLException

selectSet

java.util.List<IDsSetRecord> selectSet(de.uplanet.jdbc.JdbcConnection p_conn,
                                       IDsSelectFilter p_filter)
                                       throws java.sql.SQLException
Parameters:
p_conn -
p_filter - can be null, or the filter settings are used for the select
Returns:
list of set records
Throws:
java.sql.SQLException

selectFullSet

IDsSetRecord selectFullSet(de.uplanet.jdbc.JdbcConnection p_conn,
                           java.lang.String p_strGuid)
                           throws java.sql.SQLException
Parameters:
p_conn -
p_strGuid -
Returns:
a full readed set record, or null if no set record found for the guid
Throws:
java.sql.SQLException
DsRuntimeException - a record for the guid exists, but is not of a type of a set

selectSet

IDsSetRecord selectSet(de.uplanet.jdbc.JdbcConnection p_conn,
                       java.lang.String p_strGuid)
                       throws java.sql.SQLException
Parameters:
p_conn -
p_strGuid -
Returns:
the set record(id, guid, containerguid,containerid and name columns are set) or null if no record is found
Throws:
java.sql.SQLException
DsRuntimeException - a record for the guid exists, but is not of a type of a set

selectSet

IDsSetRecord selectSet(de.uplanet.jdbc.JdbcConnection p_conn,
                       java.lang.String p_strGuid,
                       java.lang.String... p_fieldGuids)
                       throws java.sql.SQLException
Parameters:
p_conn -
p_strGuid -
p_fieldGuids -
Returns:
a set record (id,containerid, containerguid, name + column given by the field guids are set) or null if no set found for the given guid
Throws:
java.sql.SQLException
DsRuntimeException - a record for the guid exists, but is not of a type of a set

getMembers

java.util.List<IDsObjectRecord> getMembers(de.uplanet.jdbc.JdbcConnection p_conn,
                                           java.lang.String p_strSetGuid,
                                           IDsSelectFilter p_filter)
                                           throws java.sql.SQLException,
                                                  DsException
Parameters:
p_conn -
p_strSetGuid -
p_filter - can be null
Returns:
list of member records, empty list if the set has no member
Throws:
java.sql.SQLException
DsException

addMembers

void addMembers(de.uplanet.jdbc.JdbcConnection p_conn,
                java.lang.String p_strSetGuid,
                java.lang.String... p_guids)
                throws java.sql.SQLException,
                       DsException
Parameters:
p_conn -
p_strSetGuid - if no set found with that guid, a warning is written to the log
p_guids - guids to add
Throws:
java.sql.SQLException
DsException

addMembers

void addMembers(de.uplanet.jdbc.JdbcConnection p_conn,
                java.lang.String p_strSetGuid,
                int... p_ids)
                throws java.sql.SQLException,
                       DsException
Parameters:
p_conn -
p_strSetGuid - if no set found with that guid, a warning is written to the log
p_ids - the ids added to the set
Throws:
java.sql.SQLException
DsException

removeMembers

void removeMembers(de.uplanet.jdbc.JdbcConnection p_conn,
                   java.lang.String p_strSetGuid,
                   java.lang.String... p_guids)
                   throws java.sql.SQLException,
                          DsException
Parameters:
p_conn -
p_strSetGuid - if no set found for that guid, a warning is written to the log.
p_guids - the member guids to remove
Throws:
java.sql.SQLException
DsException

removeMembers

void removeMembers(de.uplanet.jdbc.JdbcConnection p_conn,
                   java.lang.String p_strSetGuid,
                   int... p_ids)
                   throws java.sql.SQLException,
                          DsException
Parameters:
p_conn -
p_strSetGuid - if no set found for that guid, a warning is written to the log.
p_ids - the member ids to remove
Throws:
java.sql.SQLException
DsException

clearMembers

void clearMembers(de.uplanet.jdbc.JdbcConnection p_conn,
                  java.lang.String p_strSetGuid)
                  throws java.sql.SQLException,
                         DsException
removes all members from a given set

Parameters:
p_conn -
p_strSetGuid - if no set found for that guid, a warning is written to the log.
Throws:
java.sql.SQLException
DsException

getMembersCount

int getMembersCount(de.uplanet.jdbc.JdbcConnection p_strConn,
                    java.lang.String p_strSetGuid,
                    IDsSelectFilter p_selectFilter)
                    throws java.sql.SQLException,
                           DsException
Parameters:
p_strConn -
p_strSetGuid - if no set found for
p_selectFilter - can be null
Returns:
count of members
Throws:
java.sql.SQLException
DsException

selectContainingSets

java.util.List<IDsSetRecord> selectContainingSets(de.uplanet.jdbc.JdbcConnection p_conn,
                                                  java.lang.String p_strGuid)
                                                  throws java.sql.SQLException,
                                                         DsException
Get a list of set records that contain the object given by the id (records that are not deleted and not disabled).

Returns:
A list of records typeof IDsSetRecord or an derived type. (PrimaryKey, ClassId,ContainerID, ContainerGuid, Name, ClassId, Guid, Disabled, Deleted)
Throws:
DsException
java.sql.SQLException

selectSetsContains

java.util.List<IDsSetRecord> selectSetsContains(de.uplanet.jdbc.JdbcConnection p_conn,
                                                int p_iUserId)
                                                throws java.sql.SQLException,
                                                       DsException
Throws:
java.sql.SQLException
DsException

selectNotContainingSets

java.util.List<IDsSetRecord> selectNotContainingSets(de.uplanet.jdbc.JdbcConnection p_conn,
                                                     java.lang.String p_strGuid)
                                                     throws java.sql.SQLException,
                                                            DsException
Get a list of set records that contains not the object given by the id (records that are not deleted and not disabled).

Returns:
A list of records typeof IDsSetRecord or an derived type. (PrimaryKey, ClassId,ContainerID, ContainerGuid, Name, ClassId, Guid, Disabled, Deleted)
Throws:
DsException
java.sql.SQLException

selectSetsContainsNot

java.util.List<IDsSetRecord> selectSetsContainsNot(de.uplanet.jdbc.JdbcConnection p_conn,
                                                   int p_iUserId)
                                                   throws java.sql.SQLException,
                                                          DsException
Get a list of set records that contains not the object given by the id (records that are not deleted and not disabled).

Returns:
A list of records typeof IDsSetRecord or an derived type. (PrimaryKey, ClassId,ContainerID, ContainerGuid, Name, ClassId, Guid, Disabled, Deleted)
Throws:
DsException
java.sql.SQLException


Last updated: 2011-08-11 10-04
Copyright © 2000-2011 United Planet. All Rights Reserved.