Interface | Description |
---|---|
Converter<CLASS,CODE> |
This interface describes mechanisms for translating objects from one
type to another and back.
|
Dao<T> |
A Dao is an interface that allows basic CRUD operations to be performed.
|
DaoDescriptor<T> |
Implementers of this interface completely describe all the information
necessary to persisting objects of type
T . |
PrimaryKey<T> |
Representation of a primary key of an entity.
|
TypedColumn<T> |
Representation of a single column in the table that is used
for persisting instances of type
T . |
Class | Description |
---|---|
BigDecimalColumn<T> |
Describes a column with a decimal value that can be mapped
to a
BigDecimal |
BooleanConverter |
This
Converter translates true values to "T" and false
values to "F". |
ChildrenDescriptor<PARENT,CHILD> |
Complete definition of how a child entity is related to its parent entity.
|
DaoBuilder<T> |
A DaoBuilder provides mechanisms for describing the relationship between
a Java type and the table(s) that will persist the data held in the class.
|
DaoHelper |
Some small utilities used internally by hrorm.
|
DaoImpl<T> |
The
Dao implementation. |
JoinColumn<T,J> |
Represents a column that links to a foreign key of some
other entity.
|
LocalDateTimeColumn<T> |
Describes a column with an date/time value that can be mapped
to a
LocalDateTime |
LongColumn<T> |
Describes a column with an integer value that can be mapped
to a
Long |
Prefixer |
Utility for providing unique prefixes in a fixed pattern.
|
PrimaryKeyImpl<T> | |
SqlBuilder<T> |
This class generates SQL strings suitable to be used in
PreparedStatement s. |
SqlRunner<T> |
This class does the heavy lifting of creating
Statement s,
executing SQL, and parsing ResultSet s. |
StringColumn<T> |
Describes a column with a text value that can be mapped
to a
String |
StringConverterColumn<T,E> |
Describes a column with a text value that can be mapped
to a
String and then converted to type E |
Transactor |
An aid for managing transactions.
|
Enum | Description |
---|---|
PopulateResult |
Exception | Description |
---|---|
HrormException |
A
RuntimeException that wraps SQLException . |
Hrorm provides a mechanism for building Dao
objects.
Hrorm facilitates the creation of Dao
objects: which support
basic CRUD operations on a relational (SQL) database: insert
,
select
, update
, and delete
.
Dao
objects are created by using a DaoBuilder
object. The DaoBuilder
provides a declarative, fluent interface for describing the relationship between
the Java object to be persisted and the underlying schema that supports it.
While almost all the classes and methods in this package are public, there is little need to
use them directly. Other than the DaoBuilder
, Dao
,
Converter
, and HrormException
clients should not have to reference anything in this package.
Hrorm intentionally converts all checked SQLException
instances that arise to
HrormException
objects, which extend RuntimeException
. Do not be
fooled, Hrorm is not magical and exceptions can happen.
Copyright © 2018. All rights reserved.