Enum DataContractManagerSQLStatements.SqlStatements
- java.lang.Object
-
- java.lang.Enum<DataContractManagerSQLStatements.SqlStatements>
-
- es.bsc.dataclay.logic.datacontractmgr.DataContractManagerSQLStatements.SqlStatements
-
- All Implemented Interfaces:
Serializable
,Comparable<DataContractManagerSQLStatements.SqlStatements>
- Enclosing class:
- DataContractManagerSQLStatements
public static enum DataContractManagerSQLStatements.SqlStatements extends Enum<DataContractManagerSQLStatements.SqlStatements>
This enumeration represent all possible SQL statements.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATE_TABLE_DATACONTRACT
Create.DELETE_DATACONTRACT
Delete.DROP_TABLE_DATACONTRACT
Drop.INSERT_DATACONTRACT
Insert.SELECT_ALL_DATACONTRACTS_OF_DATASET
Select.SELECT_ALL_DATACONTRACTS_WITH_APPLICANT
Select.SELECT_ALL_DATACONTRACTS_WITH_APPLICANT_AND_DATASET
Select.SELECT_ALL_DATACONTRACTS_WITH_PROVIDER
Select.SELECT_DATACONTRACT
Select account.UPDATE_DATACONTRACT_ADD_APPLICANT
Update.
-
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 DataContractManagerSQLStatements.SqlStatements
valueOf(String name)
Returns the enum constant of this type with the specified name.static DataContractManagerSQLStatements.SqlStatements[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE_TABLE_DATACONTRACT
public static final DataContractManagerSQLStatements.SqlStatements CREATE_TABLE_DATACONTRACT
Create.
-
DROP_TABLE_DATACONTRACT
public static final DataContractManagerSQLStatements.SqlStatements DROP_TABLE_DATACONTRACT
Drop.
-
INSERT_DATACONTRACT
public static final DataContractManagerSQLStatements.SqlStatements INSERT_DATACONTRACT
Insert.
-
SELECT_DATACONTRACT
public static final DataContractManagerSQLStatements.SqlStatements SELECT_DATACONTRACT
Select account.
-
DELETE_DATACONTRACT
public static final DataContractManagerSQLStatements.SqlStatements DELETE_DATACONTRACT
Delete.
-
UPDATE_DATACONTRACT_ADD_APPLICANT
public static final DataContractManagerSQLStatements.SqlStatements UPDATE_DATACONTRACT_ADD_APPLICANT
Update.
-
SELECT_ALL_DATACONTRACTS_OF_DATASET
public static final DataContractManagerSQLStatements.SqlStatements SELECT_ALL_DATACONTRACTS_OF_DATASET
Select.
-
SELECT_ALL_DATACONTRACTS_WITH_APPLICANT
public static final DataContractManagerSQLStatements.SqlStatements SELECT_ALL_DATACONTRACTS_WITH_APPLICANT
Select.
-
SELECT_ALL_DATACONTRACTS_WITH_PROVIDER
public static final DataContractManagerSQLStatements.SqlStatements SELECT_ALL_DATACONTRACTS_WITH_PROVIDER
Select.
-
SELECT_ALL_DATACONTRACTS_WITH_APPLICANT_AND_DATASET
public static final DataContractManagerSQLStatements.SqlStatements SELECT_ALL_DATACONTRACTS_WITH_APPLICANT_AND_DATASET
Select.
-
-
Method Detail
-
values
public static DataContractManagerSQLStatements.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 (DataContractManagerSQLStatements.SqlStatements c : DataContractManagerSQLStatements.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 DataContractManagerSQLStatements.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
-
-