code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
public List<String> getExecuteStatements() { return executeStatements; }
Get the SQL statements that were executed since the last clear operation. @return list of recorded update statements.
getExecuteStatements
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jdbc/PreparedStatementSpyConnectionProvider.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jdbc/PreparedStatementSpyConnectionProvider.java
Apache-2.0
public List<String> getExecuteUpdateStatements() { return executeUpdateStatements; }
Get the SQL update statements that were executed since the last clear operation. @return list of recorded update statements.
getExecuteUpdateStatements
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jdbc/PreparedStatementSpyConnectionProvider.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jdbc/PreparedStatementSpyConnectionProvider.java
Apache-2.0
public List<Connection> getAcquiredConnections() { return acquiredConnections; }
Get a list of current acquired Connections. @return list of current acquired Connections
getAcquiredConnections
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jdbc/PreparedStatementSpyConnectionProvider.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jdbc/PreparedStatementSpyConnectionProvider.java
Apache-2.0
public List<Connection> getReleasedConnections() { return releasedConnections; }
Get a list of current released Connections. @return list of current released Connections
getReleasedConnections
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jdbc/PreparedStatementSpyConnectionProvider.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jdbc/PreparedStatementSpyConnectionProvider.java
Apache-2.0
@Override public void stop() { super.stop(); System.setProperty( "user.timezone", defaultTimeZone); TimeZone.setDefault(TimeZone.getTimeZone( defaultTimeZone )); // Clear the connection pool to avoid issues with drivers that initialize the session TZ to the system TZ SharedDriverManagerConnectionProviderImpl...
This {@link ConnectionProvider} extends any other ConnectionProvider that would be used by default taken the current configuration properties, and it just sets a default TimeZone which is different than the current default one. @author Vlad Mihalcea
stop
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jdbc/TimeZoneConnectionProvider.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jdbc/TimeZoneConnectionProvider.java
Apache-2.0
public String getPersistenceUnitName() { return name; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> Expected usage is to override methods relevant to their specific tests. <p> See {@link PersistenceUnitInfoImpl} for a more bean-like implementation @author Steve Ebersole
getPersistenceUnitName
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
Apache-2.0
public String getPersistenceProviderClassName() { return HibernatePersistenceProvider.class.getName(); }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> Expected usage is to override methods relevant to their specific tests. <p> See {@link PersistenceUnitInfoImpl} for a more bean-like implementation @author Steve Ebersole
getPersistenceProviderClassName
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
Apache-2.0
@Override public String getScopeAnnotationName() { return null; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> Expected usage is to override methods relevant to their specific tests. <p> See {@link PersistenceUnitInfoImpl} for a more bean-like implementation @author Steve Ebersole
getScopeAnnotationName
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
Apache-2.0
@Override public List<String> getQualifierAnnotationNames() { return List.of(); }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> Expected usage is to override methods relevant to their specific tests. <p> See {@link PersistenceUnitInfoImpl} for a more bean-like implementation @author Steve Ebersole
getQualifierAnnotationNames
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
Apache-2.0
@Override @SuppressWarnings("removal") public PersistenceUnitTransactionType getTransactionType() { return null; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> Expected usage is to override methods relevant to their specific tests. <p> See {@link PersistenceUnitInfoImpl} for a more bean-like implementation @author Steve Ebersole
getTransactionType
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
Apache-2.0
public DataSource getJtaDataSource() { return null; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> Expected usage is to override methods relevant to their specific tests. <p> See {@link PersistenceUnitInfoImpl} for a more bean-like implementation @author Steve Ebersole
getJtaDataSource
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
Apache-2.0
public DataSource getNonJtaDataSource() { return null; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> Expected usage is to override methods relevant to their specific tests. <p> See {@link PersistenceUnitInfoImpl} for a more bean-like implementation @author Steve Ebersole
getNonJtaDataSource
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
Apache-2.0
public List<String> getMappingFileNames() { return emptyList(); }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> Expected usage is to override methods relevant to their specific tests. <p> See {@link PersistenceUnitInfoImpl} for a more bean-like implementation @author Steve Ebersole
getMappingFileNames
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
Apache-2.0
public List<URL> getJarFileUrls() { return emptyList(); }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> Expected usage is to override methods relevant to their specific tests. <p> See {@link PersistenceUnitInfoImpl} for a more bean-like implementation @author Steve Ebersole
getJarFileUrls
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
Apache-2.0
public URL getPersistenceUnitRootUrl() { return null; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> Expected usage is to override methods relevant to their specific tests. <p> See {@link PersistenceUnitInfoImpl} for a more bean-like implementation @author Steve Ebersole
getPersistenceUnitRootUrl
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
Apache-2.0
public List<String> getManagedClassNames() { return emptyList(); }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> Expected usage is to override methods relevant to their specific tests. <p> See {@link PersistenceUnitInfoImpl} for a more bean-like implementation @author Steve Ebersole
getManagedClassNames
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
Apache-2.0
public boolean excludeUnlistedClasses() { return false; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> Expected usage is to override methods relevant to their specific tests. <p> See {@link PersistenceUnitInfoImpl} for a more bean-like implementation @author Steve Ebersole
excludeUnlistedClasses
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
Apache-2.0
public SharedCacheMode getSharedCacheMode() { return null; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> Expected usage is to override methods relevant to their specific tests. <p> See {@link PersistenceUnitInfoImpl} for a more bean-like implementation @author Steve Ebersole
getSharedCacheMode
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
Apache-2.0
public ValidationMode getValidationMode() { return null; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> Expected usage is to override methods relevant to their specific tests. <p> See {@link PersistenceUnitInfoImpl} for a more bean-like implementation @author Steve Ebersole
getValidationMode
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
Apache-2.0
public Properties getProperties() { if ( properties == null ) { properties = new Properties(); } return properties; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> Expected usage is to override methods relevant to their specific tests. <p> See {@link PersistenceUnitInfoImpl} for a more bean-like implementation @author Steve Ebersole
getProperties
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
Apache-2.0
public String getPersistenceXMLSchemaVersion() { return null; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> Expected usage is to override methods relevant to their specific tests. <p> See {@link PersistenceUnitInfoImpl} for a more bean-like implementation @author Steve Ebersole
getPersistenceXMLSchemaVersion
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
Apache-2.0
public ClassLoader getClassLoader() { return Thread.currentThread().getContextClassLoader(); }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> Expected usage is to override methods relevant to their specific tests. <p> See {@link PersistenceUnitInfoImpl} for a more bean-like implementation @author Steve Ebersole
getClassLoader
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
Apache-2.0
public ClassLoader getNewTempClassLoader() { return null; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> Expected usage is to override methods relevant to their specific tests. <p> See {@link PersistenceUnitInfoImpl} for a more bean-like implementation @author Steve Ebersole
getNewTempClassLoader
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoAdapter.java
Apache-2.0
@Override public String getPersistenceUnitName() { return name; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
getPersistenceUnitName
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
@Override public String getScopeAnnotationName() { return scopeAnnotationName; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
getScopeAnnotationName
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
public void setScopeAnnotationName(String scopeAnnotationName) { this.scopeAnnotationName = scopeAnnotationName; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
setScopeAnnotationName
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
@Override public List<String> getQualifierAnnotationNames() { return qualifierAnnotationNames; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
getQualifierAnnotationNames
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
public void setQualifierAnnotationNames(List<String> qualifierAnnotationNames) { this.qualifierAnnotationNames = qualifierAnnotationNames; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
setQualifierAnnotationNames
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
@Override public Properties getProperties() { return properties; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
getProperties
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
@Override public String getPersistenceProviderClassName() { return HibernatePersistenceProvider.class.getName(); }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
getPersistenceProviderClassName
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
@Override @SuppressWarnings("removal") public PersistenceUnitTransactionType getTransactionType() { return transactionType; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
getTransactionType
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
public void setTransactionType(@SuppressWarnings("removal") PersistenceUnitTransactionType transactionType) { this.transactionType = transactionType; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
setTransactionType
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
@Override public SharedCacheMode getSharedCacheMode() { return cacheMode; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
getSharedCacheMode
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
public void setCacheMode(SharedCacheMode cacheMode) { this.cacheMode = cacheMode; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
setCacheMode
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
@Override public ValidationMode getValidationMode() { return validationMode; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
getValidationMode
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
public void setValidationMode(ValidationMode validationMode) { this.validationMode = validationMode; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
setValidationMode
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
@Override public List<String> getMappingFileNames() { return mappingFiles == null ? emptyList() : mappingFiles; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
getMappingFileNames
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
public void applyMappingFiles(String... mappingFiles) { if ( this.mappingFiles == null ) { this.mappingFiles = new ArrayList<>(); } Collections.addAll( this.mappingFiles, mappingFiles ); }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
applyMappingFiles
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
@Override public List<String> getManagedClassNames() { return managedClassNames == null ? emptyList() : managedClassNames; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
getManagedClassNames
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
public void applyManagedClassNames(String... managedClassNames) { if ( this.managedClassNames == null ) { this.managedClassNames = new ArrayList<>(); } Collections.addAll( this.managedClassNames, managedClassNames ); }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
applyManagedClassNames
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
@Override public boolean excludeUnlistedClasses() { return excludeUnlistedClasses; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
excludeUnlistedClasses
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
public void setExcludeUnlistedClasses(boolean excludeUnlistedClasses) { this.excludeUnlistedClasses = excludeUnlistedClasses; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
setExcludeUnlistedClasses
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
@Override public String getPersistenceXMLSchemaVersion() { return null; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
getPersistenceXMLSchemaVersion
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
@Override public DataSource getJtaDataSource() { return null; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
getJtaDataSource
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
@Override public DataSource getNonJtaDataSource() { return null; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
getNonJtaDataSource
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
@Override public List<URL> getJarFileUrls() { return null; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
getJarFileUrls
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
@Override public URL getPersistenceUnitRootUrl() { return null; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
getPersistenceUnitRootUrl
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
@Override public ClassLoader getClassLoader() { return null; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
getClassLoader
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
@Override public void addTransformer(ClassTransformer transformer) { }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
addTransformer
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
@Override public ClassLoader getNewTempClassLoader() { return null; }
Implementation of {@link PersistenceUnitInfo} for testing use. <p> This implementation provides a bean-like contract for providing PU information. <p> See {@link PersistenceUnitInfoAdapter} for an override-based solution @author Steve Ebersole
getNewTempClassLoader
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/jpa/PersistenceUnitInfoImpl.java
Apache-2.0
protected SessionFactoryScope sessionFactoryScope() { return sessionFactoryScope; }
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
sessionFactoryScope
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
protected SessionFactoryImplementor sessionFactory() { return sessionFactoryScope.getSessionFactory(); }
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
sessionFactory
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
protected MetadataImplementor getMetadata(){ return modelScope.getDomainModel(); }
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
getMetadata
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
@Override public StandardServiceRegistry produceServiceRegistry(StandardServiceRegistryBuilder ssrBuilder) { ssrBuilder.applySetting( AvailableSettings.HBM2DDL_AUTO, exportSchema() ? "create-drop" : "none" ); applySettings( ssrBuilder ); ServiceRegistryUtil.applySettings( ssrBuilder ); return ssrBuilder.build(...
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
produceServiceRegistry
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
@Override public void prepareBootstrapRegistryBuilder(BootstrapServiceRegistryBuilder bsrb) { }
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
prepareBootstrapRegistryBuilder
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
protected boolean exportSchema() { return true; }
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
exportSchema
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
@Override public void injectServiceRegistryScope(ServiceRegistryScope registryScope) { }
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
injectServiceRegistryScope
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
@Override public MetadataImplementor produceModel(StandardServiceRegistry serviceRegistry) { MetadataSources metadataSources = new MetadataSources( serviceRegistry ); MetadataBuilder metadataBuilder = metadataSources.getMetadataBuilder(); applyMetadataBuilder( metadataBuilder ); applyMetadataSources( metadataS...
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
produceModel
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
protected final void applyCacheSettings(Metadata metadata) { for ( PersistentClass entityBinding : metadata.getEntityBindings() ) { if ( !entityBinding.isInherited() ) { if ( !hasLob( entityBinding ) ) { final RootClass rootClass = (RootClass) entityBinding; rootClass.setCacheConcurrencyStrategy( get...
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
applyCacheSettings
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
private static boolean isLob(Collection collectionBinding) { return collectionBinding.getElement().isSimpleValue() && isLob( (SimpleValue) collectionBinding.getElement() ); }
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
isLob
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
private static boolean hasLob(PersistentClass entityBinding) { for ( Property prop : entityBinding.getPropertyClosure() ) { if ( prop.getValue().isSimpleValue() ) { if ( isLob( (SimpleValue) prop.getValue() ) ) { return true; } } } return false; }
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
hasLob
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
protected boolean overrideCacheStrategy() { return true; }
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
overrideCacheStrategy
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
protected String getCacheConcurrencyStrategy() { return null; }
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
getCacheConcurrencyStrategy
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
protected void applyMetadataSources(MetadataSources metadataSources) { for ( Class annotatedClass : getAnnotatedClasses() ) { metadataSources.addAnnotatedClass( annotatedClass ); } String[] xmlFiles = getOrmXmlFiles(); if ( xmlFiles != null ) { for ( String xmlFile : xmlFiles ) { try ( InputStream is...
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
applyMetadataSources
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
protected Class[] getAnnotatedClasses() { return NO_CLASSES; }
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
getAnnotatedClasses
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
protected String[] getOrmXmlFiles() { return NO_MAPPINGS; }
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
getOrmXmlFiles
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
@Override public void injectTestModelScope(DomainModelScope modelScope) { this.modelScope = modelScope; }
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
injectTestModelScope
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
@Override public SessionFactoryImplementor produceSessionFactory(MetadataImplementor model) { log.trace( "Producing SessionFactory" ); final SessionFactoryBuilder sfBuilder = model.getSessionFactoryBuilder(); configure( sfBuilder ); final SessionFactoryImplementor factory = (SessionFactoryImplementor) sfBuilde...
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
produceSessionFactory
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
@Override public void injectSessionFactoryScope(SessionFactoryScope scope) { sessionFactoryScope = scope; }
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
injectSessionFactoryScope
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
@AfterEach public final void afterTest() { if ( isCleanupTestDataRequired() ) { cleanupTestData(); } }
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
afterTest
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
protected boolean isCleanupTestDataRequired() { return false; }
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
isCleanupTestDataRequired
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
protected void cleanupTestData() { inTransaction( session -> getMetadata().getEntityBindings().forEach( entityType -> session.createQuery( "delete from " + entityType.getEntityName() ).executeUpdate() ) ); }
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
cleanupTestData
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
protected void inTransaction(Consumer<SessionImplementor> action) { sessionFactoryScope().inTransaction( action ); }
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
inTransaction
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
protected <T> T fromTransaction(Function<SessionImplementor, T> action) { return sessionFactoryScope().fromTransaction( action ); }
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
fromTransaction
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
protected void inSession(Consumer<SessionImplementor> action){ sessionFactoryScope.inSession( action ); }
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
inSession
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
protected <T> T fromSession(Function<SessionImplementor, T> action){ return sessionFactoryScope.fromSession( action ); }
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
fromSession
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
protected Dialect getDialect(){ return DialectContext.getDialect(); }
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
getDialect
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
private static boolean isLob(SimpleValue value) { final String typeName = value.getTypeName(); if ( typeName != null ) { String significantTypeNamePart = typeName.substring( typeName.lastIndexOf( '.' ) + 1 ) .toLowerCase( Locale.ROOT ); switch ( significantTypeNamePart ) { case "blob": case "blob...
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
isLob
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
protected Future<?> executeAsync(Runnable callable) { return executorService.submit(callable); }
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
executeAsync
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
protected void executeSync(Runnable callable) { try { executeAsync( callable ).get(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } catch (ExecutionException e) { throw new RuntimeException( e.getCause() ); } }
Template (GoF pattern) based abstract class for tests bridging the legacy approach of SessionFactory building as a test fixture @author Steve Ebersole
executeSync
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
public static void doInHibernateSessionBuilder( Supplier<SessionBuilder> sessionBuilderSupplier, TransactionUtil.HibernateTransactionConsumer function) { Session session = null; Transaction txn = null; try { session = sessionBuilderSupplier.get().openSession(); function.beforeTransactionCompletion(); ...
Execute function in a Hibernate transaction without return value @param sessionBuilderSupplier SessionFactory supplier @param function function
doInHibernateSessionBuilder
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/BaseSessionFactoryFunctionalTest.java
Apache-2.0
public boolean apply(Dialect dialect) { return dialect.getSequenceSupport().supportsSequences(); }
Container class for different implementation of the {@link DialectFeatureCheck} interface. @author Hardy Ferentschik @author Steve Ebersole
apply
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
Apache-2.0
public boolean apply(Dialect dialect) { return dialect.supportsExpectedLobUsagePattern(); }
Container class for different implementation of the {@link DialectFeatureCheck} interface. @author Hardy Ferentschik @author Steve Ebersole
apply
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
Apache-2.0
public boolean apply(Dialect dialect) { return dialect.getNationalizationSupport() != NationalizationSupport.UNSUPPORTED; }
Does the database support nationalized data in any form
apply
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
Apache-2.0
public boolean apply(Dialect dialect) { return dialect.getNationalizationSupport() == NationalizationSupport.EXPLICIT; }
Does the database specifically support the explicit nationalized data types
apply
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
Apache-2.0
public boolean apply(Dialect dialect) { return dialect.useInputStreamToInsertBlob(); }
Does the database specifically support the explicit nationalized data types
apply
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
Apache-2.0
public boolean apply(Dialect dialect) { return dialect.getIdentityColumnSupport().supportsIdentityColumns(); }
Does the database specifically support the explicit nationalized data types
apply
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
Apache-2.0
public boolean apply(Dialect dialect) { return dialect.supportsColumnCheck(); }
Does the database specifically support the explicit nationalized data types
apply
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
Apache-2.0
public boolean apply(Dialect dialect) { return dialect.supportsNoColumnsInsert(); }
Does the database specifically support the explicit nationalized data types
apply
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
Apache-2.0
public boolean apply(Dialect dialect) { return dialect.supportsResultSetPositionQueryMethodsOnForwardOnlyCursor(); }
Does the database specifically support the explicit nationalized data types
apply
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
Apache-2.0
public boolean apply(Dialect dialect) { return dialect.supportsCascadeDelete(); }
Does the database specifically support the explicit nationalized data types
apply
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
Apache-2.0
public boolean apply(Dialect dialect) { return dialect.supportsCircularCascadeDeleteConstraints(); }
Does the database specifically support the explicit nationalized data types
apply
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
Apache-2.0
public boolean apply(Dialect dialect) { return dialect.supportsExpectedLobUsagePattern() && dialect.supportsUnboundedLobLocatorMaterialization(); }
Does the database specifically support the explicit nationalized data types
apply
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
Apache-2.0
public boolean apply(Dialect dialect) { return dialect.supportsSubselectAsInPredicateLHS(); }
Does the database specifically support the explicit nationalized data types
apply
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
Apache-2.0
public boolean apply(Dialect dialect) { return dialect.getLimitHandler().supportsLimit(); }
Does the database specifically support the explicit nationalized data types
apply
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
Apache-2.0
public boolean apply(Dialect dialect) { return dialect.getLimitHandler().supportsLimit() && dialect.getLimitHandler().supportsLimitOffset(); }
Does the database specifically support the explicit nationalized data types
apply
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
Apache-2.0
public boolean apply(Dialect dialect) { return dialect.hasSelfReferentialForeignKeyBug(); }
Does the database specifically support the explicit nationalized data types
apply
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
Apache-2.0
public boolean apply(Dialect dialect) { return dialect instanceof HANADialect || dialect instanceof CockroachDialect || dialect instanceof MySQLDialect || dialect instanceof PostgreSQLDialect; }
Does the database specifically support the explicit nationalized data types
apply
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
Apache-2.0
public boolean apply(Dialect dialect) { return !( dialect instanceof DB2Dialect || dialect instanceof DerbyDialect || dialect instanceof FirebirdDialect ); }
Does the database specifically support the explicit nationalized data types
apply
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
Apache-2.0
public boolean apply(Dialect dialect) { return dialect.doesReadCommittedCauseWritersToBlockReaders(); }
Does the database specifically support the explicit nationalized data types
apply
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
Apache-2.0