API Overview
API Index
Package Overview
Direct link to this page
JavaOnTracks 0.1.2
net.jot.persistance.query.
JOTDBQueryImpl
View Source
Author(s)
thibautc
Since
Version
Serial
Hierarchy
Object
JOTDBQueryImpl
Implements
JOTQueryInterface
Subclasses
See DIRECT subclasses
Quick Links:
Constructors
Methods
Fields
NestedClasses
Description
public
class JOTDBQueryImpl
Implementation of The Query Interface for an SQL database.
Handle all the SQL CRUD functions Transforms DB java objects into actual SQL queries string and back.
See also:
Constructors
public
JOTDBQueryImpl
()
Methods
Hide/Show inherited methods
public
void
alterAddField
(
JOTTransaction
transaction,
JOTModelMapping
mapping,
JOTDBField
field,
Object
defaultValue) throws
Exception
[Specified in
JOTQueryInterface
]
public
void
createTable
(
JOTTransaction
transaction,
JOTModelMapping
mapping) throws
Exception
[Specified in
JOTQueryInterface
]
public
void
deleteTable
(
JOTTransaction
transaction,
JOTModelMapping
mapping) throws
Exception
[Specified in
JOTQueryInterface
]
public
JOTQueryResult
executeSQL
(
JOTTransaction
transaction,
JOTModelMapping
mapping,
Class
objectClass,
String
sql,
Object
params,
JOTStatementFlags
flags) throws
Exception
[Specified in
JOTQueryInterface
]
public
String
getColumnDefinition
(
JOTDBField
field)
public
String
getColumnsDefinition
(
JOTModelMapping
mapping)
Creates the "column definition" string, used to create the table
ie: "dataId BIGINT, name varchar(80)"
Creates the "column definition" string, used to create the table
ie: "dataId BIGINT, name varchar(80)"
Returns:
Parameters:
-
mapping
-
protected
JOTQueryResult
LoadFromRS
(
JOTModelMapping
mapping,
Class
objectClass,
ResultSet
rs) throws
Exception
Trandform a db resultset into an JOTModel object array
Trandform a db resultset into an JOTModel object array
Returns:
Parameters:
-
rs
-
public
void
save
(
JOTTransaction
transaction,
JOTModel
model) throws
Exception
[Specified in
JOTQueryInterface
]
Save/update the table in the database.
public
void
updateSQL
(
JOTTransaction
transaction,
JOTModelMapping
mapping,
String
sql,
Object
params,
JOTStatementFlags
flags) throws
Exception
[Specified in
JOTQueryInterface
]
Fields
Hide/Show inherited fields
Nested Classes
Generated By:
JavaOnTracks Doclet
0.1.5 ©Thibaut Colar