Package es.bsc.dataclay.dbhandler.sql
Enum DataServiceDBSQLStatements.SqlStatements
- java.lang.Object
-
- java.lang.Enum<DataServiceDBSQLStatements.SqlStatements>
-
- es.bsc.dataclay.dbhandler.sql.DataServiceDBSQLStatements.SqlStatements
-
- All Implemented Interfaces:
Serializable
,Comparable<DataServiceDBSQLStatements.SqlStatements>
- Enclosing class:
- DataServiceDBSQLStatements
public static enum DataServiceDBSQLStatements.SqlStatements extends Enum<DataServiceDBSQLStatements.SqlStatements>
This enumeration represent all possible SQL statements.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COUNT_OBJECTS
Count objects query.CREATE_TABLE_DATASERVICE
Create DS table.DELETE_OBJECT
Delete object.DROP_TABLE_DATASERVICE
Drop DS table.EXISTS_OBJECT
Exists object query.INSERT_OBJECT
Insert object sql query.SELECT_OBJECT
Select object sql query.UPDATE_OBJECT
Update object.VACUUM
Vacuum database.
-
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 DataServiceDBSQLStatements.SqlStatements
valueOf(String name)
Returns the enum constant of this type with the specified name.static DataServiceDBSQLStatements.SqlStatements[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE_TABLE_DATASERVICE
public static final DataServiceDBSQLStatements.SqlStatements CREATE_TABLE_DATASERVICE
Create DS table.
-
DROP_TABLE_DATASERVICE
public static final DataServiceDBSQLStatements.SqlStatements DROP_TABLE_DATASERVICE
Drop DS table.
-
INSERT_OBJECT
public static final DataServiceDBSQLStatements.SqlStatements INSERT_OBJECT
Insert object sql query.
-
SELECT_OBJECT
public static final DataServiceDBSQLStatements.SqlStatements SELECT_OBJECT
Select object sql query.
-
EXISTS_OBJECT
public static final DataServiceDBSQLStatements.SqlStatements EXISTS_OBJECT
Exists object query.
-
DELETE_OBJECT
public static final DataServiceDBSQLStatements.SqlStatements DELETE_OBJECT
Delete object.
-
VACUUM
public static final DataServiceDBSQLStatements.SqlStatements VACUUM
Vacuum database.
-
COUNT_OBJECTS
public static final DataServiceDBSQLStatements.SqlStatements COUNT_OBJECTS
Count objects query.
-
UPDATE_OBJECT
public static final DataServiceDBSQLStatements.SqlStatements UPDATE_OBJECT
Update object.
-
-
Method Detail
-
values
public static DataServiceDBSQLStatements.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 (DataServiceDBSQLStatements.SqlStatements c : DataServiceDBSQLStatements.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 DataServiceDBSQLStatements.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
-
-