Skip navigation links
A B C D F G H I J L N O P R S T U V W 

A

allColumns() - Method in interface org.hrorm.DaoDescriptor
All the columns of the underlying table, both data type and join type.
atomicDelete(T) - Method in interface org.hrorm.Dao
Run a delete statement in the database.
atomicDelete(T) - Method in class org.hrorm.DaoImpl
 
atomicInsert(T) - Method in interface org.hrorm.Dao
Insert a record into the database within a transaction that is managed within the Dao.
atomicInsert(T) - Method in class org.hrorm.DaoImpl
 
atomicUpdate(T) - Method in interface org.hrorm.Dao
Run an update statement to change the values in the database associated with an existing record.
atomicUpdate(T) - Method in class org.hrorm.DaoImpl
 

B

BigDecimalColumn<T> - Class in org.hrorm
Describes a column with a decimal value that can be mapped to a BigDecimal
BigDecimalColumn(String, String, Function<T, BigDecimal>, BiConsumer<T, BigDecimal>, boolean) - Constructor for class org.hrorm.BigDecimalColumn
 
BigDecimalColumn(String, String, Function<T, BigDecimal>, BiConsumer<T, BigDecimal>) - Constructor for class org.hrorm.BigDecimalColumn
 
BooleanConverter - Class in org.hrorm
This Converter translates true values to "T" and false values to "F".
BooleanConverter() - Constructor for class org.hrorm.BooleanConverter
 
buildDao(Connection) - Method in class org.hrorm.DaoBuilder
Creates a Dao for performing CRUD operations of type T.

C

ChildrenDescriptor<PARENT,CHILD> - Class in org.hrorm
Complete definition of how a child entity is related to its parent entity.
ChildrenDescriptor(String, BiConsumer<CHILD, Long>, Function<PARENT, List<CHILD>>, BiConsumer<PARENT, List<CHILD>>, DaoDescriptor<CHILD>, PrimaryKey<PARENT>) - Constructor for class org.hrorm.ChildrenDescriptor
 
childrenDescriptors() - Method in class org.hrorm.DaoBuilder
 
childrenDescriptors() - Method in interface org.hrorm.DaoDescriptor
The definitions of any entities that are owned by type T
childrenDescriptors() - Method in class org.hrorm.DaoImpl
 
columnMap(String...) - Method in interface org.hrorm.DaoDescriptor
 
Converter<CLASS,CODE> - Interface in org.hrorm
This interface describes mechanisms for translating objects from one type to another and back.

D

Dao<T> - Interface in org.hrorm
A Dao is an interface that allows basic CRUD operations to be performed.
DaoBuilder<T> - Class in org.hrorm
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.
DaoBuilder(String, Supplier<T>) - Constructor for class org.hrorm.DaoBuilder
Create a new DaoBuilder instance.
DaoDescriptor<T> - Interface in org.hrorm
Implementers of this interface completely describe all the information necessary to persisting objects of type T.
DaoHelper - Class in org.hrorm
Some small utilities used internally by hrorm.
DaoHelper() - Constructor for class org.hrorm.DaoHelper
 
DaoImpl<T> - Class in org.hrorm
The Dao implementation.
DaoImpl(Connection, String, Supplier<T>, PrimaryKey<T>, List<TypedColumn<T>>, List<JoinColumn<T, ?>>, List<ChildrenDescriptor<T, ?>>) - Constructor for class org.hrorm.DaoImpl
 
dataColumns() - Method in class org.hrorm.DaoBuilder
 
dataColumns() - Method in interface org.hrorm.DaoDescriptor
The columns that contain the data that make up the object
dataColumns() - Method in class org.hrorm.DaoImpl
 
delete(T) - Method in interface org.hrorm.Dao
Run a delete statement in the database.
delete(T) - Method in class org.hrorm.DaoImpl
 
deleteSql(T) - Method in class org.hrorm.DaoImpl
 

F

findExistingChildrenIds(Connection, Long) - Method in class org.hrorm.ChildrenDescriptor
 
