} // End Function ReplaceOdbcFunctions public static SqlFactory CreateInstance <T>(string cs) where T : System.Data.Common.DbProviderFactory { AnyFactory <T> fac = System.Activator.CreateInstance <AnyFactory <T> >(); return(fac); }
/// <summary> Get a named second-level cache region</summary> public ICache GetSecondLevelCacheRegion(string regionName) { // assumption is that all session factories are configured the same way, // so it doesn't matter which session factory answers this question return(AnyFactory.GetSecondLevelCacheRegion(regionName)); }
public IEntityPersister TryGetEntityPersister(string entityName) { // assumption is that all session factories are configured the same way, // so it doesn't matter which session factory answers this question return(AnyFactory.TryGetEntityPersister(entityName)); }
ISet <string> ISessionFactoryImplementor.GetCollectionRolesByEntityParticipant(string entityName) { // assumption is that all session factories are configured the same way, // so it doesn't matter which session factory answers this question return(AnyFactory.GetCollectionRolesByEntityParticipant(entityName)); }
public IIdentifierGenerator GetIdentifierGenerator(string rootEntityName) { // since all configs are same, we return any return(AnyFactory.GetIdentifierGenerator(rootEntityName)); }
public ResultSetMappingDefinition GetResultSetMapping(string resultSetRef) { return(AnyFactory.GetResultSetMapping(resultSetRef)); }
/// <summary> /// Get the <c>ClassMetadata</c> associated with the given entity class /// </summary> /// <param name="persistentType"></param> /// <returns></returns> public IClassMetadata GetClassMetadata(System.Type persistentType) { // assumption is that all session factories are configured the same way, // so it doesn't matter which session factory answers this question return(AnyFactory.GetClassMetadata(persistentType)); }
public IType GetReferencedPropertyType(string className, string propertyName) { // assumption is that all session factories are configured the same way, // so it doesn't matter which session factory answers this question return(AnyFactory.GetReferencedPropertyType(className, propertyName)); }
/// <summary> Get the return aliases of a query</summary> public string[] GetReturnAliases(string queryString) { // assumption is that all session factories are configured the same way, // so it doesn't matter which session factory answers this question return(AnyFactory.GetReturnAliases(queryString)); }
/// <summary> /// Get the return types of a query /// </summary> /// <param name="queryString"></param> /// <returns></returns> public IType[] GetReturnTypes(string queryString) { return(AnyFactory.GetReturnTypes(queryString)); }
/// <summary> /// Get the persister object for a collection role /// </summary> /// <param name="role"></param> /// <returns></returns> public ICollectionPersister GetCollectionPersister(string role) { // assumption is that all session factories are configured the same way, // so it doesn't matter which session factory answers this question return(AnyFactory.GetCollectionPersister(role)); }
IDictionary <string, ICache> ISessionFactoryImplementor.GetAllSecondLevelCacheRegions() { return(AnyFactory.GetAllSecondLevelCacheRegions()); }
/// <summary> /// Obtain the definition of a filter by name. /// </summary> /// <param name="filterName">The name of the filter for which to obtain the definition.</param> /// <return>The filter definition.</return> public FilterDefinition GetFilterDefinition(string filterName) { // assumption is that all session factories are configured the same way, // so it doesn't matter which session factory answers this question return(AnyFactory.GetFilterDefinition(filterName)); }
IDictionary <string, ICollectionMetadata> ISessionFactory.GetAllCollectionMetadata() { // assumption is that all session factories are configured the same way, // so it doesn't matter which session factory answers this question return(AnyFactory.GetAllCollectionMetadata()); }
public IClassMetadata GetClassMetadata(string entityName) { // assumption is that all session factories are configured the same way, // so it doesn't matter which session factory answers this question return(AnyFactory.GetClassMetadata(entityName)); }
public NamedSQLQueryDefinition GetNamedSQLQuery(string queryName) { // assumption is that all session factories are configured the same way, // so it doesn't matter which session factory answers this question return(AnyFactory.GetNamedSQLQuery(queryName)); }
public IType GetIdentifierType(string className) { // assumption is that all session factories are configured the same way, // so it doesn't matter which session factory answers this question return(AnyFactory.GetIdentifierType(className)); }
/// <summary> /// Get the names of all persistent classes that implement/extend the given interface/class /// </summary> /// <param name="className"></param> /// <returns></returns> public string[] GetImplementors(string className) { // assumption is that all session factories are configured the same way, // so it doesn't matter which session factory answers this question return(AnyFactory.GetImplementors(className)); }
public bool HasNonIdentifierPropertyNamedId(string className) { // assumption is that all session factories are configured the same way, // so it doesn't matter which session factory answers this question return(AnyFactory.HasNonIdentifierPropertyNamedId(className)); }
/// <summary> /// Get a class name, using query language imports /// </summary> /// <param name="name"></param> /// <returns></returns> public string GetImportedClassName(string name) { // assumption is that all session factories are configured the same way, // so it doesn't matter which session factory answers this question return(AnyFactory.GetImportedClassName(name)); }