org.castor.cpa.persistence.sql.query
Class QueryConstants

java.lang.Object
  extended by org.castor.cpa.persistence.sql.query.QueryConstants

public final class QueryConstants
extends Object

Constants for SQL queries.

Version:
$Revision: 8994 $ $Date: 2011-08-02 01:40:59 +0200 (Di, 02 Aug 2011) $
Author:
Ahmad Hassan, Ralf Joachim

Field Summary
static String AND
          'AND' keyword for conditions of SQL queries.
static char ASSIGN
          Character to assign a value to a column in set clause of an SQL update query.
static String DELETE
          'DELETE' keyword of a SQL delete query.
static char DOT
          Character separating qualifier and column in a SQL query.
static String FOR
          'FOR' keyword for constructing FOR UPDATE-clauses.
static String FROM
          'FROM' keyword of a SQL query.
static String HOLDLOCK
          'HOLDLOCK' keyword for constructing WITH (HOLDLOCK)-clauses.
static String INSERT
          'INSERT' keyword of a SQL insert query.
static String INTO
          'INTO' keyword of insert query.
static String IS
          'IS' keyword for conditions of SQL queries.
static String JOIN
          'JOIN' keyword for constructing joins of SQL queries.
static String LOCK
          'LOCK' keyword for constructing WITH LOCK-clauses.
static char LPAREN
          Left parenthesis character for SQL query.
static String NOT
          'NOT' keyword for conditions of SQL queries.
static String NULL
          'NULL' keyword for conditions of SQL queries.
static String ON
          'ON' keyword for constructing joins of SQL queries.
static String OR
          'OR' keyword for conditions of SQL queries.
static char PARAMETER
          Character representing a parameter in a SQL query.
static char RPAREN
          Right parenthesis character for SQL query.
static String SELECT
          'SELECT' keyword of a SQL delete query.
static char SEPERATOR
          Character to separate multiple assignments in set clause of an SQL update query.
static String SET
          'SET' keyword of a SQL update query.
static char SPACE
          Character to use for spaces in SQL query.
static char STAR
          '*' for select query.
static String UPDATE
          'UPDATE' keyword of a SQL update query.
static String VALUES
          'VALUES' keyword of a SQL insert query.
static String WHERE
          'WHERE' keyword of a SQL query.
static String WITH
          'WITH' keyword for constructing WITH LOCK-clauses.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SELECT

public static final String SELECT
'SELECT' keyword of a SQL delete query.

See Also:
Constant Field Values

DELETE

public static final String DELETE
'DELETE' keyword of a SQL delete query.

See Also:
Constant Field Values

UPDATE

public static final String UPDATE
'UPDATE' keyword of a SQL update query.

See Also:
Constant Field Values

INSERT

public static final String INSERT
'INSERT' keyword of a SQL insert query.

See Also:
Constant Field Values

VALUES

public static final String VALUES
'VALUES' keyword of a SQL insert query.

See Also:
Constant Field Values

INTO

public static final String INTO
'INTO' keyword of insert query.

See Also:
Constant Field Values

STAR

public static final char STAR
'*' for select query.

See Also:
Constant Field Values

SET

public static final String SET
'SET' keyword of a SQL update query.

See Also:
Constant Field Values

FROM

public static final String FROM
'FROM' keyword of a SQL query.

See Also:
Constant Field Values

WHERE

public static final String WHERE
'WHERE' keyword of a SQL query.

See Also:
Constant Field Values

AND

public static final String AND
'AND' keyword for conditions of SQL queries.

See Also:
Constant Field Values

OR

public static final String OR
'OR' keyword for conditions of SQL queries.

See Also:
Constant Field Values

NOT

public static final String NOT
'NOT' keyword for conditions of SQL queries.

See Also:
Constant Field Values

IS

public static final String IS
'IS' keyword for conditions of SQL queries.

See Also:
Constant Field Values

NULL

public static final String NULL
'NULL' keyword for conditions of SQL queries.

See Also:
Constant Field Values

JOIN

public static final String JOIN
'JOIN' keyword for constructing joins of SQL queries.

See Also:
Constant Field Values

ON

public static final String ON
'ON' keyword for constructing joins of SQL queries.

See Also:
Constant Field Values

FOR

public static final String FOR
'FOR' keyword for constructing FOR UPDATE-clauses.

See Also:
Constant Field Values

WITH

public static final String WITH
'WITH' keyword for constructing WITH LOCK-clauses.

See Also:
Constant Field Values

LOCK

public static final String LOCK
'LOCK' keyword for constructing WITH LOCK-clauses.

See Also:
Constant Field Values

HOLDLOCK

public static final String HOLDLOCK
'HOLDLOCK' keyword for constructing WITH (HOLDLOCK)-clauses.

See Also:
Constant Field Values

SPACE

public static final char SPACE
Character to use for spaces in SQL query.

See Also:
Constant Field Values

DOT

public static final char DOT
Character separating qualifier and column in a SQL query.

See Also:
Constant Field Values

PARAMETER

public static final char PARAMETER
Character representing a parameter in a SQL query.

See Also:
Constant Field Values

LPAREN

public static final char LPAREN
Left parenthesis character for SQL query.

See Also:
Constant Field Values

RPAREN

public static final char RPAREN
Right parenthesis character for SQL query.

See Also:
Constant Field Values

ASSIGN

public static final char ASSIGN
Character to assign a value to a column in set clause of an SQL update query.

See Also:
Constant Field Values

SEPERATOR

public static final char SEPERATOR
Character to separate multiple assignments in set clause of an SQL update query.

See Also:
Constant Field Values


Copyright © 2012. All Rights Reserved.