from(Boolean) - Method in class org.hrorm.BooleanConverter
 
from(CLASS) - Method in interface org.hrorm.Converter
Convert from the item to its encoded form

G

getDataColumns() - Method in class org.hrorm.JoinColumn
 
getJoinedTablePrefix() - Method in class org.hrorm.JoinColumn
 
getKey(T) - Method in interface org.hrorm.PrimaryKey
Extracts the primary key
getKey(T) - Method in class org.hrorm.PrimaryKeyImpl
 
getName() - Method in class org.hrorm.BigDecimalColumn
 
getName() - Method in class org.hrorm.JoinColumn
 
getName() - Method in class org.hrorm.LocalDateTimeColumn
 
getName() - Method in class org.hrorm.LongColumn
 
getName() - Method in class org.hrorm.PrimaryKeyImpl
 
getName() - Method in class org.hrorm.StringColumn
 
getName() - Method in class org.hrorm.StringConverterColumn
 
getName() - Method in interface org.hrorm.TypedColumn
 
getNextSequenceValue(Connection, String) - Static method in class org.hrorm.DaoHelper
 
getPrefix() - Method in class org.hrorm.BigDecimalColumn
 
getPrefix() - Method in class org.hrorm.JoinColumn
 
getPrefix() - Method in class org.hrorm.LocalDateTimeColumn
 
getPrefix() - Method in class org.hrorm.LongColumn
 
getPrefix() - Method in class org.hrorm.PrimaryKeyImpl
 
getPrefix() - Method in class org.hrorm.StringColumn
 
getPrefix() - Method in class org.hrorm.StringConverterColumn
 
getPrefix() - Method in interface org.hrorm.TypedColumn
 
getSequenceName() - Method in interface org.hrorm.PrimaryKey
The name of the database sequence that is used to populate this key
getSequenceName() - Method in class org.hrorm.PrimaryKeyImpl
 
getSql() - Method in exception org.hrorm.HrormException
The SQL that was executed that caused the exception.
getSqlException() - Method in exception org.hrorm.HrormException
 
getTable() - Method in class org.hrorm.JoinColumn
 
getTransitiveJoins() - Method in class org.hrorm.JoinColumn
 

H

HrormException - Exception in org.hrorm
HrormException(String) - Constructor for exception org.hrorm.HrormException
 
HrormException(SQLException) - Constructor for exception org.hrorm.HrormException
 
HrormException(SQLException, String) - Constructor for exception org.hrorm.HrormException
 

I

insert(T) - Method in interface org.hrorm.Dao
Insert a record into the database.
insert(T) - Method in class org.hrorm.DaoImpl
 
insert() - Method in class org.hrorm.SqlBuilder
 
insert(String, T) - Method in class org.hrorm.SqlRunner
 
INSTANCE - Static variable in class org.hrorm.BooleanConverter
 
isPrimaryKey() - Method in class org.hrorm.BigDecimalColumn
 
isPrimaryKey() - Method in class org.hrorm.JoinColumn
 
isPrimaryKey() - Method in class org.hrorm.LocalDateTimeColumn
 
isPrimaryKey() - Method in class org.hrorm.LongColumn
 
isPrimaryKey() - Method in class org.hrorm.PrimaryKeyImpl
 
isPrimaryKey() - Method in class org.hrorm.StringColumn
 
isPrimaryKey() - Method in class org.hrorm.StringConverterColumn
 
isPrimaryKey() - Method in interface org.hrorm.TypedColumn
 

J

JoinColumn<T,J> - Class in org.hrorm
Represents a column that links to a foreign key of some other entity.
JoinColumn(String, String, Prefixer, Function<T, J>, BiConsumer<T, J>, DaoDescriptor<J>) - Constructor for class org.hrorm.JoinColumn
 
joinColumns() - Method in class org.hrorm.DaoBuilder
 
joinColumns() - Method in interface org.hrorm.DaoDescriptor
The columns that contain references to foreign keys to other objects
joinColumns() - Method in class org.hrorm.DaoImpl
 

