| java.lang.Object org.cougaar.planning.ldm.NonCSMARTDBInitializerServiceImpl
Constructor Summary | |
public | NonCSMARTDBInitializerServiceImpl() Constructor creates a DBInitializer from the DBInitializer.q
query control file and sets up variables for referencing the database. |
QUERY_FILE | final public static String QUERY_FILE(Code) | | Query file located in planning/data/common *
|
NonCSMARTDBInitializerServiceImpl | public NonCSMARTDBInitializerServiceImpl() throws SQLException, IOException(Code) | | Constructor creates a DBInitializer from the DBInitializer.q
query control file and sets up variables for referencing the database.
|
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. |
|
|