| java.lang.Object org.cougaar.core.node.DBInitializerServiceImpl
Constructor Summary | |
public | DBInitializerServiceImpl(String trialId) Constructor creates a DBInitializer from the DBInitializer.q
query control file and sets up variables for referencing the database. |
DBInitializerServiceImpl | public DBInitializerServiceImpl(String trialId) throws SQLException, IOException(Code) | | Constructor creates a DBInitializer from the DBInitializer.q
query control file and sets up variables for referencing the database.
Parameters: trialId - the Trial identifier. |
createSubstitutions | public Map createSubstitutions()(Code) | | |
translateAttributeValue | public Object[] translateAttributeValue(String type, String key) throws SQLException(Code) | | Translate the value of a "query" attribute type. The "key"
should be one or more query substitutions. Each substitution is
an equals separated key and value. Multiple substitutions are
separated by semi-colon. Backslash can quote a character. The
query may be in a different database. If so, then the dbp
should contain properties named by concatenating the query
name with .database, .username, .password describing the
database to connect to.
Parameters: type - is the "data type" of the attribute value andnames a query that should be done to obtain the actualvalue. a two-element array of attribute type and value. |
|
|