L

LocalDateTimeColumn<T> - Class in org.hrorm
Describes a column with an date/time value that can be mapped to a LocalDateTime
LocalDateTimeColumn(String, String, Function<T, LocalDateTime>, BiConsumer<T, LocalDateTime>) - Constructor for class org.hrorm.LocalDateTimeColumn
 
LongColumn<T> - Class in org.hrorm
Describes a column with an integer value that can be mapped to a Long
LongColumn(String, String, Function<T, Long>, BiConsumer<T, Long>) - Constructor for class org.hrorm.LongColumn
 
LongColumn(String, String, Function<T, Long>, BiConsumer<T, Long>, boolean) - Constructor for class org.hrorm.LongColumn
 

N

nextPrefix() - Method in class org.hrorm.Prefixer
 
notNull() - Method in class org.hrorm.BigDecimalColumn
 
notNull() - Method in class org.hrorm.DaoBuilder
Sets the most recent column added to this DaoBuilder to prevent it allowing nulls on inserts or updates.
notNull() - Method in class org.hrorm.JoinColumn
 
notNull() - Method in class org.hrorm.LocalDateTimeColumn
 
notNull() - Method in class org.hrorm.LongColumn
 
notNull() - Method in class org.hrorm.PrimaryKeyImpl
 
notNull() - Method in class org.hrorm.StringColumn
 
notNull() - Method in class org.hrorm.StringConverterColumn
 
notNull() - Method in interface org.hrorm.TypedColumn
Calling this method will enforce a not-null constraint on this column.

O

org.hrorm - package org.hrorm
Hrorm provides a mechanism for building Dao objects.

P

populate(T, ResultSet) - Method in class org.hrorm.BigDecimalColumn
 
populate(T, ResultSet) - Method in class org.hrorm.JoinColumn
 
populate(T, ResultSet) - Method in class org.hrorm.LocalDateTimeColumn
 
populate(T, ResultSet) - Method in class org.hrorm.LongColumn
 
populate(T, ResultSet) - Method in class org.hrorm.PrimaryKeyImpl
 
populate(T, ResultSet) - Method in class org.hrorm.StringColumn
 
populate(T, ResultSet) - Method in class org.hrorm.StringConverterColumn
 
populate(T, ResultSet) - Method in interface org.hrorm.TypedColumn
Populates the object with the data read from the database.
populateChildren(Connection, PARENT) - Method in class org.hrorm.ChildrenDescriptor
 
PopulateResult - Enum in org.hrorm
 
Prefixer - Class in org.hrorm
Utility for providing unique prefixes in a fixed pattern.
Prefixer() - Constructor for class org.hrorm.Prefixer
 
primaryKey() - Method in class org.hrorm.DaoBuilder
 
primaryKey() - Method in interface org.hrorm.DaoDescriptor
The primary key for objects of type T
primaryKey() - Method in class org.hrorm.DaoImpl
 
PrimaryKey<T> - Interface in org.hrorm
Representation of a primary key of an entity.
PrimaryKeyImpl<T> - Class in org.hrorm
 
PrimaryKeyImpl(String, String, Function<T, Long>, BiConsumer<T, Long>, String) - Constructor for class org.hrorm.PrimaryKeyImpl
 

R

readLongs(Connection, String) - Static method in class org.hrorm.DaoHelper
 
runAndCommit(Consumer<Connection>) - Method in class org.hrorm.Transactor
Runs the specified action and either commits when complete or rolls back on an exception.
runAndCommit(Function<Connection, RESULT>) - Method in class org.hrorm.Transactor
Runs the specified function and either commits when complete or rolls back on an exception.
runDelete(Connection, String) - Static method in class org.hrorm.DaoHelper
 
runPreparedDelete(Connection, String, Long) - Static method in class org.hrorm.DaoHelper
 

S

saveChildren(Connection, PARENT) - Method in class org.hrorm.ChildrenDescriptor
 
