V
- the generic type of the property value
.public abstract class SinglePropertyBuilderLinkBase<V> extends AbstractLoggableComponent implements SinglePropertyBuilder<V>
SinglePropertyBuilder
for OType.LINK
.Modifier and Type | Field and Description |
---|---|
private OrientBeanMapper |
beanMapper |
Constructor and Description |
---|
SinglePropertyBuilderLinkBase()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
com.orientechnologies.orient.core.metadata.schema.OProperty |
build(WritableProperty<V> property,
com.orientechnologies.orient.core.metadata.schema.OClass oClass) |
protected void |
doInitialize()
This method performs the actual
initialization . |
protected OrientBeanMapper |
getBeanMapper() |
protected abstract com.orientechnologies.orient.core.metadata.schema.OClass |
getLinkedClass(WritableProperty<V> property) |
protected abstract GenericType |
getValueType(Class<? extends OrientBean> beanClass) |
GenericType<V> |
getValueType(com.orientechnologies.orient.core.metadata.schema.OProperty oProperty) |
void |
setBeanMapper(OrientBeanMapper beanMapper) |
createLogger, getLogger
doInitialized, getInitializationState, initialize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
build, getPropertyType, getType, getValueClass
private OrientBeanMapper beanMapper
public SinglePropertyBuilderLinkBase()
protected OrientBeanMapper getBeanMapper()
OrientBeanMapper
.@Inject public void setBeanMapper(OrientBeanMapper beanMapper)
beanMapper
- is the OrientBeanMapper to Inject
.protected void doInitialize()
AbstractComponent
initialization
. It is called when AbstractComponent.initialize()
is
invoked for the first time. super.
AbstractComponent.doInitialize()
.doInitialize
in class AbstractLoggableComponent
public GenericType<V> getValueType(com.orientechnologies.orient.core.metadata.schema.OProperty oProperty)
getValueType
in interface SinglePropertyBuilder<V>
oProperty
- the OProperty
.GenericType
reflecting the corresponding value type
.protected abstract GenericType getValueType(Class<? extends OrientBean> beanClass)
beanClass
- the linkend OrientBean
-Class
.GenericType
.public com.orientechnologies.orient.core.metadata.schema.OProperty build(WritableProperty<V> property, com.orientechnologies.orient.core.metadata.schema.OClass oClass)
build
in interface SinglePropertyBuilder<V>
property
- the property
to create in the given OClass
, that is currently
missing.oClass
- the OClass
of the OrientDB schema.OProperty
. May be null
if the property type
is not supported.protected abstract com.orientechnologies.orient.core.metadata.schema.OClass getLinkedClass(WritableProperty<V> property)
Copyright © 2001–2016 mmm-Team. All rights reserved.