/** * Determine the default strategy to use for the given discriminator. * Does not take into account the current strategy, if any. */ protected DiscriminatorStrategy defaultStrategy(Discriminator discrim) { return defaultStrategy(discrim, getStrategyInstaller().isAdapting()); }
/** * Determine the default strategy to use for the given class. Does * not take into account the current strategy, if any. */ protected ClassStrategy defaultStrategy(ClassMapping cls) { return defaultStrategy(cls, getStrategyInstaller().isAdapting()); }
/** * Determine the default strategy to use for the given class. Does * not take into account the current strategy, if any. */ protected ClassStrategy defaultStrategy(ClassMapping cls) { return defaultStrategy(cls, getStrategyInstaller().isAdapting()); }
/** * Determine the default handler to use for the given value. Does * not take into account the named handler, if any. */ protected ValueHandler defaultHandler(ValueMapping val) { return defaultHandler(val, getStrategyInstaller().isAdapting()); }
/** * Determine the default strategy to use for the given discriminator. * Does not take into account the current strategy, if any. */ protected DiscriminatorStrategy defaultStrategy(Discriminator discrim) { return defaultStrategy(discrim, getStrategyInstaller().isAdapting()); }
/** * Determine the default strategy to use for the given class. Does * not take into account the current strategy, if any. */ protected ClassStrategy defaultStrategy(ClassMapping cls) { return defaultStrategy(cls, getStrategyInstaller().isAdapting()); }
/** * Determine the default strategy to use for the given version. * Does not take into account the current strategy, if any. */ protected VersionStrategy defaultStrategy(Version version) { return defaultStrategy(version, getStrategyInstaller().isAdapting()); }
/** * Determine the default strategy to use for the given discriminator. * Does not take into account the current strategy, if any. */ protected DiscriminatorStrategy defaultStrategy(Discriminator discrim) { return defaultStrategy(discrim, getStrategyInstaller().isAdapting()); }
/** * Determine the default strategy to use for the given field. Does * not take into account the named or current strategy, if any. If a * non-null strategy is returned, this method may as a side effect install * value handlers on the field's value mappings. */ protected FieldStrategy defaultStrategy(FieldMapping field, boolean installHandlers) { return defaultStrategy(field, installHandlers, getStrategyInstaller().isAdapting()); }
/** * Determine the default strategy to use for the given field. Does * not take into account the named or current strategy, if any. If a * non-null strategy is returned, this method may as a side effect install * value handlers on the field's value mappings. */ protected FieldStrategy defaultStrategy(FieldMapping field, boolean installHandlers) { return defaultStrategy(field, installHandlers, getStrategyInstaller().isAdapting()); }
/** * Determine the default strategy to use for the given version. * Does not take into account the current strategy, if any. */ protected VersionStrategy defaultStrategy(Version version) { return defaultStrategy(version, getStrategyInstaller().isAdapting()); }
/** * Determine the default strategy to use for the given field. Does * not take into account the named or current strategy, if any. If a * non-null strategy is returned, this method may as a side effect install * value handlers on the field's value mappings. */ protected FieldStrategy defaultStrategy(FieldMapping field, boolean installHandlers) { return defaultStrategy(field, installHandlers, getStrategyInstaller().isAdapting()); }
/** * Determine the default handler to use for the given value. Does * not take into account the named handler, if any. */ protected ValueHandler defaultHandler(ValueMapping val) { return defaultHandler(val, getStrategyInstaller().isAdapting()); }
/** * Determine the default strategy to use for the given discriminator. * Does not take into account the current strategy, if any. */ protected DiscriminatorStrategy defaultStrategy(Discriminator discrim) { return defaultStrategy(discrim, getStrategyInstaller().isAdapting()); }
/** * Determine the default strategy to use for the given class. Does * not take into account the current strategy, if any. */ protected ClassStrategy defaultStrategy(ClassMapping cls) { return defaultStrategy(cls, getStrategyInstaller().isAdapting()); }
/** * Determine the default handler to use for the given value. Does * not take into account the named handler, if any. */ protected ValueHandler defaultHandler(ValueMapping val) { return defaultHandler(val, getStrategyInstaller().isAdapting()); }
@Override protected XMLPersistenceMetaDataParser newXMLParser(boolean loading) { XMLPersistenceMappingParser parser = new XMLPersistenceMappingParser ((JDBCConfiguration) repos.getConfiguration()); // strict mode means we're using a separate mapping parser, so if // we're adapting parse metadata hints if (strict && loading) parser.setMappingOverride(((MappingRepository) repos). getStrategyInstaller().isAdapting()); return parser; }
@Override protected AnnotationPersistenceMetaDataParser newAnnotationParser() { AnnotationPersistenceMappingParser parser = new AnnotationPersistenceMappingParser((JDBCConfiguration) repos.getConfiguration()); // strict mode means we're using a separate mapping parser, so if // we're adapting parse metadata hints if (strict) parser.setMappingOverride(((MappingRepository) repos). getStrategyInstaller().isAdapting()); return parser; }
@Override protected AnnotationPersistenceMetaDataParser newAnnotationParser() { AnnotationPersistenceMappingParser parser = new AnnotationPersistenceMappingParser((JDBCConfiguration) repos.getConfiguration()); // strict mode means we're using a separate mapping parser, so if // we're adapting parse metadata hints if (strict) parser.setMappingOverride(((MappingRepository) repos). getStrategyInstaller().isAdapting()); return parser; }
@Override protected XMLPersistenceMetaDataParser newXMLParser(boolean loading) { XMLPersistenceMappingParser parser = new XMLPersistenceMappingParser ((JDBCConfiguration) repos.getConfiguration()); // strict mode means we're using a separate mapping parser, so if // we're adapting parse metadata hints if (strict && loading) parser.setMappingOverride(((MappingRepository) repos). getStrategyInstaller().isAdapting()); return parser; }