select(long) - Method in interface org.hrorm.Dao
Read a record from the database.
select(long) - Method in class org.hrorm.DaoImpl
 
select() - Method in class org.hrorm.SqlBuilder
 
select(String, Supplier<T>, List<ChildrenDescriptor<T, ?>>) - Method in class org.hrorm.SqlRunner
 
selectAll() - Method in interface org.hrorm.Dao
Read all the records in the database of type T.
selectAll() - Method in class org.hrorm.DaoImpl
 
selectByColumns(T, String...) - Method in interface org.hrorm.Dao
Select a single record from the database by some search criteria.
selectByColumns(T, String...) - Method in class org.hrorm.DaoImpl
 
selectByColumns(String...) - Method in class org.hrorm.SqlBuilder
 
selectByColumns(String, Supplier<T>, List<String>, Map<String, TypedColumn<T>>, List<ChildrenDescriptor<T, ?>>, T) - Method in class org.hrorm.SqlRunner
 
selectMany(List<Long>) - Method in interface org.hrorm.Dao
Read several records from the database.
selectMany(List<Long>) - Method in class org.hrorm.DaoImpl
 
selectManyByColumns(T, String...) - Method in interface org.hrorm.Dao
Select multiple records from the database by some search criteria.
selectManyByColumns(T, String...) - Method in class org.hrorm.DaoImpl
 
setKey(T, Long) - Method in interface org.hrorm.PrimaryKey
Sets the key onto the object
setKey(T, Long) - Method in class org.hrorm.PrimaryKeyImpl
 
setValue(T, int, PreparedStatement) - Method in class org.hrorm.BigDecimalColumn
 
setValue(T, int, PreparedStatement) - Method in class org.hrorm.JoinColumn
 
setValue(T, int, PreparedStatement) - Method in class org.hrorm.LocalDateTimeColumn
 
setValue(T, int, PreparedStatement) - Method in class org.hrorm.LongColumn
 
setValue(T, int, PreparedStatement) - Method in class org.hrorm.PrimaryKeyImpl
 
setValue(T, int, PreparedStatement) - Method in class org.hrorm.StringColumn
 
setValue(T, int, PreparedStatement) - Method in class org.hrorm.StringConverterColumn
 
setValue(T, int, PreparedStatement) - Method in interface org.hrorm.TypedColumn
Sets a value onto the prepared statement based on the state of the object passed.
SqlBuilder<T> - Class in org.hrorm
This class generates SQL strings suitable to be used in PreparedStatements.
SqlBuilder(String, List<TypedColumn<T>>, List<JoinColumn<T, ?>>, PrimaryKey<T>) - Constructor for class org.hrorm.SqlBuilder
 
SqlRunner<T> - Class in org.hrorm
This class does the heavy lifting of creating Statements, executing SQL, and parsing ResultSets.
SqlRunner(Connection, List<TypedColumn<T>>, List<JoinColumn<T, ?>>) - Constructor for class org.hrorm.SqlRunner
 
StringColumn<T> - Class in org.hrorm
Describes a column with a text value that can be mapped to a String
StringColumn(String, String, Function<T, String>, BiConsumer<T, String>, boolean) - Constructor for class org.hrorm.StringColumn
 
StringColumn(String, String, Function<T, String>, BiConsumer<T, String>) - Constructor for class org.hrorm.StringColumn
 
StringConverterColumn<T,E> - Class in org.hrorm
Describes a column with a text value that can be mapped to a String and then converted to type E
StringConverterColumn(String, String, Function<T, E>, BiConsumer<T, E>, Converter<E, String>) - Constructor for class org.hrorm.StringConverterColumn
 
supplier() - Method in class org.hrorm.DaoBuilder
 
supplier() - Method in interface org.hrorm.DaoDescriptor
The mechanism to use to instantiate a new instance of type T, generally a no-argument constructor of the class.
supplier() - Method in class org.hrorm.DaoImpl
 

T

tableName() - Method in class org.hrorm.DaoBuilder
 
