Lines Matching refs:cfg
24 private void Config(SecondaryRecnoDatabaseConfig cfg) {
25 base.Config((SecondaryDatabaseConfig)cfg);
26 db.set_flags(cfg.flags);
28 if (cfg.delimiterIsSet)
29 db.set_re_delim(cfg.Delimiter);
30 if (cfg.lengthIsSet)
31 db.set_re_len(cfg.Length);
32 if (cfg.padIsSet)
33 db.set_re_pad(cfg.PadByte);
34 if (cfg.BackingFile != null)
35 db.set_re_source(cfg.BackingFile);
63 /// <param name="cfg">The database's configuration</param>
66 string Filename, SecondaryRecnoDatabaseConfig cfg) {
67 return Open(Filename, null, cfg, null);
105 /// <param name="cfg">The database's configuration</param>
108 string DatabaseName, SecondaryRecnoDatabaseConfig cfg) {
109 return Open(Filename, DatabaseName, cfg, null);
138 /// <param name="cfg">The database's configuration</param>
149 SecondaryRecnoDatabaseConfig cfg, Transaction txn) {
150 return Open(Filename, null, cfg, txn);
190 /// <param name="cfg">The database's configuration</param>
202 SecondaryRecnoDatabaseConfig cfg, Transaction txn) {
203 SecondaryRecnoDatabase ret = new SecondaryRecnoDatabase(cfg.Env, 0);
204 ret.Config(cfg);
206 DatabaseName, cfg.DbType.getDBTYPE(), cfg.openFlags, 0);
210 cfg.Primary.db.associate(Transaction.getDB_TXN(null),
211 ret.db, ret.doAssocRef, cfg.assocFlags);
213 if (cfg.ForeignKeyDatabase != null) {
214 if (cfg.OnForeignKeyDelete == ForeignKeyDeleteAction.NULLIFY)
219 cfg.ForeignKeyDatabase.db.associate_foreign(
220 ret.db, ret.doNullifyRef, cfg.foreignFlags);