Package | Description |
---|---|
com.speedment.runtime.core.component.sql |
The
SqlPersistenceComponent , SqlPersistenceComponent and
related classes are located in this package. |
com.speedment.runtime.core.db |
Establishing and maintaining the database connection is handled by the
classes in this package.
|
com.speedment.runtime.core.manager |
The
Manager interface and its related classes
are located in this package. |
com.speedment.runtime.core.manager.sql | |
com.speedment.runtime.field |
Fields expose handlers for accessing columns in generated classes and are
located in this package.
|
com.speedment.runtime.field.collector |
Collectors provided by the Runtime Field module.
|
com.speedment.runtime.field.comparator |
Comparators provided by the Runtime Field module.
|
com.speedment.runtime.field.method |
Functional interfaces used by Fields are located in this package.
|
com.speedment.runtime.field.predicate.trait |
Traits used in Speedment predicates are located in this package.
|
com.speedment.runtime.field.trait |
Traits used in Speedment fields are located in this package.
|
Modifier and Type | Method and Description |
---|---|
Function<Field<ENTITY>,String> |
SqlStreamOptimizerInfo.getSqlColumnNamer()
Returns a Function that will map a Field to a column name.
|
Function<Field<ENTITY>,Class<?>> |
SqlStreamOptimizerInfo.getSqlDatabaseTypeFunction()
Returns a Function that will map a Field to a column class type.
|
Modifier and Type | Method and Description |
---|---|
static <ENTITY,DB_TYPE,JAVA_TYPE> |
SqlTypeMapperHelper.create(Project project,
Field<ENTITY> field,
Class<ENTITY> entityClass)
Creates a new
SqlTypeMapperHelper by using the default
implementation. |
Modifier and Type | Method and Description |
---|---|
static <ENTITY> SqlStreamOptimizerInfo<ENTITY> |
SqlStreamOptimizerInfo.of(DbmsType dbmsType,
String sqlSelect,
String sqlSelectCount,
ToLongBiFunction<String,List<Object>> counter,
Function<Field<ENTITY>,String> sqlColumnNamer,
Function<Field<ENTITY>,Class<?>> sqlDatabaseTypeFunction) |
static <ENTITY> SqlStreamOptimizerInfo<ENTITY> |
SqlStreamOptimizerInfo.of(DbmsType dbmsType,
String sqlSelect,
String sqlSelectCount,
ToLongBiFunction<String,List<Object>> counter,
Function<Field<ENTITY>,String> sqlColumnNamer,
Function<Field<ENTITY>,Class<?>> sqlDatabaseTypeFunction) |
Modifier and Type | Method and Description |
---|---|
<ENTITY> void |
DbmsOperationHandler.executeInsert(Dbms dbms,
String sql,
List<?> values,
Collection<Field<ENTITY>> generatedKeyFields,
Consumer<List<Long>> generatedKeyConsumer)
Executes an SQL update command.
|
<ENTITY> SqlPredicateFragment |
FieldPredicateView.transform(Function<Field<ENTITY>,String> columnNamer,
Function<Field<ENTITY>,Class<?>> columnDbTypeFunction,
FieldPredicate<ENTITY> model) |
<ENTITY> SqlPredicateFragment |
FieldPredicateView.transform(Function<Field<ENTITY>,String> columnNamer,
Function<Field<ENTITY>,Class<?>> columnDbTypeFunction,
FieldPredicate<ENTITY> model) |
Modifier and Type | Method and Description |
---|---|
Stream<Field<ENTITY>> |
Manager.fields()
Returns a stream of the fields that every entity in this
Manager
contains. |
Stream<Field<ENTITY>> |
Manager.primaryKeyFields()
Returns a stream of the fields that are included in the primary key of
the table represented by this
Manager . |
Modifier and Type | Method and Description |
---|---|
static <ENTITY> FieldSet<ENTITY> |
FieldSet.allExcept(Field<ENTITY>... fields)
Creates a new FieldSet that represents the set of all fields of an entity except for the given ones
|
FieldSet<ENTITY> |
FieldSet.and(Field<ENTITY> field)
Creates a new FieldSet with the given field added to the original set.
|
FieldSet<ENTITY> |
FieldSet.except(Field<ENTITY> field)
Creates a new FieldSet with the given field removed from the original set.
|
static <ENTITY> FieldSet<ENTITY> |
FieldSet.of(Field<ENTITY>... fields)
Creates a new FieldSet that represents the given set of fields
|
Modifier and Type | Method and Description |
---|---|
static <ENTITY> FieldSet<ENTITY> |
FieldSet.allExcept(Collection<Field<ENTITY>> fields)
Creates a new FieldSet that represents the set of all fields of an entity except for the given ones
|
static <ENTITY> FieldSet<ENTITY> |
FieldSet.of(Collection<Field<ENTITY>> fields)
Creates a new FieldSet that represents the given set of fields
|
Modifier and Type | Method and Description |
---|---|
List<Field<?>> |
HasGeneratedKeys.getGeneratedColumnFields()
Returns a list with the fields that are generated automatically by this
insert statement.
|
Modifier and Type | Interface and Description |
---|---|
interface |
BooleanField<ENTITY,D>
A field that represents a primitive
boolean value. |
interface |
ByteField<ENTITY,D>
A field that represents a primitive
byte value. |
interface |
ByteForeignKeyField<ENTITY,D,FK_ENTITY>
A field that represents a primitive
byte value that references
another column using a foreign key. |
interface |
CharField<ENTITY,D>
A field that represents a primitive
char value. |
interface |
CharForeignKeyField<ENTITY,D,FK_ENTITY>
A field that represents a primitive
char value that references
another column using a foreign key. |
interface |
ComparableField<ENTITY,D,V extends Comparable<? super V>>
A field that represents an object value that implements
Comparable . |
interface |
ComparableForeignKeyField<ENTITY,D,V extends Comparable<? super V>,FK>
A field that represents an object value that implements
Comparable
and that references another field using a foreign key. |
interface |
DoubleField<ENTITY,D>
A field that represents a primitive
double value. |
interface |
DoubleForeignKeyField<ENTITY,D,FK_ENTITY>
A field that represents a primitive
double value that references
another column using a foreign key. |
interface |
EnumField<ENTITY,D,E extends Enum<E>>
A field representing an
Enum value in the entity. |
interface |
EnumForeignKeyField<ENTITY,D,E extends Enum<E>,FK>
A field representing an
Enum value in the entity that has a finder to
another entity. |
interface |
FloatField<ENTITY,D>
A field that represents a primitive
float value. |
interface |
FloatForeignKeyField<ENTITY,D,FK_ENTITY>
A field that represents a primitive
float value that references
another column using a foreign key. |
interface |
IntField<ENTITY,D>
A field that represents a primitive
int value. |
interface |
IntForeignKeyField<ENTITY,D,FK_ENTITY>
A field that represents a primitive
int value that references another
column using a foreign key. |
interface |
LongField<ENTITY,D>
A field that represents a primitive
long value. |
interface |
LongForeignKeyField<ENTITY,D,FK_ENTITY>
A field that represents a primitive
long value that references
another column using a foreign key. |
interface |
ReferenceField<ENTITY,D,V>
A field that represents an object value.
|
interface |
ShortField<ENTITY,D>
A field that represents a primitive
short value. |
interface |
ShortForeignKeyField<ENTITY,D,FK_ENTITY>
A field that represents a primitive
short value that references
another column using a foreign key. |
interface |
StringField<ENTITY,D>
A field that represents a string column.
|
interface |
StringForeignKeyField<ENTITY,D,FK_ENTITY>
A field that represents a string column with a foreign key to
another column.
|
Modifier and Type | Method and Description |
---|---|
Field<ENTITY> |
Field.tableAlias(String tableAlias)
Creates and returns a new Field with the provided
tableAlias . |
Modifier and Type | Method and Description |
---|---|
Field<T> |
FieldCollector.getField()
Returns the field that this collector is associated with.
|
Modifier and Type | Method and Description |
---|---|
static <T,K,D,A,M extends Map<K,D>> |
FieldCollectors.groupingBy(Field<T> field,
Function<T,K> classifier,
Supplier<M> mapFactory,
Collector<? super T,A,D> downstream) |
Modifier and Type | Method and Description |
---|---|
Field<ENTITY> |
FieldComparator.getField()
Returns the field that created this comparator.
|
Modifier and Type | Method and Description |
---|---|
Field<ENTITY> |
FindFrom.getSourceField()
Returns the field that the stream originates from.
|
Field<ENTITY> |
FindFromNullable.getSourceField()
Returns the field that the stream originates from.
|
Field<FK_ENTITY> |
FindFrom.getTargetField()
Returns the field that the stream references.
|
Field<FK_ENTITY> |
FindFromNullable.getTargetField()
Returns the field that the stream references.
|
Modifier and Type | Method and Description |
---|---|
Field<ENTITY> |
HasField.getField()
Returns the
Field that was used to generate this predicate. |
Modifier and Type | Interface and Description |
---|---|
interface |
HasBooleanOperators<ENTITY>
A representation of an Entity field that is of boolean type
|
interface |
HasBooleanValue<ENTITY,D>
A representation of an Entity field that is a primitive
boolean type. |
interface |
HasByteValue<ENTITY,D>
A representation of an Entity field that is a primitive
byte type. |
interface |
HasCharValue<ENTITY,D>
A representation of an Entity field that is a primitive
char type. |
interface |
HasComparableOperators<ENTITY,V extends Comparable<? super V>>
A representation of an Entity field that is a reference type (e.g.
|
interface |
HasDoubleValue<ENTITY,D>
A representation of an Entity field that is a primitive
double type. |
interface |
HasFinder<ENTITY,FK_ENTITY>
A representation of an Entity field that use a foreign key to
reference some other field.
|
interface |
HasFloatValue<ENTITY,D>
A representation of an Entity field that is a primitive
float type. |
interface |
HasIntValue<ENTITY,D>
A representation of an Entity field that is a primitive
int type. |
interface |
HasLongValue<ENTITY,D>
A representation of an Entity field that is a primitive
long type. |
interface |
HasNullableFinder<ENTITY,FK_ENTITY>
Trait for fields that in addition to
HasFinder , also implement a
HasNullableFinder.nullableFinder(TableIdentifier, Supplier) -method. |
interface |
HasReferenceValue<ENTITY,D,V>
A representation of an Entity field that is a reference type (eg
Integer and not int ). |
interface |
HasShortValue<ENTITY,D>
A representation of an Entity field that is a primitive
short type. |
Modifier and Type | Method and Description |
---|---|
Field<FK_ENTITY> |
HasFinder.getReferencedField()
Returns the field referenced by this finder.
|
Copyright © 2018 Speedment, Inc.. All rights reserved.