API Overview
API Index
Package Overview
Direct link to this page
JavaOnTracks 0.1.2
net.jot.persistance.builders.
JOTUpdateQuery
View Source
Author(s)
tcolar
Since
Version
Serial
Hierarchy
Object
JOTQueryBase
JOTUpdateQuery
Implements
Subclasses
See DIRECT subclasses
Quick Links:
Constructors
Methods
Fields
NestedClasses
Description
public
class JOTUpdateQuery
Query builder for update type queries Use through JOQueryBuilder !! Note: does not delete anyhting until you call executeUpdate() !!
See also:
Constructors
protected
JOTUpdateQuery
(
JOTTransaction
transaction)
Methods
Hide/Show inherited methods
public
JOTUpdateQuery
appendToSQL
(
String
append)
append generic SQL to the query, use with precautions !
append generic SQL to the query, use with precautions !
Returns:
Parameters:
-
append
-
public
void
executeUpdate
() throws
Exception
actually runs the update
actually runs the update
Throws:
-
java.lang.Exception
-
public
JOTUpdateQuery
orWhere
(
JOTSQLCondition
cond)
public
JOTUpdateQuery
orWhere
(
String
where)
protected
void
setModelClass
(
Class
modelClass)
[Inherited From
JOTQueryBase
]
public
String
showFlags
()
[Inherited From
JOTQueryBase
]
Show special statement flags (if any)
Show special statement flags (if any)
Returns:
public
String
showSQL
()
[Inherited From
JOTQueryBase
]
return sql generated by query.
return sql generated by query.
Returns:
public
JOTUpdateQuery
update
(
String
fields,
Object
values)
set the fields and values to be updated.
set the fields and values to be updated.
Returns:
Parameters:
-
fields
-
-
values
-
public
JOTUpdateQuery
where
(
JOTSQLCondition
cond)
public
JOTUpdateQuery
where
(
String
where)
It's much safer to use where(JOTSQLCondition cond)
It's much safer to use where(JOTSQLCondition cond)
Returns:
Parameters:
-
where
-
public
JOTUpdateQuery
withParams
(
String
pms)
Pass the (prepared statement )parameters (ie: values)
Pass the (prepared statement )parameters (ie: values)
Returns:
Parameters:
-
pms
-
Fields
Hide/Show inherited fields
protected
JOTStatementFlags
flags
[Inherited From
JOTQueryBase
]
protected
Class
modelClass
[Inherited From
JOTQueryBase
]
protected
int
nbWhere
[Inherited From
JOTQueryBase
]
protected
Vector
params
[Inherited From
JOTQueryBase
]
protected
StringBuffer
sql
[Inherited From
JOTQueryBase
]
Nested Classes
Generated By:
JavaOnTracks Doclet
0.1.5 ©Thibaut Colar