public class MongoRefProperty extends BaseEntityRefProperty<String,MongoEntity,MongoRef<MongoEntity>> implements SQLPropertyInfo, ESPropertyInfo
MongoEntity field within a Mixable.| Modifier and Type | Class and Description |
|---|---|
static class |
MongoRefProperty.Factory
Factory for generating properties based on their field type
|
entityRef, mixing, referencedDescriptor, referencedTypeaccessPath, alternativePropertyKey, defaultValue, descriptor, field, label, length, name, nameAsMapping, nullable, propertyKey, propertyName| Modifier | Constructor and Description |
|---|---|
protected |
MongoRefProperty(EntityDescriptor descriptor,
AccessPath accessPath,
Field field) |
| Modifier and Type | Method and Description |
|---|---|
void |
contributeToTable(Table table)
Appends columns, keys and foreign keys to the given table to match the settings specified by
this property
|
void |
describeProperty(com.alibaba.fastjson.JSONObject description)
Creates the mapping description for this property into the given JSON.
|
protected Optional<MongoEntity> |
find(Class<MongoEntity> type,
sirius.kernel.commons.Value value)
Actually resolves the the type and value into an entity.
|
getEntityRef, getReferencedDescriptor, getReferencedType, getValueFromField, link, onBeforeSaveChecks, onDeleteCascade, onDeleteReject, onDeleteSetNull, setValueToField, transformFromDatasource, transformToDatasource, transformValuecheckNullability, checkUniqueness, determineDefaultValue, determineLengths, determineNullability, equals, getAnnotation, getDefaultValue, getDefinition, getDescriptor, getField, getLabel, getLength, getName, getPropertyName, getValue, getValueAsCopy, getValueForDatasource, hashCode, illegalFieldValue, isNullable, onAfterDelete, onAfterSave, onBeforeDelete, onBeforeSave, parseValue, setValue, setValueFromDatasource, toString, transformFromElastic, transformFromJDBC, transformFromMongo, transformToElastic, transformToJDBC, transformToMongois, makeNewInstance, tryAsclone, finalize, getClass, notify, notifyAll, wait, wait, waittransferOptionprotected MongoRefProperty(EntityDescriptor descriptor, AccessPath accessPath, Field field)
public void contributeToTable(Table table)
SQLPropertyInfocontributeToTable in interface SQLPropertyInfotable - the table to add schema infos topublic void describeProperty(com.alibaba.fastjson.JSONObject description)
ESPropertyInfodescribeProperty in interface ESPropertyInfodescription - the target JSON to fillprotected Optional<MongoEntity> find(Class<MongoEntity> type, sirius.kernel.commons.Value value)
BaseEntityRefPropertyfind in class BaseEntityRefProperty<String,MongoEntity,MongoRef<MongoEntity>>type - the type to resolvevalue - the id to resolveCopyright © 2018. All rights reserved.