Module org.eclipse.persistence.jpa
Class MultitenantMetadata
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.multitenant.MultitenantMetadata
Object to hold onto multi-tenant metadata.
Key notes:
- any metadata mapped from XML to this class must be compared in the
equals method.
- any metadata mapped from XML to this class must be initialized in the
initXMLObject method.
- when loading from annotations, the constructor accepts the metadata
accessor this metadata was loaded from. Used it to look up any
'companion' annotation needed for processing.
- methods should be preserved in alphabetical order.
- Since:
- EclipseLink 2.3
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
m_project
-
Constructor Summary
ConstructorDescriptionINTERNAL: Used for XML loading.MultitenantMetadata
(MetadataAnnotation multitenant, MetadataAccessor accessor) INTERNAL: Used for annotation loading. -
Method Summary
Modifier and TypeMethodDescriptionboolean
INTERNAL:INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.getType()
INTERNAL: Used for OX mapping.int
hashCode()
boolean
INTERNAL:void
initXMLObject
(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings) INTERNAL:void
process
(MetadataDescriptor descriptor) INTERNAL:protected void
processTenantDiscriminators
(MetadataDescriptor descriptor, SingleTableMultitenantPolicy policy) INTERNAL: Process the tenant discriminator metadata.protected void
processTenantTableDiscriminator
(MetadataDescriptor descriptor, TablePerMultitenantPolicy policy) INTERNAL: Process the tenant table discriminator metadata.void
setIncludeCriteria
(Boolean includeCriteria) INTERNAL: Used for OX mapping.void
setTenantDiscriminatorColumns
(List<TenantDiscriminatorColumnMetadata> tenantDiscriminatorColumns) INTERNAL: Used for OX mapping.void
setTenantTableDiscriminator
(TenantTableDiscriminatorMetadata tenantTableDiscriminator) INTERNAL: Used for OX mapping.void
INTERNAL: Used for OX mapping.Methods inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
getAccessibleObject, getAccessibleObjectName, getAnnotation, getBoxedType, getDatabaseTypeEnum, getEntityMappings, getFullyQualifiedClassName, getIdentifier, getJavaClass, getJavaClassName, getLoader, getLocation, getLogger, getMetadataClass, getMetadataClass, getMetadataClass, getMetadataFactory, getName, getPrimitiveClassForName, getProject, getText, getXMLElement, hasIdentifier, hasText, initXMLClassName, initXMLObject, initXMLObjects, initXMLTextObject, loadedFromAnnotation, loadedFromEclipseLinkXML, loadedFromXML, merge, mergeORObjectLists, mergeORObjects, mergeSimpleObjects, reloadEntity, reloadMappedSuperclass, setAccessibleObject, setEntityMappings, setFieldName, setFieldName, setProject, shouldOverride, valuesMatch, valuesMatch
-
Constructor Details
-
MultitenantMetadata
public MultitenantMetadata()INTERNAL: Used for XML loading. -
MultitenantMetadata
INTERNAL: Used for annotation loading.
-
-
Method Details
-
equals
INTERNAL:- Specified by:
equals
in classORMetadata
-
hashCode
public int hashCode() -
getIncludeCriteria
INTERNAL: Used for OX mapping. -
getTenantDiscriminatorColumns
INTERNAL: Used for OX mapping. -
getTenantTableDiscriminator
INTERNAL: Used for OX mapping. -
getType
INTERNAL: Used for OX mapping. -
includeCriteria
public boolean includeCriteria()INTERNAL: -
initXMLObject
public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings) INTERNAL:- Overrides:
initXMLObject
in classORMetadata
-
process
INTERNAL: -
processTenantDiscriminators
protected void processTenantDiscriminators(MetadataDescriptor descriptor, SingleTableMultitenantPolicy policy) INTERNAL: Process the tenant discriminator metadata. -
processTenantTableDiscriminator
protected void processTenantTableDiscriminator(MetadataDescriptor descriptor, TablePerMultitenantPolicy policy) INTERNAL: Process the tenant table discriminator metadata. -
setIncludeCriteria
INTERNAL: Used for OX mapping. -
setTenantDiscriminatorColumns
public void setTenantDiscriminatorColumns(List<TenantDiscriminatorColumnMetadata> tenantDiscriminatorColumns) INTERNAL: Used for OX mapping. -
setTenantTableDiscriminator
INTERNAL: Used for OX mapping. -
setType
INTERNAL: Used for OX mapping.
-