public final class SQLGeneration_Helper extends Object
SearchSpecification
,
SearchQualification
,
Search
,
SQLGenerator
Modifier and Type | Method and Description |
---|---|
boolean |
applySecurity()
Returns true if user doesn't have discover admin privileges.
|
static SQLGeneration_Helper |
constructHelper(S_LibrarySession sess) |
String |
convertToSQLString(AttributeValue av) |
String |
convertToString(AttributeValue av) |
void |
createView(String viewName,
String selectStatement,
boolean replace) |
protected static void |
disposeHelper(S_LibrarySession session)
Disposes any previously-constructed SQLGeneration_Helper
for the specified session.
|
String |
explainPlan(PreparedStatement planStatement,
String planTable,
String planName,
boolean deleteRows) |
S_ClassObjectData |
getClassData(Long classId) |
S_ClassObjectData |
getClassData(String className) |
String |
getClassViewName(String className)
Returns the view name for the specified ClassObject.
|
Long |
getCurrentUser() |
String |
getDatabaseObjectName(String className,
String attrName)
Returns the databaseobjectname for the class and attribute.
|
long[] |
getDateRangeValues(Date dateval,
int compLevel)
get low and high long value corresponding to a date
value and a comparison level.
|
String |
getFrqClause(long startFolderId,
String poAlias,
String relView)
gets the SQL clause for a FolderRestrictQualification.
|
Localizer |
getLocalizer()
return the Localizer for the session.
|
Long |
getPropertyAttributeId(int dataType) |
String |
getPropertyAttributeName(int dataType) |
String |
getRecursiveClause(String vName,
String className,
boolean isRecursive) |
String |
getSecurityClause(Long classId,
String ownerValue) |
String |
getSecurityClause(String className,
String ownerValue) |
String |
getSecurityClause(String vName,
String className,
String ownerValue) |
String |
getSelectList(Long classId,
String tName,
boolean qualifyColumns) |
String |
getSelectList(String className,
String tName,
boolean qualifyColumns) |
S_LibrarySession |
getSession()
Get the session used by this instance.
|
String |
getTableName(String className)
Returns the tablename for the class
|
String |
getViewName(Long classId) |
String |
getViewName(String className)
Returns the approriate view to be used.
|
boolean |
hasFolderIndexService()
returns true if the service has a FolderIndexService
|
boolean |
isLykeEnabled()
Gets whether there is a ctxsubstr ("LYKE") index on the NAME attribute
of PublicObject.
|
boolean |
isPublicClass(Long classId) |
boolean |
isPublicClass(String className) |
void |
verifyHasLegalSyntax(String freeFormSQL)
Wrapper for m_Session.verifyHasLegalSyntax
|
void |
verifyHasSearchAccess(String classname) |
public static SQLGeneration_Helper constructHelper(S_LibrarySession sess)
protected static void disposeHelper(S_LibrarySession session)
session
- the sessionpublic S_LibrarySession getSession() throws IfsException
IfsException
- if operation failspublic Localizer getLocalizer() throws IfsException
IfsException
- if operation failspublic boolean isLykeEnabled() throws IfsException
IfsException
- if the operation failspublic String getViewName(String className) throws IfsException
IfsException
public String getViewName(Long classId) throws IfsException
IfsException
public S_ClassObjectData getClassData(String className) throws IfsException
IfsException
public S_ClassObjectData getClassData(Long classId) throws IfsException
IfsException
public boolean isPublicClass(String className) throws IfsException
IfsException
public boolean isPublicClass(Long classId) throws IfsException
IfsException
public String getSelectList(String className, String tName, boolean qualifyColumns) throws IfsException
IfsException
public String getSelectList(Long classId, String tName, boolean qualifyColumns) throws IfsException
IfsException
public String getSecurityClause(String className, String ownerValue) throws IfsException
IfsException
public String getSecurityClause(String vName, String className, String ownerValue) throws IfsException
IfsException
public String getSecurityClause(Long classId, String ownerValue) throws IfsException
IfsException
public String getRecursiveClause(String vName, String className, boolean isRecursive) throws IfsException
IfsException
public String getTableName(String className) throws IfsException
IfsException
public void createView(String viewName, String selectStatement, boolean replace) throws IfsException
IfsException
public String getPropertyAttributeName(int dataType) throws IfsException
IfsException
public Long getPropertyAttributeId(int dataType) throws IfsException
IfsException
public String convertToString(AttributeValue av) throws IfsException
IfsException
public String convertToSQLString(AttributeValue av) throws IfsException
IfsException
public String getDatabaseObjectName(String className, String attrName) throws IfsException
IfsException
public String getClassViewName(String className) throws IfsException
className
- the name of the classIfsException
- if the operation failspublic boolean applySecurity() throws IfsException
IfsException
public void verifyHasSearchAccess(String classname) throws IfsException
IfsException
public String explainPlan(PreparedStatement planStatement, String planTable, String planName, boolean deleteRows) throws IfsException
IfsException
public Long getCurrentUser() throws IfsException
IfsException
public void verifyHasLegalSyntax(String freeFormSQL) throws IfsException
IfsException
public long[] getDateRangeValues(Date dateval, int compLevel) throws IfsException
dateval
- the data valuecompLevel
- the Date comparison levelIfsException
- if the operation failspublic boolean hasFolderIndexService() throws IfsException
IfsException
- if operation failspublic String getFrqClause(long startFolderId, String poAlias, String relView) throws IfsException
startFolderId
- the starting folder IDpoAlias
- the alias used for the PublicObjectsrelView
- the folder path relationship view nameIfsException
- if operation failsCopyright © 2023. All rights reserved.