public class LSIndexQueryProcessor extends Object
Modifier and Type | Method and Description |
---|---|
List<Integer> |
batchInsertBLangFunctions(List<BFunctionDTO> bFunctionDTOs)
Batch Insert List of BInvokable Symbols.
|
List<Integer> |
batchInsertBLangObjects(List<BObjectTypeSymbolDTO> objectDTOs)
Batch Insert List of ObjectTypeSymbols.
|
List<Integer> |
batchInsertBLangRecords(List<BRecordTypeSymbolDTO> recordDTOs)
Batch Insert List of RecordTypeSymbols.
|
List<Integer> |
batchInsertBLangResources(List<BLangResourceDTO> bLangResourceDTOs)
Batch Insert List of Resource Symbols.
|
List<Integer> |
batchInsertBPackageSymbols(List<BPackageSymbolDTO> packageDTOs)
Batch Insert List of PackageSymbolDTOs.
|
List<Integer> |
batchInsertOtherTypes(List<OtherTypeSymbolDTO> otherTypeSymbolDTOs)
Batch Insert List of Other Type Symbols.
|
List<Integer> |
batchInsertServiceSymbols(List<BLangServiceDTO> bLangServiceDTOs)
Batch Insert List of Service Symbols.
|
List<Integer> |
batchUpdateActionHolderId(List<Integer> endpoints,
List<Integer> actionHolders)
Update Action holderId entry of endpoint nodes
Note: endpoint IDs order and te actionHolder IDs holder order are equal.
|
List<BFunctionDTO> |
getActions(String pkgName,
String type)
Get all actions of a given endpoint.
|
List<BObjectTypeSymbolDTO> |
getAllEndpoints()
Get all endpoints in index.
|
List<PackageFunctionDAO> |
getAllFunctionsFromPackage(String name,
String orgName)
Get a List of PackageFunctionDAOs.
|
List<PackageIDDTO> |
getAllPackages()
Get all packages in index.
|
List<PackageFunctionDAO> |
getFilteredFunctionsFromPackage(String name,
String orgName,
boolean isPrivate,
boolean isAttached)
Get a List of PackageFunctionDAOs based on selection criteria over access type and attached or not.
|
List<ObjectDAO> |
getObjectsFromPackage(String name,
String orgName)
Get a List of ObjectDAOs.
|
List<ObjectDAO> |
getObjectsFromPackageOnAccessType(String name,
String orgName,
boolean isPrivate)
Get a List of ObjectDAOs based on the access type either private or public.
|
List<OtherTypeDAO> |
getOtherTypesFromPackage(String name,
String orgName)
Get a List of RecordDAOs.
|
List<RecordDAO> |
getRecordsFromPackage(String name,
String orgName)
Get a List of RecordDAOs.
|
List<RecordDAO> |
getRecordsFromPackageOnAccessType(String name,
String orgName,
boolean isPrivate)
Get a List of RecordDAOs based on the access type either private or public.
|
public List<Integer> batchInsertBPackageSymbols(List<BPackageSymbolDTO> packageDTOs) throws SQLException
packageDTOs
- List of Package DTOsList
List of Generated KeysSQLException
- Exception While Insertpublic List<Integer> batchInsertServiceSymbols(List<BLangServiceDTO> bLangServiceDTOs) throws SQLException
bLangServiceDTOs
- List of ServiceSymbolDTOsList
List of Generated KeysSQLException
- Exception While Insertpublic List<Integer> batchInsertBLangResources(List<BLangResourceDTO> bLangResourceDTOs) throws SQLException
bLangResourceDTOs
- List of BLangResourceDTOsList
List of Generated KeysSQLException
- Exception While Insertpublic List<Integer> batchInsertBLangFunctions(List<BFunctionDTO> bFunctionDTOs) throws SQLException, IOException
bFunctionDTOs
- List of BFunctionDTOsList
List of Generated KeysSQLException
- Exception While InsertIOException
public List<Integer> batchInsertBLangRecords(List<BRecordTypeSymbolDTO> recordDTOs) throws SQLException, IOException
recordDTOs
- List of BRecordTypeSymbolDTOsList
List of Generated KeysSQLException
- Exception While InsertIOException
public List<Integer> batchInsertOtherTypes(List<OtherTypeSymbolDTO> otherTypeSymbolDTOs) throws SQLException, IOException
otherTypeSymbolDTOs
- list of BRecordTypeSymbolDTOsList
List of Generated KeysSQLException
- Exception While InsertIOException
public List<Integer> batchInsertBLangObjects(List<BObjectTypeSymbolDTO> objectDTOs) throws SQLException, IOException
objectDTOs
- List of BObjectDTOsList
List of Generated KeysSQLException
- Exception While InsertIOException
public List<Integer> batchUpdateActionHolderId(List<Integer> endpoints, List<Integer> actionHolders) throws SQLException
endpoints
- list of Endpoint IDsactionHolders
- list of Action holder IDsList
List of Generated KeysSQLException
public List<PackageFunctionDAO> getAllFunctionsFromPackage(String name, String orgName) throws SQLException
name
- Package NameorgName
- Org NamePackageFunctionDAO
List of FunctionDAOsSQLException
- Exception While Insertpublic List<PackageFunctionDAO> getFilteredFunctionsFromPackage(String name, String orgName, boolean isPrivate, boolean isAttached) throws SQLException
name
- Package NameorgName
- Org NameisPrivate
- Access TypeisAttached
- Attached or notPackageFunctionDAO
List of FunctionDAOsSQLException
- Exception While Insertpublic List<RecordDAO> getRecordsFromPackage(String name, String orgName) throws SQLException
name
- Package NameorgName
- Org NameRecordDAO
List of RecordDAOsSQLException
- Exception While Insertpublic List<RecordDAO> getRecordsFromPackageOnAccessType(String name, String orgName, boolean isPrivate) throws SQLException
name
- Package NameorgName
- Org NameRecordDAO
List of RecordDAOsSQLException
- Exception While Insertpublic List<OtherTypeDAO> getOtherTypesFromPackage(String name, String orgName) throws SQLException
name
- Package NameorgName
- Org NameOtherTypeDAO
List of OtherTypeDAOsSQLException
- Exception While Insertpublic List<ObjectDAO> getObjectsFromPackage(String name, String orgName) throws SQLException
name
- Package NameorgName
- Org NameObjectDAO
List of FunctionDAOsSQLException
- Exception While Insertpublic List<ObjectDAO> getObjectsFromPackageOnAccessType(String name, String orgName, boolean isPrivate) throws SQLException
name
- Package NameorgName
- Org NameObjectDAO
List of FunctionDAOsSQLException
- Exception While Insertpublic List<PackageIDDTO> getAllPackages() throws SQLException
SQLException
- Exception while querypublic List<BObjectTypeSymbolDTO> getAllEndpoints() throws SQLException
SQLException
- Exception while querypublic List<BFunctionDTO> getActions(String pkgName, String type) throws SQLException
pkgName
- Package name of the endpointtype
- Type name of the endpointSQLException
- Exception while queryCopyright © 2018 WSO2. All rights reserved.