/** Override to omit all those parameters which define the creation of the connection. */ protected void setupParameters(Map parameters) { parameters.put( DBTYPE.key, new Param( DBTYPE.key, DBTYPE.type, DBTYPE.description, DBTYPE.required, getDatabaseID())); parameters.put(JNDI_REFNAME.key, JNDI_REFNAME); parameters.put(SCHEMA.key, SCHEMA); parameters.put(NAMESPACE.key, NAMESPACE); parameters.put(FETCHSIZE.key, FETCHSIZE); parameters.put(BATCH_INSERT_SIZE.key, BATCH_INSERT_SIZE); parameters.put(EXPOSE_PK.key, EXPOSE_PK); parameters.put(PK_METADATA_TABLE.key, PK_METADATA_TABLE); parameters.put(SQL_ON_BORROW.key, SQL_ON_BORROW); parameters.put(SQL_ON_RELEASE.key, SQL_ON_RELEASE); parameters.put(CALLBACK_FACTORY.key, CALLBACK_FACTORY); }
new Param( DBTYPE.key, DBTYPE.type,
new Param( DBTYPE.key, DBTYPE.type,
Param tabSchema = new Param("tabschema", String.class, "Schema", false); list.add(new DatabaseConnectionField(tabSchema)); list.add(new DatabaseConnectionField(DB2NGDataStoreFactory.DATABASE));
new Param(DBTYPE.key, DBTYPE.type, DBTYPE.description, DBTYPE.required, getDatabaseID())); parameters.put(HOST.key, HOST); parameters.put(PORT.key, PORT);
new Param(DBTYPE.key, DBTYPE.type, DBTYPE.description, DBTYPE.required, getDatabaseID())); parameters.put(HOST.key, HOST); parameters.put(PORT.key, PORT);
@Override public Param apply(final ConfigOption input) { if (input.isPassword()) { return new Param( input.getName(), String.class, input.getDescription(), !input.isOptional(), "mypassword", Collections.singletonMap(Parameter.IS_PASSWORD, Boolean.TRUE)); } if (input.getType().isPrimitive() && (input.getType() == boolean.class)) { return new Param( input.getName(), input.getType(), input.getDescription(), true, "true", Collections.singletonMap(Parameter.OPTIONS, BooleanOptions)); } return new Param( input.getName(), input.getType(), input.getDescription(), !input.isOptional()); } }
/** * Override to omit all those parameters which define the creation of * the connection. */ protected void setupParameters(Map parameters) { parameters.put(DBTYPE.key, new Param(DBTYPE.key, DBTYPE.type, DBTYPE.description, DBTYPE.required, getDatabaseID())); parameters.put(JNDI_REFNAME.key, JNDI_REFNAME); parameters.put(SCHEMA.key, SCHEMA); parameters.put(NAMESPACE.key, NAMESPACE); parameters.put(EXPOSE_PK.key, EXPOSE_PK); parameters.put(PK_METADATA_TABLE.key, PK_METADATA_TABLE); parameters.put(SQL_ON_BORROW.key, SQL_ON_BORROW); parameters.put(SQL_ON_RELEASE.key, SQL_ON_RELEASE); }
@Override public Param[] getParametersInfo() { return new DataStoreFactorySpi.Param[] { new Param("ParentLocation") }; }
@Override public Param[] getParametersInfo() { return new DataStoreFactorySpi.Param[] {new Param("ParentLocation")}; }