@Component(value="cuba_ReferenceToEntitySupport")
public class ReferenceToEntitySupport
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Metadata |
metadata |
static java.lang.String |
NAME |
Constructor and Description |
---|
ReferenceToEntitySupport() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPrimaryKeyForLoadingEntity(MetaClass metaClass) |
java.lang.String |
getPrimaryKeyForLoadingEntityFromLink(MetaClass metaClass) |
java.lang.Object |
getReferenceId(Entity entity) |
java.lang.Object |
getReferenceIdForLink(Entity entity) |
java.lang.String |
getReferenceIdPropertyName(MetaClass metaClass) |
public static final java.lang.String NAME
@Inject protected Metadata metadata
public java.lang.Object getReferenceId(Entity entity)
entity
- entitypublic java.lang.Object getReferenceIdForLink(Entity entity)
entity
- entitypublic java.lang.String getReferenceIdPropertyName(MetaClass metaClass)
metaClass
- of entitypublic java.lang.String getPrimaryKeyForLoadingEntity(MetaClass metaClass)
metaClass
- of entitypublic java.lang.String getPrimaryKeyForLoadingEntityFromLink(MetaClass metaClass)
metaClass
- of entity