Enum NotificationMgrSQLStatements.SqlStatements
- java.lang.Object
-
- java.lang.Enum<NotificationMgrSQLStatements.SqlStatements>
-
- es.bsc.dataclay.logic.notificationmgr.NotificationMgrSQLStatements.SqlStatements
-
- All Implemented Interfaces:
Serializable
,Comparable<NotificationMgrSQLStatements.SqlStatements>
- Enclosing class:
- NotificationMgrSQLStatements
public static enum NotificationMgrSQLStatements.SqlStatements extends Enum<NotificationMgrSQLStatements.SqlStatements>
This enumeration represent all possible SQL statements.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATE_TABLE_EVENT_LISTENERS
Create Listeners table.CREATE_TABLE_EVENT_MESSAGES
Create messages table.DELETE_MESSAGE
Delete message.DROP_TABLE_EVENT_LISTENERS
Drop listeners table.DROP_TABLE_EVENT_MESSAGES
Drop messages table.INSERT_ECA
Insert ECA sql query.INSERT_MESSAGE
Insert Message sql query.SELECT_ALL_ECAS
Select all Ecas.SELECT_ALL_ECAS_LIMITED
Select all ecas limited.SELECT_ALL_MESSAGES
Select all messages.SELECT_ALL_MESSAGES_LIMITED
Select all messages limited.UPDATE_ECA
Update ECA.UPDATE_MESSAGE
Update message.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSqlStatement()
Get the sqlStatementstatic void
loadStatements()
Init properties of the properties filevoid
setSqlStatement(String newsqlStatement)
Set the sqlStatementstatic void
unloadStatements()
Unload statements.static NotificationMgrSQLStatements.SqlStatements
valueOf(String name)
Returns the enum constant of this type with the specified name.static NotificationMgrSQLStatements.SqlStatements[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE_TABLE_EVENT_LISTENERS
public static final NotificationMgrSQLStatements.SqlStatements CREATE_TABLE_EVENT_LISTENERS
Create Listeners table.
-
CREATE_TABLE_EVENT_MESSAGES
public static final NotificationMgrSQLStatements.SqlStatements CREATE_TABLE_EVENT_MESSAGES
Create messages table.
-
DROP_TABLE_EVENT_LISTENERS
public static final NotificationMgrSQLStatements.SqlStatements DROP_TABLE_EVENT_LISTENERS
Drop listeners table.
-
DROP_TABLE_EVENT_MESSAGES
public static final NotificationMgrSQLStatements.SqlStatements DROP_TABLE_EVENT_MESSAGES
Drop messages table.
-
INSERT_ECA
public static final NotificationMgrSQLStatements.SqlStatements INSERT_ECA
Insert ECA sql query.
-
INSERT_MESSAGE
public static final NotificationMgrSQLStatements.SqlStatements INSERT_MESSAGE
Insert Message sql query.
-
DELETE_MESSAGE
public static final NotificationMgrSQLStatements.SqlStatements DELETE_MESSAGE
Delete message.
-
UPDATE_ECA
public static final NotificationMgrSQLStatements.SqlStatements UPDATE_ECA
Update ECA.
-
UPDATE_MESSAGE
public static final NotificationMgrSQLStatements.SqlStatements UPDATE_MESSAGE
Update message.
-
SELECT_ALL_MESSAGES
public static final NotificationMgrSQLStatements.SqlStatements SELECT_ALL_MESSAGES
Select all messages.
-
SELECT_ALL_ECAS
public static final NotificationMgrSQLStatements.SqlStatements SELECT_ALL_ECAS
Select all Ecas.
-
SELECT_ALL_ECAS_LIMITED
public static final NotificationMgrSQLStatements.SqlStatements SELECT_ALL_ECAS_LIMITED
Select all ecas limited.
-
SELECT_ALL_MESSAGES_LIMITED
public static final NotificationMgrSQLStatements.SqlStatements SELECT_ALL_MESSAGES_LIMITED
Select all messages limited.
-
-
Method Detail
-
values
public static NotificationMgrSQLStatements.SqlStatements[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NotificationMgrSQLStatements.SqlStatements c : NotificationMgrSQLStatements.SqlStatements.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NotificationMgrSQLStatements.SqlStatements valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
unloadStatements
public static void unloadStatements()
Unload statements.
-
loadStatements
public static void loadStatements()
Init properties of the properties file
-
getSqlStatement
public String getSqlStatement()
Get the sqlStatement- Returns:
- the sqlStatement
-
setSqlStatement
public void setSqlStatement(String newsqlStatement)
Set the sqlStatement- Parameters:
newsqlStatement
- the sqlStatement
-
-