/** * Returns true if field class does not use the "none" strategy (including * if it has a null strategy, and therefore is probably in the process of * being mapped). */ public boolean isMapped() { return _strategy != NoneFieldStrategy.getInstance(); }
/** * Returns true if field class does not use the "none" strategy (including * if it has a null strategy, and therefore is probably in the process of * being mapped). */ public boolean isMapped() { return _strategy != NoneFieldStrategy.getInstance(); }
/** * Returns true if field class does not use the "none" strategy (including * if it has a null strategy, and therefore is probably in the process of * being mapped). */ public boolean isMapped() { return _strategy != NoneFieldStrategy.getInstance(); }
/** * Returns true if field class does not use the "none" strategy (including * if it has a null strategy, and therefore is probably in the process of * being mapped). */ public boolean isMapped() { return _strategy != NoneFieldStrategy.getInstance(); }
/** * Returns true if field class does not use the "none" strategy (including * if it has a null strategy, and therefore is probably in the process of * being mapped). */ public boolean isMapped() { return _strategy != NoneFieldStrategy.getInstance(); }
public void installStrategy(FieldMapping field) { field.clearMapping(); field.setStrategy(NoneFieldStrategy.getInstance(), null); }
public void installStrategy(FieldMapping field) { field.clearMapping(); field.setStrategy(NoneFieldStrategy.getInstance(), null); }
public void installStrategy(FieldMapping field) { field.clearMapping(); field.setStrategy(NoneFieldStrategy.getInstance(), null); }
public void installStrategy(FieldMapping field) { field.clearMapping(); field.setStrategy(NoneFieldStrategy.getInstance(), null); }
public void installStrategy(FieldMapping field) { field.clearMapping(); field.setStrategy(NoneFieldStrategy.getInstance(), null); }
return NoneFieldStrategy.getInstance();
return NoneFieldStrategy.getInstance();
return NoneFieldStrategy.getInstance();
return NoneFieldStrategy.getInstance();
return NoneFieldStrategy.getInstance();
public void installStrategy(FieldMapping field) { FieldStrategy strategy = repos.namedStrategy(field, true); if (strategy == null) { try { strategy = repos.defaultStrategy(field, true, false); } catch (MetaDataException mde) { // if the parent class is abstract and field is unmapped, // allow it to pass (assume subclasses map the field) Class cls = field.getDefiningMetaData().getDescribedType(); if (!Modifier.isAbstract(cls.getModifiers()) || field.getMappedBy() != null || field.getMappingInfo().hasSchemaComponents() || field.getValueInfo().hasSchemaComponents() || field.getElementMapping().getValueInfo(). hasSchemaComponents() || field.getKeyMapping().getValueInfo(). hasSchemaComponents()) throw mde; strategy = NoneFieldStrategy.getInstance(); } } field.setStrategy(strategy, Boolean.FALSE); }
public void installStrategy(FieldMapping field) { FieldStrategy strategy = null; ClassMapping owner = getOutermostDefiningMapping(field); if (owner != null && !owner.isEmbeddable() && !owner.isAbstract()) strategy = repos.namedStrategy(field, true); if (strategy == null) { try { strategy = repos.defaultStrategy(field, true, false); } catch (MetaDataException mde) { // if the parent class is abstract and field is unmapped, // allow it to pass (assume subclasses map the field) Class cls = field.getDefiningMetaData().getDescribedType(); if (!Modifier.isAbstract(cls.getModifiers()) || field.getMappedBy() != null || field.getMappingInfo().hasSchemaComponents() || field.getValueInfo().hasSchemaComponents() || field.getElementMapping().getValueInfo().hasSchemaComponents() || field.getKeyMapping().getValueInfo().hasSchemaComponents()) throw mde; strategy = NoneFieldStrategy.getInstance(); } } field.setStrategy(strategy, Boolean.FALSE); }
public void installStrategy(FieldMapping field) { FieldStrategy strategy = null; ClassMapping owner = getOutermostDefiningMapping(field); if (owner != null && !owner.isEmbeddable() && !owner.isAbstract()) strategy = repos.namedStrategy(field, true); if (strategy == null) { try { strategy = repos.defaultStrategy(field, true, false); } catch (MetaDataException mde) { // if the parent class is abstract and field is unmapped, // allow it to pass (assume subclasses map the field) Class cls = field.getDefiningMetaData().getDescribedType(); if (!Modifier.isAbstract(cls.getModifiers()) || field.getMappedBy() != null || field.getMappingInfo().hasSchemaComponents() || field.getValueInfo().hasSchemaComponents() || field.getElementMapping().getValueInfo().hasSchemaComponents() || field.getKeyMapping().getValueInfo().hasSchemaComponents()) throw mde; strategy = NoneFieldStrategy.getInstance(); } } field.setStrategy(strategy, Boolean.FALSE); }
public void installStrategy(FieldMapping field) { FieldStrategy strategy = null; ClassMapping owner = getOutermostDefiningMapping(field); if (owner != null && !owner.isEmbeddable() && !owner.isAbstract()) strategy = repos.namedStrategy(field, true); if (strategy == null) { try { strategy = repos.defaultStrategy(field, true, false); } catch (MetaDataException mde) { // if the parent class is abstract and field is unmapped, // allow it to pass (assume subclasses map the field) Class cls = field.getDefiningMetaData().getDescribedType(); if (!Modifier.isAbstract(cls.getModifiers()) || field.getMappedBy() != null || field.getMappingInfo().hasSchemaComponents() || field.getValueInfo().hasSchemaComponents() || field.getElementMapping().getValueInfo().hasSchemaComponents() || field.getKeyMapping().getValueInfo().hasSchemaComponents()) throw mde; strategy = NoneFieldStrategy.getInstance(); } } field.setStrategy(strategy, Boolean.FALSE); }
public void installStrategy(FieldMapping field) { FieldStrategy strategy = null; ClassMapping owner = getOutermostDefiningMapping(field); if (owner != null && !owner.isEmbeddable() && !owner.isAbstract()) strategy = repos.namedStrategy(field, true); if (strategy == null) { try { strategy = repos.defaultStrategy(field, true, false); } catch (MetaDataException mde) { // if the parent class is abstract and field is unmapped, // allow it to pass (assume subclasses map the field) Class cls = field.getDefiningMetaData().getDescribedType(); if (!Modifier.isAbstract(cls.getModifiers()) || field.getMappedBy() != null || field.getMappingInfo().hasSchemaComponents() || field.getValueInfo().hasSchemaComponents() || field.getElementMapping().getValueInfo().hasSchemaComponents() || field.getKeyMapping().getValueInfo().hasSchemaComponents()) throw mde; strategy = NoneFieldStrategy.getInstance(); } } field.setStrategy(strategy, Boolean.FALSE); }