API Overview
API Index
Package Overview
Direct link to this page
JavaOnTracks 0.1.2
net.jot.persistance.builders.
JOTInsertQuery
View Source
Author(s)
tcolar
Since
Version
Serial
Hierarchy
Object
JOTQueryBase
JOTInsertQuery
Implements
Subclasses
See DIRECT subclasses
Quick Links:
Constructors
Methods
Fields
NestedClasses
Description
public
class JOTInsertQuery
Query builder for insert type queries Use through JOQueryBuilder
See also:
Constructors
protected
JOTInsertQuery
(
JOTTransaction
transaction)
Methods
Hide/Show inherited methods
public
JOTInsertQuery
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
insert
(
String
fields,
String
values) throws
Exception
Runs the insert
Runs the insert
Parameters:
-
transaction
-
-
fields
-
-
values
-
Throws:
-
java.lang.Exception
-
public
JOTInsertQuery
orWhere
(
JOTSQLCondition
cond)
public
JOTInsertQuery
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
JOTInsertQuery
where
(
JOTSQLCondition
cond)
public
JOTInsertQuery
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
JOTInsertQuery
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