Package es.bsc.dataclay.logic.accountmgr
Enum AccountMgrSQLStatements.SqlStatements
- java.lang.Object
-
- java.lang.Enum<AccountMgrSQLStatements.SqlStatements>
-
- es.bsc.dataclay.logic.accountmgr.AccountMgrSQLStatements.SqlStatements
-
- All Implemented Interfaces:
Serializable
,Comparable<AccountMgrSQLStatements.SqlStatements>
- Enclosing class:
- AccountMgrSQLStatements
public static enum AccountMgrSQLStatements.SqlStatements extends Enum<AccountMgrSQLStatements.SqlStatements>
This enumeration represent all possible SQL statements.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATE_TABLE_ACCOUNT
Create account table.CREATE_TABLE_CREDENTIAL
Create credentials table.DROP_TABLE_ACCOUNT
Drop Account table.DROP_TABLE_CREDENTIAL
Drop credential table.EXISTS_ACCOUNT_BY_ID
Select account by id.EXISTS_ACCOUNT_BY_NAME
Exists account by name.INSERT_ACCOUNT
Insert account.INSERT_CREDENTIAL
Insert credential.SELECT_ACCOUNT
Select account.SELECT_ACCOUNT_BY_NAME
Select account by name.SELECT_ALL_NORMAL_ACCOUNTS
Get all normal accounts.SELECT_CREDENTIAL
Select credential.
-
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 AccountMgrSQLStatements.SqlStatements
valueOf(String name)
Returns the enum constant of this type with the specified name.static AccountMgrSQLStatements.SqlStatements[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE_TABLE_CREDENTIAL
public static final AccountMgrSQLStatements.SqlStatements CREATE_TABLE_CREDENTIAL
Create credentials table.
-
CREATE_TABLE_ACCOUNT
public static final AccountMgrSQLStatements.SqlStatements CREATE_TABLE_ACCOUNT
Create account table.
-
DROP_TABLE_CREDENTIAL
public static final AccountMgrSQLStatements.SqlStatements DROP_TABLE_CREDENTIAL
Drop credential table.
-
DROP_TABLE_ACCOUNT
public static final AccountMgrSQLStatements.SqlStatements DROP_TABLE_ACCOUNT
Drop Account table.
-
INSERT_CREDENTIAL
public static final AccountMgrSQLStatements.SqlStatements INSERT_CREDENTIAL
Insert credential.
-
INSERT_ACCOUNT
public static final AccountMgrSQLStatements.SqlStatements INSERT_ACCOUNT
Insert account.
-
EXISTS_ACCOUNT_BY_NAME
public static final AccountMgrSQLStatements.SqlStatements EXISTS_ACCOUNT_BY_NAME
Exists account by name.
-
SELECT_ACCOUNT
public static final AccountMgrSQLStatements.SqlStatements SELECT_ACCOUNT
Select account.
-
SELECT_ALL_NORMAL_ACCOUNTS
public static final AccountMgrSQLStatements.SqlStatements SELECT_ALL_NORMAL_ACCOUNTS
Get all normal accounts.
-
SELECT_CREDENTIAL
public static final AccountMgrSQLStatements.SqlStatements SELECT_CREDENTIAL
Select credential.
-
SELECT_ACCOUNT_BY_NAME
public static final AccountMgrSQLStatements.SqlStatements SELECT_ACCOUNT_BY_NAME
Select account by name.
-
EXISTS_ACCOUNT_BY_ID
public static final AccountMgrSQLStatements.SqlStatements EXISTS_ACCOUNT_BY_ID
Select account by id.
-
-
Method Detail
-
values
public static AccountMgrSQLStatements.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 (AccountMgrSQLStatements.SqlStatements c : AccountMgrSQLStatements.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 AccountMgrSQLStatements.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
-
-