| java.lang.Object org.mandarax.jdbc.server.JDBC2KBUtils
JDBC2KBUtils | public class JDBC2KBUtils implements LogCategories(Code) | | Some utilities related to the kb - jdbc mapping.
author: Jens Dietrich version: 3.3.2 <29 December 2004> since: 3.0 |
getExposedPredicates | public static Iterator getExposedPredicates(KnowledgeBase kb)(Code) | | Get a list of predicates that can be used as tables in SQL queries.
list of predicates Parameters: kb - a knowledge base |
getPredicate | public static Predicate getPredicate(KnowledgeBase kb, String name)(Code) | | Get the predicate with a certain name.
a predicate or null if such a predicate does not exist Parameters: kb - a knowledge base Parameters: name - a predicate name |
getSlotName | public static String getSlotName(Predicate predicate, int index)(Code) | | Get the slot name for a predicate.
a slot name Parameters: predicate - a predicate Parameters: index - an index |
getSlotNumber | public static int getSlotNumber(Predicate predicate, String name)(Code) | | Get the slot number for a certain slot name.
a slot index or -1 if no slot with this name exists Parameters: predicate - a predicate Parameters: name - a slot name |
getTypeMapping | public static int getTypeMapping(Class jtype)(Code) | | Specifies the SQL type associated with a java type.
See Also: java.sql.Types Parameters: jtype - a java type SQL type from java.sql.Types |
getVariables | public static List getVariables(Query query)(Code) | | Get the list of query variables.
Parameters: query - a query a list of variables |
|
|