public class EventNotificationSelector extends Object
Modifier and Type | Class and Description |
---|---|
static class |
EventNotificationSelector.DummyAuditExecutor |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ALIAS
The default search alias.
|
protected static String |
EVENT_NOTIFICATION_COLUMNS
The SQL column list for selecting from the notification table.
|
static String |
EVENT_NOTIFICATION_TABLE_NAME
The notification table name.
|
Constructor and Description |
---|
EventNotificationSelector(LibrarySession session)
Constructs a EventNotificationSelector.
|
Modifier and Type | Method and Description |
---|---|
AttributeValue[] |
getBindValues()
Gets the bind values to use in the select statement.
|
String |
getHint()
Gets the SQL hint to use for the main select.
|
int |
getItemCount()
Returns the search result count.
|
int |
getMaxItemCount()
Returns the maximum number of items that will be returned by
getItems . |
EventNotification[] |
getNotifications()
Returns the EventNotification array that reflects the search results.
|
LibraryObject |
getNotifyee()
Sets the notifyed user to include in teh search condition.
|
String |
getSearchCondition()
Returns the search selection that was set using setSearchCondition()
|
LibrarySession |
getSession()
Returns the session being used by this Selector.
|
String |
getSqlStatement()
Gets the SQL statement that will be used.
|
void |
setBindValues(AttributeValue[] bindValues)
Sets the bind values to use in the select statement.
|
void |
setHint(String hint)
Sets the SQL hint to use for the main select.
|
void |
setMaxItemCount(int maxItemCount)
Sets the maximum number of items that will be returned by
getItems . |
void |
setNotifyee(LibraryObject notifyee)
Sets the notifyed user to include in teh search condition.
|
void |
setSearchCondition(String searchCondition)
Sets the search condition.
|
void |
setSortClause(String sort)
Sets the Sort clause.
|
public static final String EVENT_NOTIFICATION_TABLE_NAME
public static final String DEFAULT_ALIAS
protected static final String EVENT_NOTIFICATION_COLUMNS
public EventNotificationSelector(LibrarySession session) throws IfsException
session
- the current session.IfsException
- if the operation fails.public LibrarySession getSession() throws IfsException
IfsException
- if the operation fails.public LibraryObject getNotifyee() throws IfsException
IfsException
- if the operation fails.public String getSearchCondition() throws IfsException
IfsException
- if operation fails.public int getMaxItemCount() throws IfsException
getItems
.
A value of zero indicates that there is no limit on the desired number of items.
IfsException
- if the operation fails.public String getHint() throws IfsException
IfsException
- if the operation fails.public AttributeValue[] getBindValues() throws IfsException
IfsException
- if the operation fails.public String getSqlStatement() throws IfsException
IfsException
- if the operation fails.public void setNotifyee(LibraryObject notifyee) throws IfsException
notifyee
- the notified user (or other object); a null
indicates that previous setting should be clearedIfsException
- if the operation fails.public void setSortClause(String sort) throws IfsException
sort
- the sort clause; e.g. "notifydate desc"
NOTE: keywords "order by" are added automatically
(do not include them in the specified String)IfsException
- if the operation fails.public void setSearchCondition(String searchCondition) throws IfsException
searchCondition
- the search selection; e.g. "notifydate > ?"
NOTE: keyword "where" is added automatically
(do not include it in the specified String)IfsException
- if operation fails.public void setMaxItemCount(int maxItemCount) throws IfsException
getItems
.
A value of zero indicates that there is no limit on the desired number of items.
maxItemCount
- maximum number of items that will be returnedIfsException
- if the operation fails.public void setHint(String hint) throws IfsException
hint
- the SQL hintIfsException
- if the operation fails.public void setBindValues(AttributeValue[] bindValues) throws IfsException
bindValues
- the bind valuesIfsException
- if the operation fails.public EventNotification[] getNotifications() throws IfsException
IfsException
- if operation fails.public int getItemCount() throws IfsException
IfsException
- if operation fails.Copyright © 2023. All rights reserved.