Package com.jk.data.multitent
Class MultiTenantSupport
java.lang.Object
com.jk.data.multitent.MultiTenantSupport
This class provides support for multi-tenant database access.
 
It contains methods to process SQL statements in a multi-tenant environment.
- Version:
 - 1.0
 - Author:
 - Dr. Jalal H. Kiswani
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringRepresents the name of the field used to identify tenants in queries. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic StringThis method gets the current tenant.static StringprocessSqlStatement(String statement) This method processes an SQL statement in a multi-tenant environment. 
- 
Field Details
- 
TENANT_FIELD_NAME
Represents the name of the field used to identify tenants in queries.- See Also:
 
 
 - 
 - 
Constructor Details
- 
MultiTenantSupport
public MultiTenantSupport() 
 - 
 - 
Method Details
- 
processSqlStatement
This method processes an SQL statement in a multi-tenant environment.- Parameters:
 statement- Specifies the SQL statement to process.- Returns:
 - the processed SQL statement.
 
 - 
getCurrentTenant
This method gets the current tenant.- Returns:
 - the current tenant.
 
 
 -