public class JDBCClausesDatabase extends JIPClausesDatabase
Modifier and Type | Field and Description |
---|---|
static String |
QUOTE |
static String |
SEPARATOR |
Constructor and Description |
---|
JDBCClausesDatabase() |
Modifier and Type | Method and Description |
---|---|
boolean |
addClause(JIPClause clause)
Appends a clause to the database
Note that some databases may not allow to append a clause. |
boolean |
addClauseAt(int nPos,
JIPClause clause)
Adds a clause to the database at the position specified
Note that some databases may not allow to add a clause at a given position. |
Enumeration |
clauses()
Returns an enumeration of the clauses contained in this database
|
void |
finalize() |
List<JIPClause> |
getClauses() |
Connection |
getConnection() |
ResultSet |
getResultSet() |
String |
getSQLQuery() |
String |
getURL() |
static boolean |
isNumber(int nType) |
static boolean |
isString(int nType) |
static boolean |
isValid(int nType) |
int |
readNextRow(int count) |
boolean |
removeClause(JIPClause clause)
Removes a clause from the database
Note that some databases may not allow to remove a clause.
|
void |
setAttributes(String strAttribs)
Sets the attributes to pass to the database (i.e. login info, filename, etc.)
|
getArity, getFunctorName, getJIPEngine
public static final String SEPARATOR
public static final String QUOTE
public final Connection getConnection()
public final String getURL()
public final String getSQLQuery()
public final void setAttributes(String strAttribs)
JIPClausesDatabase
setAttributes
in class JIPClausesDatabase
strAttribs
- the attributes to passpublic final boolean addClauseAt(int nPos, JIPClause clause)
JIPClausesDatabase
addClauseAt
in class JIPClausesDatabase
nPos
- Position of the clause to addclause
- Clause to addJIPClause
public final boolean addClause(JIPClause clause)
JIPClausesDatabase
addClause
in class JIPClausesDatabase
clause
- Clause to addJIPClause
public final boolean removeClause(JIPClause clause)
JIPClausesDatabase
removeClause
in class JIPClausesDatabase
clause
- Clause to removeJIPClause
public final Enumeration clauses()
JIPClausesDatabase
clauses
in class JIPClausesDatabase
JIPClause
,
JIPClausesEnumeration
public ResultSet getResultSet() throws SQLException
SQLException
public static final boolean isNumber(int nType)
public static final boolean isValid(int nType)
public static final boolean isString(int nType)
public int readNextRow(int count) throws SQLException
SQLException