Enum InterfaceManagerSQLStatements.SqlStatements
- java.lang.Object
-
- java.lang.Enum<InterfaceManagerSQLStatements.SqlStatements>
-
- es.bsc.dataclay.logic.interfacemgr.InterfaceManagerSQLStatements.SqlStatements
-
- All Implemented Interfaces:
Serializable
,Comparable<InterfaceManagerSQLStatements.SqlStatements>
- Enclosing class:
- InterfaceManagerSQLStatements
public static enum InterfaceManagerSQLStatements.SqlStatements extends Enum<InterfaceManagerSQLStatements.SqlStatements>
This enumeration represent all possible SQL statements.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATE_TABLE_INTERFACE
Create.DELETE_INTERFACE
Delete.DROP_TABLE_INTERFACE
Drop table.INSERT_INTERFACE
Insert.SELECT_IFACE_FROM_NAMES
Select.SELECT_IFACES_OF_CLASS
Select.SELECT_INTERFACE
Select.
-
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 InterfaceManagerSQLStatements.SqlStatements
valueOf(String name)
Returns the enum constant of this type with the specified name.static InterfaceManagerSQLStatements.SqlStatements[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE_TABLE_INTERFACE
public static final InterfaceManagerSQLStatements.SqlStatements CREATE_TABLE_INTERFACE
Create.
-
DROP_TABLE_INTERFACE
public static final InterfaceManagerSQLStatements.SqlStatements DROP_TABLE_INTERFACE
Drop table.
-
INSERT_INTERFACE
public static final InterfaceManagerSQLStatements.SqlStatements INSERT_INTERFACE
Insert.
-
SELECT_INTERFACE
public static final InterfaceManagerSQLStatements.SqlStatements SELECT_INTERFACE
Select.
-
DELETE_INTERFACE
public static final InterfaceManagerSQLStatements.SqlStatements DELETE_INTERFACE
Delete.
-
SELECT_IFACES_OF_CLASS
public static final InterfaceManagerSQLStatements.SqlStatements SELECT_IFACES_OF_CLASS
Select.
-
SELECT_IFACE_FROM_NAMES
public static final InterfaceManagerSQLStatements.SqlStatements SELECT_IFACE_FROM_NAMES
Select.
-
-
Method Detail
-
values
public static InterfaceManagerSQLStatements.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 (InterfaceManagerSQLStatements.SqlStatements c : InterfaceManagerSQLStatements.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 InterfaceManagerSQLStatements.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
-
-