T - Target typepublic interface DataTarget<T> extends Path.FinalPath<T>
A DataTarget is a Path, so the target data model entity is represented by a String path name. The
path is final, i.e. does not support a parent.
A DataTarget.DataTargetResolver can be used to resolve a symbolic named data target into a persistence model specific
data target representation.
Datastore| Modifier and Type | Interface and Description |
|---|---|
static interface |
DataTarget.DataTargetResolver<T extends DataTarget>
Convenience interface to create an
ExpressionResolver to resolve a custom DataTarget class into a
standard DataTarget. |
static interface |
DataTarget.DataTargetSupport<C extends DataTarget.DataTargetSupport<C>>
Interface implemented by classes which support
DataTarget setting. |
Path.Builder<T,B extends Path.Builder<T,B>>, Path.FinalPath<T>, Path.PathBuilder<T>Expression.ExpressionResolverFunction<E extends Expression,R extends Expression>, Expression.InvalidExpressionExceptionPATH_HIERARCHY_SEPARATOR| Modifier and Type | Method and Description |
|---|---|
static DataTarget<String> |
named(String name)
Build a
String type data target using root path name. |
static <T> DataTarget<T> |
of(String name,
Class<T> type)
Build a typed data target using root path
name. |
default <P> PathProperty<P> |
property(PathProperty<P> fromProperty)
Create a new
PathProperty cloning from given fromProperty, setting this DataTarget
as property parent path. |
default <P> PathProperty.PathPropertyBuilder<P> |
property(String name,
Class<? extends P> type)
Create a new
PathProperty with given name and type, setting this
DataTarget as property parent path. |
getParentfullName, getName, getType, isRootPath, of, relativeName, streamvalidatedefault <P> PathProperty.PathPropertyBuilder<P> property(String name, Class<? extends P> type)
PathProperty with given name and type, setting this
DataTarget as property parent path.P - Property typename - Property name (not null)type - Property value type (not null)default <P> PathProperty<P> property(PathProperty<P> fromProperty)
PathProperty cloning from given fromProperty, setting this DataTarget
as property parent path. Property name, type and configuration of the the property will be cloned from given
property.P - Property typefromProperty - Property from which to clone (not null)static DataTarget<String> named(String name)
String type data target using root path name.name - Path name (not null)static <T> DataTarget<T> of(String name, Class<T> type)
name.T - Target typename - Path name (not null)type - Data target type (not null)Copyright © 2017 The Holon Platform. All rights reserved.