Method Summary |
|
protected String | allAndKeys() Returns pairs of assigned key/value separated with "AND". |
protected String | allAndKeys(Map map) Returns a String in a format suitable for use with
java.sql.Connection.prepareStatement(String) where all the key
columns equal a parameter (i.e. |
protected void | closeStatement(PreparedStatement statement) Closes a statement and adds a descriptive error message to
the exception thrown in case of error. |
protected PreparedStatement | createStatement(String query) Creates a statement and adds a descriptive error message to
the exception thrown in case of error.
Parameters: query - The parametrized SQL query to prepare. throws: VisitorException - if the statement can't be created. |
protected ResultSet | executeQuery(PreparedStatement statement) Executes an update operation on the Database and adds a descriptive error message to
the exception thrown in case of error.
Parameters: statement - The Statement object wich will execute theSQL query. |
protected void | executeUpdate(PreparedStatement statement) Executes an update operation on the Database and adds a descriptive
error message to the exception thrown in case of error. |
protected void | fillKeyValues(PreparedStatement statement, int paramNumber) Adds the key values to the PreparedStatement starting at
argument paramNumber . |
protected Connection | getConnection() Returns the connection to de database. |
protected Map | getKey() Returns the key of the property being accessed. |
protected String | getTableName(MetaProperty metaProperty) Returns the name of the table where properties of the given MetaProperty
"type" will be stored.
Parameters: metaProperty - MetaProperty describing the information to be stored. |