tableName() - Method in interface org.hrorm.DaoDescriptor
The name of the table that is used to persist type T
tableName() - Method in class org.hrorm.DaoImpl
 
to(String) - Method in class org.hrorm.BooleanConverter
 
to(CODE) - Method in interface org.hrorm.Converter
Instantiates an instance of the desired class from its encoding
Transactor - Class in org.hrorm
An aid for managing transactions.
Transactor(Connection) - Constructor for class org.hrorm.Transactor
Use this constructor for a use-once Transactor.
Transactor(Supplier<Connection>) - Constructor for class org.hrorm.Transactor
Use this constructor with a connection source, so that the Transactor can create a new connection each time it needs one.
TypedColumn<T> - Interface in org.hrorm
Representation of a single column in the table that is used for persisting instances of type T.

U

update(T) - Method in interface org.hrorm.Dao
Run an update statement to change the values in the database associated with an existing record.
update(T) - Method in class org.hrorm.DaoImpl
 
update(T) - Method in class org.hrorm.SqlBuilder
 
update(String, T) - Method in class org.hrorm.SqlRunner
 

V

valueOf(String) - Static method in enum org.hrorm.PopulateResult
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.hrorm.PopulateResult
Returns an array containing the constants of this enum type, in the order they are declared.

W

withBigDecimalColumn(String, Function<T, BigDecimal>, BiConsumer<T, BigDecimal>) - Method in class org.hrorm.DaoBuilder
Describes a numeric data element with a decimal part.
withBooleanColumn(String, Function<T, Boolean>, BiConsumer<T, Boolean>) - Method in class org.hrorm.DaoBuilder
Describes a data element that represents a true/false value.
withChildren(String, BiConsumer<U, Long>, Function<T, List<U>>, BiConsumer<T, List<U>>, DaoDescriptor<U>) - Method in class org.hrorm.DaoBuilder
Describes a relationship between the object T and its several child objects of type U.
withConvertingStringColumn(String, Function<T, E>, BiConsumer<T, E>, Converter<E, String>) - Method in class org.hrorm.DaoBuilder
Describes a data element with a particular type (like an enumeration) that is persisted using a String representation.
withIntegerColumn(String, Function<T, Long>, BiConsumer<T, Long>) - Method in class org.hrorm.DaoBuilder
Describes a numeric data element with no decimal or fractional part.
withJoinColumn(String, Function<T, U>, BiConsumer<T, U>, DaoDescriptor<U>) - Method in class org.hrorm.DaoBuilder
Describes a data element that is represented by an Object of some other type U with its own table for persistence.
withLocalDateTimeColumn(String, Function<T, LocalDateTime>, BiConsumer<T, LocalDateTime>) - Method in class org.hrorm.DaoBuilder
Describes a data element that represents a time stamp.
withPrefix(String) - Method in class org.hrorm.BigDecimalColumn
 
withPrefix(String) - Method in class org.hrorm.JoinColumn
 
withPrefix(String) - Method in class org.hrorm.LocalDateTimeColumn
 
withPrefix(String) - Method in class org.hrorm.LongColumn
 
withPrefix(String) - Method in class org.hrorm.PrimaryKeyImpl
 
withPrefix(String) - Method in class org.hrorm.StringColumn
 
withPrefix(String) - Method in class org.hrorm.StringConverterColumn
 
withPrefix(String) - Method in interface org.hrorm.TypedColumn
Make a new instance of the column, identical to this instance, except with a new prefix.
withPrefixes(Prefixer, String) - Method in class org.hrorm.JoinColumn
 
withPrimaryKey(String, String, Function<T, Long>, BiConsumer<T, Long>) - Method in class org.hrorm.DaoBuilder
Set data about the primary key of the table for this type.
withStringColumn(String, Function<T, String>, BiConsumer<T, String>) - Method in class org.hrorm.DaoBuilder
Describes a text or string data element.
A B C D F G H I J L N O P R S T U V W 
Skip navigation links

Copyright © 2018. All rights reserved.