Package com.exedio.cope.pattern
Class Importer<K>
- java.lang.Object
-
- com.exedio.cope.Feature
-
- com.exedio.cope.Pattern
-
- com.exedio.cope.pattern.Importer<K>
-
- All Implemented Interfaces:
Serializable
public final class Importer<K> extends Pattern
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <K> Importer<K>
create(FunctionField<K> key)
<P extends Item>
PdoImport(Class<P> parentClass, K keyValue, SetValue<?>... setValues)
<P extends Item>
PdoImport(Class<P> parentClass, K keyValue, List<SetValue<?>> setValues)
FunctionField<K>
getKey()
static <K> Importer<K>
newImporter(FunctionField<K> key)
Deprecated.Usecreate(FunctionField)
insteadvoid
setHintInitialExerimental(boolean hintInitial)
When setting to true, methoddoImport(Class, Object, SetValue...)
becomes more efficient when item do not yet exist and less efficient when items already do exist.-
Methods inherited from class com.exedio.cope.Pattern
addSource, addSource, addSource, addSource, addSourceFeature, addSourceFeature, addSourceFeature, annotationField, equals, getGeneratedTypes, getSourceFeatures, getSourceFeaturesGather, getSourceFields, getSources, getSourceTypes, getType, hashCode, initialize, newSourceType, newSourceType, newSourceType, newSourceType, newSourceType, newSourceType, newType, newType, onMount, registerSource
-
Methods inherited from class com.exedio.cope.Feature
afterModelCreated, getAbstractType, getAnnotation, getID, getLocalizationKeys, getName, getPattern, isAnnotationPresent, isSourceAlready, mount, readResolve, requireMounted, toString, toString, writeReplace
-
-
-
-
Method Detail
-
create
public static <K> Importer<K> create(FunctionField<K> key)
-
getKey
public FunctionField<K> getKey()
-
doImport
@Nonnull public <P extends Item> P doImport(@Nonnull Class<P> parentClass, @Nonnull K keyValue, @Nonnull List<SetValue<?>> setValues)
-
doImport
@Nonnull public <P extends Item> P doImport(@Nonnull Class<P> parentClass, @Nonnull K keyValue, @Nonnull SetValue<?>... setValues)
-
setHintInitialExerimental
public void setHintInitialExerimental(boolean hintInitial)
When setting to true, methoddoImport(Class, Object, SetValue...)
becomes more efficient when item do not yet exist and less efficient when items already do exist.
-
newImporter
@Deprecated public static <K> Importer<K> newImporter(FunctionField<K> key)
Deprecated.Usecreate(FunctionField)
instead
-
-