/** * Representation of the database schema. */ public synchronized SchemaGroup getSchemaGroup() { if (_schema == null) _schema = ((JDBCConfiguration) getConfiguration()). getSchemaFactoryInstance().readSchema(); return _schema; }
/** * Representation of the database schema. */ public SchemaGroup getSchemaGroup() { if (_locking) { synchronized (this) { if (_schema == null) _schema = ((JDBCConfiguration) getConfiguration()).getSchemaFactoryInstance().readSchema(); return _schema; } } else { if (_schema == null) _schema = ((JDBCConfiguration) getConfiguration()).getSchemaFactoryInstance().readSchema(); return _schema; } }
public boolean isNonDefaultMappingAllowed() { OpenJPAConfiguration conf = getConfiguration(); return getMetaDataFactory().getDefaults().isNonDefaultMappingAllowed(conf); }
public boolean isNonDefaultMappingAllowed() { OpenJPAConfiguration conf = getConfiguration(); return getMetaDataFactory().getDefaults().isNonDefaultMappingAllowed(conf); }
public boolean isNonDefaultMappingAllowed() { OpenJPAConfiguration conf = getConfiguration(); return getMetaDataFactory().getDefaults().isNonDefaultMappingAllowed(conf); }
public boolean isNonDefaultMappingAllowed() { OpenJPAConfiguration conf = getConfiguration(); return getMetaDataFactory().getDefaults().isNonDefaultMappingAllowed(conf); }
/** * Constructor. Supply candidate, whether subclasses are included in * the query, and the query alias. */ public SubQ(ClassMapping candidate, boolean subs, String alias) { _candidate = candidate; _subs = subs; _subqAlias = alias; _select = (((JDBCConfiguration) candidate.getMappingRepository(). getConfiguration()).getSQLFactoryInstance().newSelect()); _cons.setSubselect(_select); }
/** * Constructor. Supply candidate, whether subclasses are included in * the query, and the query alias. */ public SubQ(ClassMapping candidate, boolean subs, String alias) { _candidate = candidate; _subs = subs; _subqAlias = alias; _select = (((JDBCConfiguration) candidate.getMappingRepository(). getConfiguration()).getSQLFactoryInstance().newSelect()); _cons.setSubselect(_select); }
/** * Constructor. Supply candidate, whether subclasses are included in * the query, and the query alias. */ public SubQ(ClassMapping candidate, boolean subs, String alias) { _candidate = candidate; _subs = subs; _subqAlias = alias; _select = (((JDBCConfiguration) candidate.getMappingRepository(). getConfiguration()).getSQLFactoryInstance().newSelect()); _cons.setSubselect(_select); }
/** * Constructor. Supply candidate, whether subclasses are included in * the query, and the query alias. */ public SubQ(ClassMapping candidate, boolean subs, String alias) { _candidate = candidate; _subs = subs; _subqAlias = alias; _select = (((JDBCConfiguration) candidate.getMappingRepository(). getConfiguration()).getSQLFactoryInstance().newSelect()); _cons.setSubselect(_select); }
/** * Return the collection strategy for the given element handler, or null * if none. */ protected FieldStrategy handlerCollectionStrategy(FieldMapping field, ValueHandler ehandler, boolean installHandlers) { if (getConfiguration().getCompatibilityInstance() .getStoreMapCollectionInEntityAsBlob()) return null; if (installHandlers) field.getElementMapping().setHandler(ehandler); return new HandlerCollectionTableFieldStrategy(); }
/** * Return the collection strategy for the given element handler, or null * if none. */ protected FieldStrategy handlerCollectionStrategy(FieldMapping field, ValueHandler ehandler, boolean installHandlers) { // TODO: JPA 2.0 should ignore this flag and not to serialize if (getConfiguration().getCompatibilityInstance() .getStoreMapCollectionInEntityAsBlob()) return null; if (installHandlers) field.getElementMapping().setHandler(ehandler); return new HandlerCollectionTableFieldStrategy(); }
/** * Return the collection strategy for the given element handler, or null * if none. */ protected FieldStrategy handlerCollectionStrategy(FieldMapping field, ValueHandler ehandler, boolean installHandlers) { // TODO: JPA 2.0 should ignore this flag and not to serialize if (getConfiguration().getCompatibilityInstance() .getStoreMapCollectionInEntityAsBlob()) return null; if (installHandlers) field.getElementMapping().setHandler(ehandler); return new HandlerCollectionTableFieldStrategy(); }
/** * Return the collection strategy for the given element handler, or null * if none. */ protected FieldStrategy handlerCollectionStrategy(FieldMapping field, ValueHandler ehandler, boolean installHandlers) { // TODO: JPA 2.0 should ignore this flag and not to serialize if (getConfiguration().getCompatibilityInstance() .getStoreMapCollectionInEntityAsBlob()) return null; if (installHandlers) field.getElementMapping().setHandler(ehandler); return new HandlerCollectionTableFieldStrategy(); }
/** * Return the collection strategy for the given element handler, or null * if none. */ protected FieldStrategy handlerCollectionStrategy(FieldMapping field, ValueHandler ehandler, boolean installHandlers) { // TODO: JPA 2.0 should ignore this flag and not to serialize if (getConfiguration().getCompatibilityInstance() .getStoreMapCollectionInEntityAsBlob()) return null; if (installHandlers) field.getElementMapping().setHandler(ehandler); return new HandlerCollectionTableFieldStrategy(); }
public void endConfiguration() { super.endConfiguration(); JDBCConfiguration conf = (JDBCConfiguration) getConfiguration(); _dict = conf.getDBDictionaryInstance(); if (_defaults == null) _defaults = conf.getMappingDefaultsInstance(); if (_schema != null && _schema instanceof Configurable) { ((Configurable) _schema).setConfiguration(conf); ((Configurable) _schema).startConfiguration(); ((Configurable) _schema).endConfiguration(); } }
public void endConfiguration() { super.endConfiguration(); JDBCConfiguration conf = (JDBCConfiguration) getConfiguration(); _dict = conf.getDBDictionaryInstance(); if (_defaults == null) _defaults = conf.getMappingDefaultsInstance(); if (_schema != null && _schema instanceof Configurable) { ((Configurable) _schema).setConfiguration(conf); ((Configurable) _schema).startConfiguration(); ((Configurable) _schema).endConfiguration(); } }
public void endConfiguration() { super.endConfiguration(); JDBCConfiguration conf = (JDBCConfiguration) getConfiguration(); _dict = conf.getDBDictionaryInstance(); if (_defaults == null) _defaults = conf.getMappingDefaultsInstance(); if (_schema != null && _schema instanceof Configurable) { ((Configurable) _schema).setConfiguration(conf); ((Configurable) _schema).startConfiguration(); ((Configurable) _schema).endConfiguration(); } }
public void endConfiguration() { super.endConfiguration(); JDBCConfiguration conf = (JDBCConfiguration) getConfiguration(); _dict = conf.getDBDictionaryInstance(); if (_defaults == null) _defaults = conf.getMappingDefaultsInstance(); if (_schema != null && _schema instanceof Configurable) { ((Configurable) _schema).setConfiguration(conf); ((Configurable) _schema).startConfiguration(); ((Configurable) _schema).endConfiguration(); } }
public void endConfiguration() { super.endConfiguration(); JDBCConfiguration conf = (JDBCConfiguration) getConfiguration(); _dict = conf.getDBDictionaryInstance(); if (_defaults == null) _defaults = conf.getMappingDefaultsInstance(); if (_schema != null && _schema instanceof Configurable) { ((Configurable) _schema).setConfiguration(conf); ((Configurable) _schema).startConfiguration(); ((Configurable) _schema).endConfiguration(); } } }