001    package railo.runtime.orm;
002    
003    import railo.commons.io.res.Resource;
004    
005    public interface ORMConfiguration {
006            public static final int DBCREATE_NONE=0;
007            public static final int DBCREATE_UPDATE=1;
008            public static final int DBCREATE_DROP_CREATE=2;
009    
010    
011            public String hash();
012            
013            /**
014             * @return the autogenmap
015             */
016            public boolean autogenmap();
017    
018            /**
019             * @return the catalog
020             */
021            public String getCatalog();
022    
023            /**
024             * @return the cfcLocation
025             */
026            public Resource[] getCfcLocations();
027            
028            public boolean isDefaultCfcLocation();
029    
030            /**
031             * @return the dbCreate
032             */
033            public int getDbCreate();
034    
035            /**
036             * @return the dialect
037             */
038            public String getDialect();
039    
040            /**
041             * @return the eventHandling
042             */
043            public boolean eventHandling();
044    
045            public String eventHandler();
046    
047            public String namingStrategy();
048            
049            /**
050             * @return the flushAtRequestEnd
051             */
052            public boolean flushAtRequestEnd();
053    
054            /**
055             * @return the logSQL
056             */
057            public boolean logSQL();
058    
059            /**
060             * @return the saveMapping
061             */
062            public boolean saveMapping();
063    
064            /**
065             * @return the schema
066             */
067            public String getSchema();
068    
069            /**
070             * @return the secondaryCacheEnabled
071             */
072            public boolean secondaryCacheEnabled();
073    
074            /**
075             * @return the sqlScript
076             */
077            public Resource getSqlScript();
078    
079            /**
080             * @return the useDBForMapping
081             */
082            public boolean useDBForMapping();
083    
084            /**
085             * @return the cacheConfig
086             */
087            public Resource getCacheConfig();
088    
089            /**
090             * @return the cacheProvider
091             */
092            public String getCacheProvider();
093    
094            /**
095             * @return the ormConfig
096             */
097            public Resource getOrmConfig();
098    
099            public boolean skipCFCWithError();
100            public boolean autoManageSession();
101    
102    
103    
104    
105            public Object toStruct();
106    
107    
108            
109    }
110    
111