com.j256.ormlite.stmt
Enum StatementBuilder.StatementType

java.lang.Object
  extended by java.lang.Enum<StatementBuilder.StatementType>
      extended by com.j256.ormlite.stmt.StatementBuilder.StatementType
All Implemented Interfaces:
Serializable, Comparable<StatementBuilder.StatementType>
Enclosing class:
StatementBuilder<T,ID>

public static enum StatementBuilder.StatementType
extends Enum<StatementBuilder.StatementType>

Types of statements that we are building.


Enum Constant Summary
DELETE
          SQL statement in the form of DELETE ...
EXECUTE
          SQL statement in the form of CREATE TABLE, ALTER TABLE, or something returning the number of rows affected
SELECT
          SQL statement in the form of SELECT ...
SELECT_LONG
          SQL statement in the form of SELECT COUNT(*)...
SELECT_RAW
          SQL statement in the form of SELECT...
UPDATE
          SQL statement in the form of UPDATE ...
 
Method Summary
 boolean isOkForExecute()
           
 boolean isOkForQuery()
           
 boolean isOkForStatementBuilder()
           
 boolean isOkForUpdate()
           
static StatementBuilder.StatementType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static StatementBuilder.StatementType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SELECT

public static final StatementBuilder.StatementType SELECT
SQL statement in the form of SELECT ...


SELECT_LONG

public static final StatementBuilder.StatementType SELECT_LONG
SQL statement in the form of SELECT COUNT(*)... or something


SELECT_RAW

public static final StatementBuilder.StatementType SELECT_RAW
SQL statement in the form of SELECT... with aggregate functions or something


UPDATE

public static final StatementBuilder.StatementType UPDATE
SQL statement in the form of UPDATE ...


DELETE

public static final StatementBuilder.StatementType DELETE
SQL statement in the form of DELETE ...


EXECUTE

public static final StatementBuilder.StatementType EXECUTE
SQL statement in the form of CREATE TABLE, ALTER TABLE, or something returning the number of rows affected

Method Detail

values

public static StatementBuilder.StatementType[] 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 (StatementBuilder.StatementType c : StatementBuilder.StatementType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static StatementBuilder.StatementType 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 name
NullPointerException - if the argument is null

isOkForStatementBuilder

public boolean isOkForStatementBuilder()

isOkForQuery

public boolean isOkForQuery()

isOkForUpdate

public boolean isOkForUpdate()

isOkForExecute

public boolean isOkForExecute()


This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.