Package es.bsc.dataclay.logic.datasetmgr
Enum DataSetManagerSQLStatements.SqlStatements
- java.lang.Object
-
- java.lang.Enum<DataSetManagerSQLStatements.SqlStatements>
-
- es.bsc.dataclay.logic.datasetmgr.DataSetManagerSQLStatements.SqlStatements
-
- All Implemented Interfaces:
Serializable
,Comparable<DataSetManagerSQLStatements.SqlStatements>
- Enclosing class:
- DataSetManagerSQLStatements
public static enum DataSetManagerSQLStatements.SqlStatements extends Enum<DataSetManagerSQLStatements.SqlStatements>
This enumeration represent all possible SQL statements.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATE_TABLE_DATASET
Create.DELETE_DATASET
Delete.DROP_TABLE_DATASET
Drop.INSERT_DATASET
Insert.SELECT_ACCOUNT_DATASETS
Select account's datasetsSELECT_DATASET
Select account.SELECT_DATASET_BY_NAME
Select a dataset by name.SELECT_PUBLIC_DATASETS
Select public datasets.
-
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 DataSetManagerSQLStatements.SqlStatements
valueOf(String name)
Returns the enum constant of this type with the specified name.static DataSetManagerSQLStatements.SqlStatements[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE_TABLE_DATASET
public static final DataSetManagerSQLStatements.SqlStatements CREATE_TABLE_DATASET
Create.
-
DROP_TABLE_DATASET
public static final DataSetManagerSQLStatements.SqlStatements DROP_TABLE_DATASET
Drop.
-
INSERT_DATASET
public static final DataSetManagerSQLStatements.SqlStatements INSERT_DATASET
Insert.
-
SELECT_DATASET
public static final DataSetManagerSQLStatements.SqlStatements SELECT_DATASET
Select account.
-
DELETE_DATASET
public static final DataSetManagerSQLStatements.SqlStatements DELETE_DATASET
Delete.
-
SELECT_DATASET_BY_NAME
public static final DataSetManagerSQLStatements.SqlStatements SELECT_DATASET_BY_NAME
Select a dataset by name.
-
SELECT_PUBLIC_DATASETS
public static final DataSetManagerSQLStatements.SqlStatements SELECT_PUBLIC_DATASETS
Select public datasets.
-
SELECT_ACCOUNT_DATASETS
public static final DataSetManagerSQLStatements.SqlStatements SELECT_ACCOUNT_DATASETS
Select account's datasets
-
-
Method Detail
-
values
public static DataSetManagerSQLStatements.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 (DataSetManagerSQLStatements.SqlStatements c : DataSetManagerSQLStatements.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 DataSetManagerSQLStatements.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
-
-