public List<ObjectTreeNode> createChildren(ISession session, ObjectTreeNode parentNode)
throws SQLException
{
final List<ObjectTreeNode> childNodes = new ArrayList<ObjectTreeNode>();
final IDatabaseObjectInfo parentDbinfo = parentNode.getDatabaseObjectInfo();
final ISQLConnection conn = session.getSQLConnection();
final SQLDatabaseMetaData md = session.getSQLConnection().getSQLMetaData();
final String schemaName = parentDbinfo.getSchemaName();
final String catalogName = parentDbinfo.getCatalogName();
final IDatabaseObjectInfo tableInfo = ((TriggerParentInfo) parentDbinfo).getTableInfo();
PreparedStatement pstmt = null;
ResultSet rs = null;
try
{
String tableName = tableInfo.getSimpleName();
String query = triggerExtractor.getTableTriggerQuery();
if (s_log.isDebugEnabled())
{
s_log.debug("Getting triggers for table " + tableName + " in schema " + schemaName
+ " and catalog " + catalogName + " - Running query: " + query);
}
pstmt = conn.prepareStatement(query);
triggerExtractor.bindParamters(pstmt, tableInfo);
rs = pstmt.executeQuery();
while (rs.next())
{
DatabaseObjectInfo doi = new DatabaseObjectInfo(