org.mandarax.sql |
|
Java Source File Name | Type | Comment |
CachedClauseIterator.java | Class | A cached clause set iterator that simple takes a collection of (cached) facts
and iterates it. |
DefaultConnectionManager.java | Class | The DefaultConnectionManager implements the
interface of the SQLConnectionManager. |
DefaultTypeMapping.java | Class | A default implementation of a type mapping. |
OneColumnMapping.java | Class | Object relational mapping where the object is just the value of the
one (and probably only) column. |
SQLClauseIterator.java | Class | Clause set iterator for SQL clause sets. |
SQLClauseSet.java | Class | An SQL clause set is basically a wrapper around a ResultSet of an SQL query where each
row in the result set is considered as a single clause (fact). |
SQLConnectionManager.java | Interface | A SQLConnectionManager defines the interface between the
Mandarax SQL package and the connection handling with an SQL database. |
SQLFunction.java | Class | Implementation of a function based on a SQL query.
The query contains variable parameters represented by the VARIABLE_PROXY
constants, just like the query strings used in JDBC prepared statements
(the value of this variable is "?").
The return value is the one row in the result set converted to an object.
If the result set has no rows or more than one row,
an IllegalArgumentException is thrown.
Therefore, queries will typically retrieve one column and have a where
clause with a primary key condition.
Example:The query SELECT NAME FROM CUSTOMER WHERE ID=?
will define a function that takes one value (the id) as input and returns
one value (the name of the customer).
The (java) return type and the parameter types must be declared.
Defaults (Object/Object[]) will be used otherwise.
Internally, we are using PreparedStatements. |
SQLObjectRelationalMapping.java | Interface | Describes how to map a row (the current row in a result set) to a java
object. |
SQLPredicate.java | Class | Implementation of a predicate based on a SQL query.
The query defines the structure of the predicate, SQL types are mapped via
a DBMapping object to java types. |
SQLTypeMapping.java | Interface | Defition of a type adapter mapping SQL to java types. |