org.datanucleus.metadata
Class QueryLanguage

java.lang.Object
  extended by org.datanucleus.metadata.QueryLanguage
All Implemented Interfaces:
java.io.Serializable

public class QueryLanguage
extends java.lang.Object
implements java.io.Serializable

Representation of the primary query languages. Other query languages can be supported but this is just for the primary ones as shortcuts.

See Also:
Serialized Form

Field Summary
static QueryLanguage JDOQL
          language="JDOQL"
static QueryLanguage JPQL
          language="JPQL"
static QueryLanguage SQL
          language="SQL"
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is "equal to" this one.
static QueryLanguage getQueryLanguage(java.lang.String value)
          Return QueryLanguage from String.
 int getType()
          Accessor to the query language type
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

JDOQL

public static final QueryLanguage JDOQL
language="JDOQL"


SQL

public static final QueryLanguage SQL
language="SQL"


JPQL

public static final QueryLanguage JPQL
language="JPQL"

Method Detail

equals

public boolean equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class java.lang.Object
Parameters:
o - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object.

getType

public int getType()
Accessor to the query language type

Returns:
the type

getQueryLanguage

public static QueryLanguage getQueryLanguage(java.lang.String value)
Return QueryLanguage from String.

Parameters:
value - identity-type attribute value
Returns:
Instance of QueryLanguage. If parse failed, return null.


Copyright © 2011. All Rights Reserved.