• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/db-4.8.30/java/src/com/sleepycat/persist/impl/

Lines Matching defs:oldFormat

98     private void setFormatsChanged(Format oldFormat) {
99 checkClassChangesAllowed(oldFormat);
100 changedFormats.put(oldFormat, oldFormat);
108 private void checkClassChangesAllowed(Format oldFormat) {
112 "but were made to: " + oldFormat.getClassName());
160 void addEvolveError(Format oldFormat,
164 checkClassChangesAllowed(oldFormat);
169 getClassVersionLabel(oldFormat, "") +
177 void addInvalidMutation(Format oldFormat,
181 checkClassChangesAllowed(oldFormat);
183 getClassVersionLabel(oldFormat, " For") +
191 void addMissingMutation(Format oldFormat,
194 checkClassChangesAllowed(oldFormat);
196 getClassVersionLabel(oldFormat, "") +
204 void addNonEntityFormat(Format oldFormat) {
205 unprocessedFormats.add(oldFormat);
218 for (Format oldFormat : unprocessedFormats) {
219 oldFormat.setUnused(true);
220 evolveFormat(oldFormat);
228 boolean evolveFormat(Format oldFormat) {
229 if (oldFormat.isNew()) {
233 Format oldEntityFormat = oldFormat.getEntityFormat();
239 Integer oldFormatId = oldFormat.getId();
244 result = evolveFormatInternal(oldFormat);
247 if (oldFormat.getLatestVersion().isNew()) {
267 private boolean evolveFormatInternal(Format oldFormat) {
270 if (Format.isPredefined(oldFormat) || oldFormat.isDeleted()) {
275 String oldName = oldFormat.getClassName();
276 int oldVersion = oldFormat.getVersion();
283 (oldFormat, null, deleter,
295 if (oldFormat.isArray()) {
300 (oldFormat, null, mutation,
304 Format compFormat = oldFormat.getComponentType();
326 assert newFormat != oldFormat : newFormat.getClassName();
347 if (oldFormat != oldFormat.getLatestVersion() &&
350 Format oldLatestFormat = oldFormat.getLatestVersion();
372 newFormat == oldFormat.getLatestVersion()) {
379 if (!applyClassRenamer(renamer, oldFormat, newFormat)) {
386 if (oldFormat.isEntity()) {
389 (oldFormat, newFormat, deleter,
395 if (!oldFormat.evolveMetadata(newFormat, converter, this)) {
399 return applyConverter(converter, oldFormat, newFormat);
405 (newFormat.isEntity() != oldFormat.isEntity());
409 (oldFormat, newFormat, deleter,
414 return applyClassDeleter(deleter, oldFormat, newFormat);
421 (oldFormat, newFormat, newFormatException);
424 (oldFormat, newFormat,
436 return oldFormat.evolve(newFormat, this);
443 void useOldFormat(Format oldFormat, Format newFormat) {
444 Format renamedFormat = renameFormats.get(oldFormat);
453 useEvolvedFormat(oldFormat, renamedFormat, renamedFormat);
455 (oldFormat.getVersion() != newFormat.getVersion() ||
456 !oldFormat.isCurrentVersion())) {
472 useEvolvedFormat(oldFormat, newFormat, newFormat);
475 catalog.useExistingFormat(oldFormat);
486 void useEvolvedFormat(Format oldFormat,
489 oldFormat.setReader(evolveReader);
491 oldFormat.setLatestVersion(newFormat);
493 setFormatsChanged(oldFormat);
497 Format oldFormat,
499 if (!checkUpdatedVersion(renamer, oldFormat, newFormat)) {
502 if (oldFormat.isEntity() && oldFormat.isCurrentVersion()) {
504 String oldClassName = oldFormat.getClassName();
510 oldFormat.getEntityMetadata().getSecondaryKeys().values()) {
522 renameFormats.put(oldFormat, newFormat);
524 setFormatsChanged(oldFormat);
541 Format oldFormat,
543 if (!checkUpdatedVersion(deleter, oldFormat, newFormat)) {
546 if (oldFormat.isEntity() && oldFormat.isCurrentVersion()) {
548 String className = oldFormat.getClassName();
551 oldFormat.getEntityMetadata().getSecondaryKeys().values()) {
561 oldFormat.setDeleted(true);
563 oldFormat.setLatestVersion(newFormat);
566 setFormatsChanged(oldFormat);
579 Format oldFormat,
581 if (!checkUpdatedVersion(converter, oldFormat, newFormat)) {
585 useEvolvedFormat(oldFormat, reader, newFormat);
594 Format oldFormat,
597 !oldFormat.isEnum() &&
598 newFormat.getVersion() <= oldFormat.getVersion()) {
600 (oldFormat, newFormat, mutation,
609 Format oldFormat,
612 !oldFormat.isEnum() &&
613 newFormat.getVersion() <= oldFormat.getVersion()) {
615 (oldFormat, newFormat, scenario,