API Overview
API Index
Package Overview
Direct link to this page
JavaOnTracks 0.1.2
net.jot.persistance.
JOTSQLCondition
View Source
Author(s)
Thibaut Colar http://jot.colar.net/
Since
Version
Serial
Hierarchy
Object
JOTSQLCondition
Implements
Subclasses
See DIRECT subclasses
Quick Links:
Constructors
Methods
Fields
NestedClasses
Description
public
class JOTSQLCondition
Defines a single DB condition, as used in an SQL 'where' closed
ie: 'firstname' IS_EQUAL 'John'
See also:
Constructors
public
JOTSQLCondition
(
String
field,
int
comparaison,
Object
value)
Create an SQL condition(used in where statement)
Create an SQL condition(used in where statement)
Parameters:
-
field
- ie: 'firstname'
-
comparaison
- ie: IS_EQUAL
-
value
- ie: 'John'
Methods
Hide/Show inherited methods
public
int
getComparaison
()
public
String
getField
()
public
String
getSQLComparator
()
Return the comparator in SQL form example: getSQLComparator() for IS_GREATER will return " > ? "
Return the comparator in SQL form
example: getSQLComparator() for IS_GREATER will return " > ? "
Returns:
public
String
getSqlString
()
public
Object
getValue
()
Fields
Hide/Show inherited fields
public
final
static
int
IS_EQUAL
= "0"
public
final
static
int
IS_GREATER
= "2"
public
final
static
int
IS_GREATER_OR_EQUAL
= "5"
public
final
static
int
IS_LIKE
= "7"
public
final
static
int
IS_LOWER
= "3"
public
final
static
int
IS_LOWER_OR_EQUAL
= "6"
public
final
static
int
IS_NOT_EQUAL
= "1"
Nested Classes
Generated By:
JavaOnTracks Doclet
0.1.5 ©Thibaut Colar