Modifier and Type | Interface and Description |
---|---|
interface |
ParentColumn<CHILD,PARENT,CHILDBUILDER,PARENTBUILDER>
Represents a reference from a child entity to its parent.
|
interface |
PrimaryKey<ENTITY,BUILDER>
Representation of the column that holds the primary key for the entity.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractColumn<TYPE,ENTITY,BUILDER>
Represents a column in a database table.
|
class |
DirectPrimaryKey<ENTITY>
Primary key for an entity whose construction is direct, i.e.
|
class |
IndirectPrimaryKey<ENTITY,BUILDER>
Primary key for an entity whose construction is indirect, i.e.
|
class |
JoinColumn<ENTITY,JOINED,ENTITYBUILDER,JOINEDBUILDER>
Represents a column that links to a foreign key of some
other entity.
|
class |
NoBackReferenceParentColumn<ENTITY,PARENT,BUILDER,PARENTBUILDER>
Represents a reference from a child entity to its parent where the
child class has no reference to the parent.
|
class |
ParentColumnImpl<CHILD,PARENT,CHILDBUILDER,PARENTBUILDER>
Represents a reference from a child entity to its parent where
the child class has a pointer back to the parent.
|
Modifier and Type | Method and Description |
---|---|
Column<ENTITY,ENTITY> |
DirectPrimaryKey.withPrefix(String newPrefix,
Prefixer prefixer) |
Column<ENTITY,BUILDER> |
Column.withPrefix(String newPrefix,
Prefixer prefixer)
Make a new instance of the column, identical to this instance, except with a
new prefix.
|
Column<ENTITY,BUILDER> |
IndirectPrimaryKey.withPrefix(String newPrefix,
Prefixer prefixer) |
Column<ENTITY,BUILDER> |
NoBackReferenceParentColumn.withPrefix(String newPrefix,
Prefixer prefixer) |
Column<CHILD,CHILDBUILDER> |
ParentColumnImpl.withPrefix(String prefix,
Prefixer prefixer) |
Modifier and Type | Method and Description |
---|---|
default List<Column<ENTITY,ENTITYBUILDER>> |
DaoDescriptor.allColumns()
All the columns of the underlying table, both data type and join type.
|
default SortedMap<String,Column<ENTITY,ENTITYBUILDER>> |
DaoDescriptor.columnMap(String... columnNames) |
List<Column<ENTITY,BUILDER>> |
DaoImpl.dataColumns() |
List<Column<ENTITY,ENTITYBUILDER>> |
DaoDescriptor.dataColumns()
The columns that contain the data that make up the object
|
List<Column<ENTITY,ENTITYBUILDER>> |
RelativeDaoDescriptor.dataColumns() |
List<Column<ENTITY,ENTITY>> |
DaoBuilder.dataColumns() |
List<Column<ENTITY,BUILDER>> |
IndirectDaoBuilder.dataColumns() |
default List<Column<ENTITY,ENTITYBUILDER>> |
DaoDescriptor.dataColumnsWithParent() |
List<Column<JOINED,JOINEDBUILDER>> |
JoinColumn.getDataColumns() |
Modifier and Type | Method and Description |
---|---|
<T,X> T |
SqlRunner.foldingSelect(String sql,
Supplier<BUILDER> supplier,
List<String> columnNames,
Map<String,? extends Column<ENTITY,?>> columnNameMap,
List<? extends ChildrenDescriptor<ENTITY,?,BUILDER,?>> childrenDescriptors,
ENTITY template,
Function<BUILDER,X> buildFunction,
T identity,
BiFunction<T,X,T> accumulator) |
List<BUILDER> |
SqlRunner.selectByColumns(String sql,
Supplier<BUILDER> supplier,
List<String> columnNames,
Map<String,? extends Column<ENTITY,?>> columnNameMap,
List<? extends ChildrenDescriptor<ENTITY,?,BUILDER,?>> childrenDescriptors,
ENTITY item) |
Constructor and Description |
---|
SqlBuilder(String table,
List<? extends Column<ENTITY,?>> dataColumns,
List<? extends JoinColumn<ENTITY,?,?,?>> joinColumns,
PrimaryKey<ENTITY,?> primaryKey) |
Copyright © 2018. All rights reserved.