| Modifier and Type | Field and Description |
|---|---|
| protected ClassDescriptor | |
| protected boolean | |
| protected Map | |
| protected Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addFieldsToRow(AbstractRecord row, AbstractSession session)
Implements org. |
| public void | addTenantDiscriminatorField(String property, DatabaseField field)
INTERNAL: Add a tenant discriminator field to the policy. |
| public void | addToTableDefinition(TableDefinition tableDefinition)
Implements org. |
| public MultitenantPolicy | clone(ClassDescriptor descriptor)
Implements org. |
| public ClassDescriptor | |
| public Map | |
| public Map | |
| public boolean | hasTenantDiscriminatorFields()
INTERNAL: Return if this descriptor has specified some tenant discriminator fields. |
| public void | initialize(AbstractSession session)
Implements org. |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | postInitialize(AbstractSession session)
Implements org. |
| public void | preInitialize(AbstractSession session)
Implements org. |
| public void | |
| public void | setIncludeTenantCriteria(boolean includeTenantCriteria)
ADVANCED: Boolean used to indicate if the database requires the tenant criteria to be added to the SELECT, UPDATE, and DELETE queries. |
| public void |
| descriptor | back to summary |
|---|---|
| protected ClassDescriptor descriptor | |
| includeTenantCriteria | back to summary |
|---|---|
| protected boolean includeTenantCriteria | |
| tenantDiscriminatorFields | back to summary |
|---|---|
| protected Map<DatabaseField, String> tenantDiscriminatorFields | |
| tenantDiscriminatorFieldsKeyedOnContext | back to summary |
|---|---|
| protected Map<String, List<DatabaseField>> tenantDiscriminatorFieldsKeyedOnContext | |
| SingleTableMultitenantPolicy | back to summary |
|---|---|
| public SingleTableMultitenantPolicy(ClassDescriptor desc) | |
| addFieldsToRow | back to summary |
|---|---|
| public void addFieldsToRow(AbstractRecord row, AbstractSession session) Implements org. INTERNAL: Add the tenant discriminator fields to the row.
| |
| addTenantDiscriminatorField | back to summary |
|---|---|
| public void addTenantDiscriminatorField(String property, DatabaseField field) INTERNAL: Add a tenant discriminator field to the policy. | |
| addToTableDefinition | back to summary |
|---|---|
| public void addToTableDefinition(TableDefinition tableDefinition) Implements org. INTERNAL:
| |
| clone | back to summary |
|---|---|
| public MultitenantPolicy clone(ClassDescriptor descriptor) Implements org. INTERNAL:
| |
| getDescriptor | back to summary |
|---|---|
| public ClassDescriptor getDescriptor() INTERNAL: | |
| getTenantDiscriminatorFields | back to summary |
|---|---|
| public Map INTERNAL: | |
| getTenantDiscriminatorFieldsKeyedOnContext | back to summary |
|---|---|
| public Map INTERNAL: | |
| hasTenantDiscriminatorFields | back to summary |
|---|---|
| public boolean hasTenantDiscriminatorFields() INTERNAL: Return if this descriptor has specified some tenant discriminator fields. | |
| initialize | back to summary |
|---|---|
| public void initialize(AbstractSession session) throws DescriptorException Implements org. INTERNAL: Initialize the mappings as a separate step. This is done as a separate step to ensure that inheritance has been first resolved.
| |
| isSchemaPerMultitenantPolicy | back to summary |
|---|---|
| public boolean isSchemaPerMultitenantPolicy() Implements org. INTERNAL:
| |
| isSingleTableMultitenantPolicy | back to summary |
|---|---|
| public boolean isSingleTableMultitenantPolicy() Implements org. INTERNAL:
| |
| isTablePerMultitenantPolicy | back to summary |
|---|---|
| public boolean isTablePerMultitenantPolicy() Implements org. INTERNAL:
| |
| postInitialize | back to summary |
|---|---|
| public void postInitialize(AbstractSession session) Implements org. INTERNAL: Subclasses that need to add field to an expresison should override this method.
| |
| preInitialize | back to summary |
|---|---|
| public void preInitialize(AbstractSession session) throws DescriptorException Implements org. INTERNAL: Allow the descriptor to initialize any dependencies on this session.
| |
| setDescriptor | back to summary |
|---|---|
| public void setDescriptor(ClassDescriptor descriptor) INTERNAL: | |
| setIncludeTenantCriteria | back to summary |
|---|---|
| public void setIncludeTenantCriteria(boolean includeTenantCriteria) ADVANCED: Boolean used to indicate if the database requires the tenant criteria to be added to the SELECT, UPDATE, and DELETE queries. By default this is done but when set to false the queries will not be modified and it will be up to the application or database to ensure that the correct criteria is applied to all queries. | |
| setTenantDiscriminatorFields | back to summary |
|---|---|
| public void setTenantDiscriminatorFields(Map<DatabaseField, String> tenantDiscriminatorFields) INTERNAL: | |