public class SchemaPerMultitenantPolicy extends TablePerMultitenantPolicy
contextProperty, contextTenant, descriptor, tablePerTenantTables, type| Constructor and Description |
|---|
SchemaPerMultitenantPolicy() |
SchemaPerMultitenantPolicy(ClassDescriptor desc) |
| Modifier and Type | Method and Description |
|---|---|
MultitenantPolicy |
clone(ClassDescriptor descriptor)
INTERNAL:
Multitenant policies are cloned per inheritance subclass.
|
org.eclipse.persistence.internal.helper.DatabaseTable |
getTable(org.eclipse.persistence.internal.helper.DatabaseTable table)
INTERNAL:
Return the new database table associated with this tenant.
|
org.eclipse.persistence.internal.helper.DatabaseTable |
getTable(java.lang.String tableName)
INTERNAL:
Return the new database table associated with this tenant.
|
protected java.lang.String |
getTableName(org.eclipse.persistence.internal.helper.DatabaseTable table,
java.lang.String tenant)
INTERNAL:
Return the tenant table name.
|
void |
initialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
|
boolean |
isSchemaPerMultitenantPolicy()
INTERNAL:
|
boolean |
isTablePerMultitenantPolicy()
INTERNAL:
|
void |
setShouldUseSharedCache(boolean shouldUseSharedCache) |
void |
setShouldUseSharedEMF(boolean shouldUseSharedEMF) |
protected void |
setTableSchemaPerTenant()
INTERNAL:
This method is used to update the table per tenant descriptor with
a table per tenant schema.
|
boolean |
shouldUseSharedCache() |
boolean |
shouldUseSharedEMF() |
protected org.eclipse.persistence.internal.helper.DatabaseTable |
updateTable(org.eclipse.persistence.internal.helper.DatabaseTable table)
INTERNAL:
This method will update the table by cloning it and setting a new name
on it.
|
addFieldsToRow, addToTableDefinition, getContextProperty, hasContextTenant, isPrefixPerTable, isSchemaPerTable, isSingleTableMultitenantPolicy, isSuffixPerTable, postInitialize, preInitialize, setContextProperty, setContextTenant, setTablePerTenant, setTenantTableDiscriminatorType, shouldInitialize, usesContextPropertypublic SchemaPerMultitenantPolicy()
public SchemaPerMultitenantPolicy(ClassDescriptor desc)
public void initialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
throws DescriptorException
initialize in interface MultitenantPolicyinitialize in class TablePerMultitenantPolicyDescriptorExceptionpublic MultitenantPolicy clone(ClassDescriptor descriptor)
TablePerMultitenantPolicyclone in interface MultitenantPolicyclone in class TablePerMultitenantPolicypublic boolean isSchemaPerMultitenantPolicy()
TablePerMultitenantPolicyisSchemaPerMultitenantPolicy in interface MultitenantPolicyisSchemaPerMultitenantPolicy in class TablePerMultitenantPolicyprotected void setTableSchemaPerTenant()
TablePerMultitenantPolicysetTableSchemaPerTenant in class TablePerMultitenantPolicypublic boolean isTablePerMultitenantPolicy()
TablePerMultitenantPolicyisTablePerMultitenantPolicy in interface MultitenantPolicyisTablePerMultitenantPolicy in class TablePerMultitenantPolicyprotected java.lang.String getTableName(org.eclipse.persistence.internal.helper.DatabaseTable table,
java.lang.String tenant)
TablePerMultitenantPolicygetTableName in class TablePerMultitenantPolicypublic org.eclipse.persistence.internal.helper.DatabaseTable getTable(org.eclipse.persistence.internal.helper.DatabaseTable table)
TablePerMultitenantPolicygetTable in class TablePerMultitenantPolicypublic org.eclipse.persistence.internal.helper.DatabaseTable getTable(java.lang.String tableName)
TablePerMultitenantPolicygetTable in class TablePerMultitenantPolicyprotected org.eclipse.persistence.internal.helper.DatabaseTable updateTable(org.eclipse.persistence.internal.helper.DatabaseTable table)
TablePerMultitenantPolicyupdateTable in class TablePerMultitenantPolicypublic boolean shouldUseSharedEMF()
public void setShouldUseSharedEMF(boolean shouldUseSharedEMF)
public boolean shouldUseSharedCache()
public void setShouldUseSharedCache(boolean shouldUseSharedCache)