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, usesContextProperty
public SchemaPerMultitenantPolicy()
public SchemaPerMultitenantPolicy(ClassDescriptor desc)
public void initialize(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DescriptorException
initialize
in interface MultitenantPolicy
initialize
in class TablePerMultitenantPolicy
DescriptorException
public MultitenantPolicy clone(ClassDescriptor descriptor)
TablePerMultitenantPolicy
clone
in interface MultitenantPolicy
clone
in class TablePerMultitenantPolicy
public boolean isSchemaPerMultitenantPolicy()
TablePerMultitenantPolicy
isSchemaPerMultitenantPolicy
in interface MultitenantPolicy
isSchemaPerMultitenantPolicy
in class TablePerMultitenantPolicy
protected void setTableSchemaPerTenant()
TablePerMultitenantPolicy
setTableSchemaPerTenant
in class TablePerMultitenantPolicy
public boolean isTablePerMultitenantPolicy()
TablePerMultitenantPolicy
isTablePerMultitenantPolicy
in interface MultitenantPolicy
isTablePerMultitenantPolicy
in class TablePerMultitenantPolicy
protected java.lang.String getTableName(org.eclipse.persistence.internal.helper.DatabaseTable table, java.lang.String tenant)
TablePerMultitenantPolicy
getTableName
in class TablePerMultitenantPolicy
public org.eclipse.persistence.internal.helper.DatabaseTable getTable(org.eclipse.persistence.internal.helper.DatabaseTable table)
TablePerMultitenantPolicy
getTable
in class TablePerMultitenantPolicy
public org.eclipse.persistence.internal.helper.DatabaseTable getTable(java.lang.String tableName)
TablePerMultitenantPolicy
getTable
in class TablePerMultitenantPolicy
protected org.eclipse.persistence.internal.helper.DatabaseTable updateTable(org.eclipse.persistence.internal.helper.DatabaseTable table)
TablePerMultitenantPolicy
updateTable
in class TablePerMultitenantPolicy
public boolean shouldUseSharedEMF()
public void setShouldUseSharedEMF(boolean shouldUseSharedEMF)
public boolean shouldUseSharedCache()
public void setShouldUseSharedCache(boolean shouldUseSharedCache)