API Overview
API Index
Package Overview
Direct link to this page
JavaOnTracks 0.1.2
net.jot.persistance.builders.
JOTQueryBuilderHelper
View Source
Author(s)
tcolar
Since
Version
Serial
Hierarchy
Object
JOTQueryBuilderHelper
Implements
Subclasses
See DIRECT subclasses
Quick Links:
Constructors
Methods
Fields
NestedClasses
Description
public
final
class JOTQueryBuilderHelper
Common static methods shared by all query builders
See also:
Constructors
private
JOTQueryBuilderHelper
()
Methods
Hide/Show inherited methods
public
static
JOTQueryBase
appendToSQL
(
JOTQueryBase
builder,
String
append)
Manually append whatever you like to the query.
Manually append whatever you like to the query.
Returns:
Parameters:
-
where
-
public
static
JOTQueryBase
orderBy
(
JOTQueryBase
builder,
String
orderBy)
Ascending orderBy should only be called once
Ascending orderBy
should only be called once
Parameters:
-
orderBy
- EX: "date" "date,price" etc...
public
static
JOTQueryBase
orderBy
(
JOTQueryBase
builder,
String
orderBy,
boolean
ascending)
Add a orderBy to the query should only be called once
Add a orderBy to the query
should only be called once
Parameters:
-
orderBy
- EX: "date" "date,price" etc...
-
ascending
-
public
static
JOTQueryBase
orWhere
(
JOTQueryBase
builder,
JOTSQLCondition
cond)
If you want to do a OR where instead of and.
If you want to do a OR where instead of and.
Parameters:
-
where
-
public
static
JOTQueryBase
orWhere
(
JOTQueryBase
builder,
String
where)
Note: It is much safer to use orWere(JOTSQLCondition) .., If you want to do a OR where instead of and.
Note: It is much safer to use orWere(JOTSQLCondition) ..,
If you want to do a OR where instead of and.
Parameters:
-
where
-
public
static
JOTQueryBase
where
(
JOTQueryBase
builder,
JOTSQLCondition
cond)
If several where, we will be using AND
If several where, we will be using AND
Parameters:
-
where
-
public
static
JOTQueryBase
where
(
JOTQueryBase
builder,
String
where)
Note: It is much safer to use where(JOTSQLCondition) .., If several where, we will be using AND
Note: It is much safer to use where(JOTSQLCondition) ..,
If several where, we will be using AND
Parameters:
-
where
-
public
static
JOTQueryBase
withParams
(
JOTQueryBase
builder,
String
pms)
Provide PreparedStement params (optional)
Provide PreparedStement params (optional)
Parameters:
-
params
-
Fields
Hide/Show inherited fields
Nested Classes
Generated By:
JavaOnTracks Doclet
0.1.5 ©Thibaut Colar