Package | Description |
---|---|
com.speedment.runtime.config |
The configuration system is located in this package.
|
com.speedment.runtime.config.mutator |
Implementations of the
DocumentMutator
interface that help modify a Document in a
type-safe manner are located in this package. |
com.speedment.runtime.config.trait |
Common traits used in the typed configuration documents are located in this
package.
|
com.speedment.runtime.config.util |
Utility methods for this module.
|
com.speedment.runtime.core |
The base package of Speedment.
|
com.speedment.runtime.core.db |
Establishing and maintaining the database connection is handled by the
classes in this package.
|
com.speedment.runtime.field.trait |
Traits used in Speedment fields are located in this package.
|
com.speedment.runtime.typemapper |
Interfaces used by the database specific document types to describe mappers
should be located in this package.
|
com.speedment.runtime.typemapper.bigdecimal |
Implementations of the
TypeMapper
interface that map from BigDecimal to other types are located in this package. |
com.speedment.runtime.typemapper.bytes |
Implementations of the
TypeMapper
interface that map from Byte to other types are located in this package. |
com.speedment.runtime.typemapper.doubles |
Implementations of the
TypeMapper
interface that map from Double to other types are located in this package. |
com.speedment.runtime.typemapper.integer |
Implementations of the
TypeMapper
interface that map from Integer to other types are located in this package. |
com.speedment.runtime.typemapper.largeobject |
Implementations of the
TypeMapper
interface that map from Clob to other types are located in this package. |
com.speedment.runtime.typemapper.longs |
Implementations of the
TypeMapper
interface that map from Long to other types are located in this package. |
com.speedment.runtime.typemapper.other |
Implementations of the
TypeMapper
interface that map from types that doesn't belong in any other package are
located in this package. |
com.speedment.runtime.typemapper.primitive |
Implementations of the
TypeMapper
interface that map from wrapper to primitive types are located in this package. |
com.speedment.runtime.typemapper.shorts |
Implementations of the
TypeMapper
interface that map from Short to other types are located in this package. |
com.speedment.runtime.typemapper.string |
Implementations of the
TypeMapper
interface that map from String to other types are located in this package. |
com.speedment.runtime.typemapper.time |
Implementations of the
TypeMapper
interface that map from temporal types to other types are located in this
package. |
Modifier and Type | Method and Description |
---|---|
default Column |
Column.deepCopy() |
Modifier and Type | Method and Description |
---|---|
Stream<Column> |
Table.columns()
Creates a stream of columns located in this document.
|
default Optional<? extends Column> |
Table.findColumn(String id)
Locate the
Column child with the specified id if it exists, else
return an empty Optional . |
default Optional<? extends Column> |
ForeignKeyColumn.findForeignColumn()
A helper method for accessing the foreign
Column referenced by
this key. |
default Class<Column> |
Column.mainInterface() |
default ColumnMutator<? extends Column> |
Column.mutator() |
Modifier and Type | Class and Description |
---|---|
class |
ColumnMutator<DOC extends Column> |
Modifier and Type | Method and Description |
---|---|
Column |
TableMutator.addNewColumn() |
Modifier and Type | Method and Description |
---|---|
static ColumnMutator<Column> |
DocumentMutator.of(Column column) |
Modifier and Type | Method and Description |
---|---|
static ColumnMutator<Column> |
DocumentMutator.of(Column column) |
Modifier and Type | Method and Description |
---|---|
default Column |
HasColumn.findColumnOrThrow()
Locates and returns the column referenced by the
HasId.getId() or throws
an Exception. |
Modifier and Type | Method and Description |
---|---|
default Optional<? extends Column> |
HasColumn.findColumn()
Locates and returns the column referenced by the
HasId.getId()
method. |
Modifier and Type | Method and Description |
---|---|
static Column |
DocumentDbUtil.referencedColumn(Project project,
String dbmsName,
String schemaName,
String tableName,
String columnName) |
static <T extends HasDbmsId & HasSchemaId & HasTableId & HasColumnId> |
DocumentDbUtil.referencedColumn(Project project,
T identifier) |
Modifier and Type | Method and Description |
---|---|
static Optional<? extends Column> |
DocumentDbUtil.referencedColumnIfPresent(Project project,
ColumnIdentifier<?> identifier) |
static Optional<? extends Column> |
DocumentDbUtil.referencedColumnIfPresent(Project project,
String dbmsId,
String schemaId,
String tableId,
String columnId) |
Modifier and Type | Method and Description |
---|---|
static boolean |
DocumentDbUtil.isSame(Column first,
Column second)
Returns
true if the two specified documents represents the same
element in the database. |
static boolean |
DocumentDbUtil.isUnique(Column column)
Returns
true if the specified Column represents a column
that can only hold unique values in the database. |
static Stream<? extends Document> |
DocumentDbUtil.traverseOver(Column column) |
static <T> Stream<T> |
DocumentDbUtil.traverseOver(Column column,
Class<T> clazz) |
Modifier and Type | Method and Description |
---|---|
default <I extends HasDbmsId & HasSchemaId & HasTableId & HasColumnId> |
ApplicationBuilder.withColumn(I id,
BiConsumer<com.speedment.common.injector.Injector,Column> consumer)
Configures a parameter for the identified column.
|
default <I extends HasDbmsId & HasSchemaId & HasTableId & HasColumnId> |
ApplicationBuilder.withColumn(I id,
Consumer<Column> consumer)
Configures a parameter for the identified table.
|
Modifier and Type | Method and Description |
---|---|
Predicate<Column> |
DbmsColumnHandler.excludedInInsertStatement()
By default, all columns are included in SQL INSERT statements, this predicate
allows exclusion from that rule in order to for example exclude auto incremented
fields.
|
Predicate<Column> |
DbmsColumnHandler.excludedInUpdateStatement()
By default, all columns are included in SQL UPDATE statements, this predicate
allows exclusion from that rule in order to for example exclude auto incremented
fields.
|
Modifier and Type | Method and Description |
---|---|
default String |
DatabaseNamingConvention.fullNameOf(Column column)
Returns the full name used in the database for the specified
Column . |
Modifier and Type | Method and Description |
---|---|
default Optional<? extends Column> |
HasIdentifier.findColumn(Project project)
Locates the column that this field is referencing by using the specified
Project instance. |
Modifier and Type | Method and Description |
---|---|
Type |
TypeMapper.getJavaType(Column column)
Returns a type describing the resulting java type when this mapper is
applied to a database result.
|
default TypeMapper.Category |
TypeMapper.getJavaTypeCategory(Column column)
Returns the
TypeMapper.Category of the type returned by
TypeMapper.getJavaType(Column) . |
JAVA_TYPE |
TypeMapper.toJavaType(Column column,
Class<?> entityType,
DB_TYPE value)
Converts a value from the database domain to the java domain.
|
Modifier and Type | Method and Description |
---|---|
Type |
BigDecimalToDouble.getJavaType(Column column) |
Double |
BigDecimalToDouble.toJavaType(Column column,
Class<?> entityType,
BigDecimal value) |
Modifier and Type | Method and Description |
---|---|
Type |
ByteZeroOneToBooleanMapper.getJavaType(Column column) |
Boolean |
ByteZeroOneToBooleanMapper.toJavaType(Column column,
Class<?> entityType,
Byte value) |
Modifier and Type | Method and Description |
---|---|
Type |
PrimitiveDoubleToFloatMapper.getJavaType(Column column) |
Type |
DoubleToFloatMapper.getJavaType(Column column) |
Float |
PrimitiveDoubleToFloatMapper.toJavaType(Column column,
Class<?> entityType,
Double value) |
Float |
DoubleToFloatMapper.toJavaType(Column column,
Class<?> entityType,
Double value) |
Modifier and Type | Method and Description |
---|---|
Type |
DateIntToShortMapper.getJavaType(Column column) |
Type |
PrimitiveIntegerToByteMapper.getJavaType(Column column) |
Type |
PrimitiveIntegerToShortMapper.getJavaType(Column column) |
Type |
PrimitiveIntegerZeroOneToBooleanMapper.getJavaType(Column column) |
Type |
IntegerToByteMapper.getJavaType(Column column) |
Type |
IntegerToShortMapper.getJavaType(Column column) |
Type |
IntegerZeroOneToBooleanMapper.getJavaType(Column column) |
Type |
DateIntToPrimitiveShortMapper.getJavaType(Column column) |
Short |
DateIntToShortMapper.toJavaType(Column column,
Class<?> entityType,
Integer date) |
Byte |
PrimitiveIntegerToByteMapper.toJavaType(Column column,
Class<?> entityType,
Integer value) |
Short |
PrimitiveIntegerToShortMapper.toJavaType(Column column,
Class<?> entityType,
Integer value) |
Boolean |
PrimitiveIntegerZeroOneToBooleanMapper.toJavaType(Column column,
Class<?> entityType,
Integer value) |
Byte |
IntegerToByteMapper.toJavaType(Column column,
Class<?> entityType,
Integer value) |
Short |
IntegerToShortMapper.toJavaType(Column column,
Class<?> entityType,
Integer value) |
Boolean |
IntegerZeroOneToBooleanMapper.toJavaType(Column column,
Class<?> entityType,
Integer value) |
Short |
DateIntToPrimitiveShortMapper.toJavaType(Column column,
Class<?> entityType,
Integer value) |
Modifier and Type | Method and Description |
---|---|
Type |
BlobToBigIntegerMapper.getJavaType(Column column) |
Type |
BlobToByteArrayMapper.getJavaType(Column column) |
Type |
ClobToStringMapper.getJavaType(Column column) |
TypeMapper.Category |
BlobToBigIntegerMapper.getJavaTypeCategory(Column column) |
BigInteger |
BlobToBigIntegerMapper.toJavaType(Column column,
Class<?> entityType,
Blob value) |
byte[] |
BlobToByteArrayMapper.toJavaType(Column column,
Class<?> entityType,
Blob value) |
String |
ClobToStringMapper.toJavaType(Column column,
Class<?> entityType,
Clob value) |
Modifier and Type | Method and Description |
---|---|
Type |
PrimitiveLongToShortMapper.getJavaType(Column column) |
Type |
PrimitiveLongToByteMapper.getJavaType(Column column) |
Type |
LongToIntegerMapper.getJavaType(Column column) |
Type |
PrimitiveLongToIntegerMapper.getJavaType(Column column) |
Type |
LongToByteMapper.getJavaType(Column column) |
Type |
LongToShortMapper.getJavaType(Column column) |
Short |
PrimitiveLongToShortMapper.toJavaType(Column column,
Class<?> entityType,
Long value) |
Byte |
PrimitiveLongToByteMapper.toJavaType(Column column,
Class<?> entityType,
Long value) |
Integer |
LongToIntegerMapper.toJavaType(Column column,
Class<?> entityType,
Long value) |
Integer |
PrimitiveLongToIntegerMapper.toJavaType(Column column,
Class<?> entityType,
Long value) |
Byte |
LongToByteMapper.toJavaType(Column column,
Class<?> entityType,
Long value) |
Short |
LongToShortMapper.toJavaType(Column column,
Class<?> entityType,
Long value) |
Modifier and Type | Method and Description |
---|---|
Type |
BinaryToBigIntegerMapper.getJavaType(Column column) |
Type |
BinaryToByteArrayMapper.getJavaType(Column column) |
Type |
BinaryToUuidMapper.getJavaType(Column column) |
TypeMapper.Category |
BinaryToBigIntegerMapper.getJavaTypeCategory(Column column) |
TypeMapper.Category |
BinaryToByteArrayMapper.getJavaTypeCategory(Column column) |
BigInteger |
BinaryToBigIntegerMapper.toJavaType(Column column,
Class<?> entityType,
Object value) |
byte[] |
BinaryToByteArrayMapper.toJavaType(Column column,
Class<?> entityType,
Object binary) |
UUID |
BinaryToUuidMapper.toJavaType(Column column,
Class<?> aClass,
Object binary) |
Modifier and Type | Method and Description |
---|---|
Type |
PrimitiveTypeMapper.getJavaType(Column column) |
T |
PrimitiveTypeMapper.toJavaType(Column column,
Class<?> entityType,
T value) |
Modifier and Type | Method and Description |
---|---|
Type |
PrimitiveShortToByteMapper.getJavaType(Column column) |
Type |
ShortToByteMapper.getJavaType(Column column) |
Byte |
PrimitiveShortToByteMapper.toJavaType(Column column,
Class<?> entityType,
Short value) |
Byte |
ShortToByteMapper.toJavaType(Column column,
Class<?> entityType,
Short value) |
Modifier and Type | Method and Description |
---|---|
Type |
StringToBigDecimalMapper.getJavaType(Column column) |
Type |
TrueFalseStringToBooleanMapper.getJavaType(Column column) |
Type |
StringToBigIntegerMapper.getJavaType(Column column) |
Type |
YNStringToBooleanMapper.getJavaType(Column column) |
Type |
StringToLocaleMapper.getJavaType(Column column) |
Type |
YesNoStringToBooleanMapper.getJavaType(Column column) |
TypeMapper.Category |
StringToBigDecimalMapper.getJavaTypeCategory(Column column) |
TypeMapper.Category |
StringToBigIntegerMapper.getJavaTypeCategory(Column column) |
BigDecimal |
StringToBigDecimalMapper.toJavaType(Column column,
Class<?> entityType,
String value) |
Boolean |
TrueFalseStringToBooleanMapper.toJavaType(Column column,
Class<?> entityType,
String value) |
BigInteger |
StringToBigIntegerMapper.toJavaType(Column column,
Class<?> entityType,
String value) |
Boolean |
YNStringToBooleanMapper.toJavaType(Column column,
Class<?> entityType,
String value) |
Locale |
StringToLocaleMapper.toJavaType(Column column,
Class<?> entityType,
String value) |
Boolean |
YesNoStringToBooleanMapper.toJavaType(Column column,
Class<?> entityType,
String value) |
Modifier and Type | Method and Description |
---|---|
Type |
TimestampToPrimitiveLongMapper.getJavaType(Column column) |
Type |
TimestampToIntMapper.getJavaType(Column column) |
Type |
TimestampToPrimitiveIntMapper.getJavaType(Column column) |
Type |
TimeToPrimitiveIntMapper.getJavaType(Column column) |
Type |
TimeToPrimitiveLongMapper.getJavaType(Column column) |
Type |
ShortEpochDaysToLocalDateMapper.getJavaType(Column column) |
Type |
TimeToIntMapper.getJavaType(Column column) |
Type |
DateToPrimitiveIntMapper.getJavaType(Column column) |
Type |
DateToLocalDateMapper.getJavaType(Column column) |
Type |
TimestampToLocalDateTimeMapper.getJavaType(Column column) |
Type |
TimeToLocalTimeMapper.getJavaType(Column column) |
Type |
DateToPrimitiveLongMapper.getJavaType(Column column) |
Type |
DateToIntMapper.getJavaType(Column column) |
Type |
IntEpochDaysToLocalDateMapper.getJavaType(Column column) |
Type |
DateToLongMapper.getJavaType(Column column) |
Type |
TimestampToLongMapper.getJavaType(Column column) |
Type |
TimeToLongMapper.getJavaType(Column column) |
Integer |
DateToPrimitiveIntMapper.toJavaType(Column column,
Class<?> entityType,
Date value) |
LocalDate |
DateToLocalDateMapper.toJavaType(Column column,
Class<?> entityType,
Date value) |
Long |
DateToPrimitiveLongMapper.toJavaType(Column column,
Class<?> entityType,
Date value) |
Integer |
DateToIntMapper.toJavaType(Column column,
Class<?> entityType,
Date value) |
Long |
DateToLongMapper.toJavaType(Column column,
Class<?> entityType,
Date value) |
LocalDate |
IntEpochDaysToLocalDateMapper.toJavaType(Column column,
Class<?> entityType,
Integer value) |
LocalDate |
ShortEpochDaysToLocalDateMapper.toJavaType(Column column,
Class<?> entityType,
Short value) |
Integer |
TimeToPrimitiveIntMapper.toJavaType(Column column,
Class<?> entityType,
Time value) |
Long |
TimeToPrimitiveLongMapper.toJavaType(Column column,
Class<?> entityType,
Time value) |
Integer |
TimeToIntMapper.toJavaType(Column column,
Class<?> entityType,
Time value) |
LocalTime |
TimeToLocalTimeMapper.toJavaType(Column column,
Class<?> entityType,
Time value) |
Long |
TimeToLongMapper.toJavaType(Column column,
Class<?> entityType,
Time value) |
Long |
TimestampToPrimitiveLongMapper.toJavaType(Column column,
Class<?> entityType,
Timestamp value) |
Integer |
TimestampToIntMapper.toJavaType(Column column,
Class<?> entityType,
Timestamp value) |
Integer |
TimestampToPrimitiveIntMapper.toJavaType(Column column,
Class<?> entityType,
Timestamp value) |
LocalDateTime |
TimestampToLocalDateTimeMapper.toJavaType(Column column,
Class<?> entityType,
Timestamp value) |
Long |
TimestampToLongMapper.toJavaType(Column column,
Class<?> entityType,
Timestamp value) |
Copyright © 2019 Speedment, Inc.. All rights reserved.