| Constructor and Description |
|---|
JDBCPathCache() |
| Modifier and Type | Method and Description |
|---|---|
int |
addEntry(String path,
int parentPathId)
Method to add resource path entry to the database.
|
String |
getPath(Connection conn,
int id)
Method to get the path of a given path id.
|
static JDBCPathCache |
getPathCache() |
int |
getPathID(Connection conn,
String path)
Method to get the path id of a given path.
|
public static JDBCPathCache getPathCache()
public int addEntry(String path, int parentPathId) throws SQLException, RegistryException
path - the path to add.parentPathId - the parent path's id.RegistryException - if the data access manager was invalid.SQLException - if an error occurs while adding the entry.public String getPath(Connection conn, int id) throws SQLException
conn - the database connection to use.id - the path.SQLException - if an error occurs while obtaining the path id.public int getPathID(Connection conn, String path) throws SQLException
conn - the database connection to use.path - the path.SQLException - if an error occurs while obtaining the path id.Copyright © 2016 WSO2 Inc. All Rights Reserved.