public class AgentJDBCPersistentBB extends JDBCPersistentBB
agentName, belsDB, conn, extraCols, timestampFunctor, url
nextBB
APercept, ASelf, TPercept, TSelf
Constructor and Description |
---|
AgentJDBCPersistentBB() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getAgWhere() |
protected java.lang.String |
getCountQuery(PredicateIndicator pi)
returns a SQL command to count the number of instances of a predicate
|
protected java.lang.String |
getCreateTable(java.lang.String table,
int arity,
Structure columns)
returns the SQL command to create a new table
|
protected java.lang.String |
getDeleteAll(PredicateIndicator pi)
returns a SQL command to delete all entries for a predicate
|
protected java.lang.String |
getInsert(Literal l)
returns the SQL command to insert l into the DB
|
protected java.lang.String |
getSelectAll(PredicateIndicator pi)
returns the SQL command the selects all literals of type pi
|
protected java.lang.String |
getWhere(Literal l)
returns the where clausule for a select for literal l
|
abolish, add, add, clear, contains, getCandidateBeliefs, getSelect, getTableName, getTableName, init, isCreatedByJason, isDB, iterator, remove, resultSetToLiteral, size, stop, structure2timestamp, test, timestamp2structure
clone, getAll, getAsDOM, getCandidateBeliefs, getLastBB, getNextAdapter, getPercepts, getRelevant, setNext, toString
protected java.lang.String getCreateTable(java.lang.String table, int arity, Structure columns) throws java.sql.SQLException
JDBCPersistentBB
getCreateTable
in class JDBCPersistentBB
java.sql.SQLException
protected java.lang.String getAgWhere()
protected java.lang.String getDeleteAll(PredicateIndicator pi) throws java.sql.SQLException
JDBCPersistentBB
getDeleteAll
in class JDBCPersistentBB
java.sql.SQLException
protected java.lang.String getCountQuery(PredicateIndicator pi) throws java.sql.SQLException
JDBCPersistentBB
getCountQuery
in class JDBCPersistentBB
java.sql.SQLException
protected java.lang.String getSelectAll(PredicateIndicator pi) throws java.sql.SQLException
JDBCPersistentBB
getSelectAll
in class JDBCPersistentBB
java.sql.SQLException
protected java.lang.String getWhere(Literal l) throws java.sql.SQLException
JDBCPersistentBB
getWhere
in class JDBCPersistentBB
java.sql.SQLException
protected java.lang.String getInsert(Literal l) throws java.lang.Exception
JDBCPersistentBB
getInsert
in class JDBCPersistentBB
java.lang.Exception