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
IfsExceptionpublic String getViewName(Long classId) throws IfsException
IfsExceptionpublic S_ClassObjectData getClassData(String className) throws IfsException
IfsExceptionpublic S_ClassObjectData getClassData(Long classId) throws IfsException
IfsExceptionpublic boolean isPublicClass(String className) throws IfsException
IfsExceptionpublic boolean isPublicClass(Long classId) throws IfsException
IfsExceptionpublic String getSelectList(String className, String tName, boolean qualifyColumns) throws IfsException
IfsExceptionpublic String getSelectList(Long classId, String tName, boolean qualifyColumns) throws IfsException
IfsExceptionpublic String getSecurityClause(String className, String ownerValue) throws IfsException
IfsExceptionpublic String getSecurityClause(String vName, String className, String ownerValue) throws IfsException
IfsExceptionpublic String getSecurityClause(Long classId, String ownerValue) throws IfsException
IfsExceptionpublic String getRecursiveClause(String vName, String className, boolean isRecursive) throws IfsException
IfsExceptionpublic String getTableName(String className) throws IfsException
IfsExceptionpublic void createView(String viewName, String selectStatement, boolean replace) throws IfsException
IfsExceptionpublic String getPropertyAttributeName(int dataType) throws IfsException
IfsExceptionpublic Long getPropertyAttributeId(int dataType) throws IfsException
IfsExceptionpublic String convertToString(AttributeValue av) throws IfsException
IfsExceptionpublic String convertToSQLString(AttributeValue av) throws IfsException
IfsExceptionpublic String getDatabaseObjectName(String className, String attrName) throws IfsException
IfsExceptionpublic String getClassViewName(String className) throws IfsException
className - the name of the classIfsException - if the operation failspublic boolean applySecurity()
throws IfsException
IfsExceptionpublic void verifyHasSearchAccess(String classname) throws IfsException
IfsExceptionpublic String explainPlan(PreparedStatement planStatement, String planTable, String planName, boolean deleteRows) throws IfsException
IfsExceptionpublic Long getCurrentUser() throws IfsException
IfsExceptionpublic void verifyHasLegalSyntax(String freeFormSQL) throws IfsException
IfsExceptionpublic 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 © 2025. All rights reserved.