Enum Class SQLStatement

java.lang.Object
java.lang.Enum<SQLStatement>
nl.pim16aap2.animatedarchitecture.core.storage.SQLStatement
All Implemented Interfaces:
Serializable, Comparable<SQLStatement>, Constable

public enum SQLStatement extends Enum<SQLStatement>
Represents an SQL statement.
  • Enum Constant Details

    • UPDATE_STRUCTURE_BASE

      public static final SQLStatement UPDATE_STRUCTURE_BASE
    • UPDATE_STRUCTURE_OWNER_PERMISSION

      public static final SQLStatement UPDATE_STRUCTURE_OWNER_PERMISSION
    • GET_STRUCTURE_OWNER_PLAYER

      public static final SQLStatement GET_STRUCTURE_OWNER_PLAYER
    • DELETE_NAMED_STRUCTURE_OF_PLAYER

      public static final SQLStatement DELETE_NAMED_STRUCTURE_OF_PLAYER
    • DELETE_STRUCTURE_TYPE

      public static final SQLStatement DELETE_STRUCTURE_TYPE
    • INSERT_STRUCTURE_OWNER

      public static final SQLStatement INSERT_STRUCTURE_OWNER
    • REMOVE_STRUCTURE_OWNER

      public static final SQLStatement REMOVE_STRUCTURE_OWNER
    • GET_POWER_BLOCK_DATA_IN_CHUNK

      public static final SQLStatement GET_POWER_BLOCK_DATA_IN_CHUNK
    • INSERT_OR_IGNORE_PLAYER_DATA

      public static final SQLStatement INSERT_OR_IGNORE_PLAYER_DATA
    • GET_IDENTIFIERS_FROM_PARTIAL_NAME_MATCH_WITH_OWNER

      public static final SQLStatement GET_IDENTIFIERS_FROM_PARTIAL_NAME_MATCH_WITH_OWNER
    • GET_IDENTIFIERS_FROM_PARTIAL_UID_MATCH_WITH_OWNER

      public static final SQLStatement GET_IDENTIFIERS_FROM_PARTIAL_UID_MATCH_WITH_OWNER
    • UPDATE_PLAYER_DATA

      public static final SQLStatement UPDATE_PLAYER_DATA
    • GET_PLAYER_DATA

      public static final SQLStatement GET_PLAYER_DATA
    • GET_PLAYER_DATA_FROM_NAME

      public static final SQLStatement GET_PLAYER_DATA_FROM_NAME
    • GET_OWNER_COUNT_OF_STRUCTURE

      public static final SQLStatement GET_OWNER_COUNT_OF_STRUCTURE
    • GET_STRUCTURE_COUNT_BY_NAME

      public static final SQLStatement GET_STRUCTURE_COUNT_BY_NAME
    • GET_PLAYER_STRUCTURE_COUNT

      public static final SQLStatement GET_PLAYER_STRUCTURE_COUNT
    • GET_STRUCTURE_COUNT_FOR_PLAYER

      public static final SQLStatement GET_STRUCTURE_COUNT_FOR_PLAYER
    • IS_ANIMATE_ARCHITECTURE_WORLD

      public static final SQLStatement IS_ANIMATE_ARCHITECTURE_WORLD
    • DELETE_STRUCTURE

      public static final SQLStatement DELETE_STRUCTURE
    • GET_PLAYER_ID

      public static final SQLStatement GET_PLAYER_ID
    • GET_STRUCTURE_BASE_FROM_ID

      public static final SQLStatement GET_STRUCTURE_BASE_FROM_ID
    • GET_STRUCTURES_IN_CHUNK

      public static final SQLStatement GET_STRUCTURES_IN_CHUNK
      Obtains the structures whose center point's chunk hash value has a certain value.
    • GET_STRUCTURE_BASE_FROM_ID_FOR_PLAYER

      public static final SQLStatement GET_STRUCTURE_BASE_FROM_ID_FOR_PLAYER
    • GET_NAMED_STRUCTURES_OWNED_BY_PLAYER

      public static final SQLStatement GET_NAMED_STRUCTURES_OWNED_BY_PLAYER
    • GET_STRUCTURES_WITH_NAME

      public static final SQLStatement GET_STRUCTURES_WITH_NAME
    • GET_STRUCTURES_OWNED_BY_PLAYER_WITH_LEVEL

      public static final SQLStatement GET_STRUCTURES_OWNED_BY_PLAYER_WITH_LEVEL
    • GET_STRUCTURE_OWNERS

      public static final SQLStatement GET_STRUCTURE_OWNERS
    • GET_STRUCTURES_OF_TYPE

      public static final SQLStatement GET_STRUCTURES_OF_TYPE
    • GET_STRUCTURES_OF_VERSIONED_TYPE

      public static final SQLStatement GET_STRUCTURES_OF_VERSIONED_TYPE
    • INSERT_STRUCTURE_BASE

      public static final SQLStatement INSERT_STRUCTURE_BASE
    • INSERT_PRIME_OWNER

      public static final SQLStatement INSERT_PRIME_OWNER
      Inserts a new structure creator. This is a structure owner with permission level 0.
  • Method Details

    • values

      public static SQLStatement[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SQLStatement valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getStatement

      public static String getStatement(SQLStatement sqlStatement)
      Gets the statement this SQLStatement represents.
      Parameters:
      sqlStatement - The SQLStatement.
      Returns:
      The statement this SQLStatement represents.
    • getVariableCountCount

      public static int getVariableCountCount(SQLStatement sqlStatement)
      Gets the number of variables in the statement.
      Parameters:
      sqlStatement - The statement.
      Returns:
      The number of variables in the statement.
    • constructDelayedPreparedStatement

      public static DelayedPreparedStatement constructDelayedPreparedStatement(SQLStatement sqlStatement)
      Constructs a new DelayedPreparedStatement from the SQLStatement.
      Parameters:
      sqlStatement - The SQLStatement.
      Returns:
      A new DelayedPreparedStatement.
    • constructDelayedPreparedStatement

      public DelayedPreparedStatement constructDelayedPreparedStatement()
      Constructs a new DelayedPreparedStatement from this SQLStatement.
      Returns:
      A new DelayedPreparedStatement.
    • getStatement

      public String getStatement()
      The statement this SQLStatement represents.
    • getVariableIndices

      public it.unimi.dsi.fastutil.ints.IntImmutableList getVariableIndices()
      The indices of the variables in the statement.
    • getVariableCount

      public int getVariableCount()
      The number of variables in the statement.