All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lucee.runtime.orm.ORMConfiguration Maven / Gradle / Ivy

There is a newer version: 6.2.0.164-RC
Show newest version
/**
 *
 * Copyright (c) 2014, the Railo Company Ltd. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either 
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public 
 * License along with this library.  If not, see .
 * 
 **/
package lucee.runtime.orm;

import lucee.commons.io.res.Resource;

public interface ORMConfiguration {
	public static final int DBCREATE_NONE = 0;
	public static final int DBCREATE_UPDATE = 1;
	public static final int DBCREATE_DROP_CREATE = 2;
	// FUTURE enable
	// public static final int DBCREATE_CREATE = 3;
	// public static final int DBCREATE_CREATE_DROP = 4;
	// public static final int DBCREATE_VALIDATE = 5;

	public String hash();

	/**
	 * @return the autogenmap
	 */
	public boolean autogenmap();

	/**
	 * @return the catalog
	 */
	public String getCatalog();

	/**
	 * @return the cfcLocation
	 */
	public Resource[] getCfcLocations();

	public boolean isDefaultCfcLocation();

	/**
	 * @return the dbCreate
	 */
	public int getDbCreate();

	/**
	 * @return the dialect
	 */
	public String getDialect();

	/**
	 * @return the eventHandling
	 */
	public boolean eventHandling();

	public String eventHandler();

	public String namingStrategy();

	/**
	 * @return the flushAtRequestEnd
	 */
	public boolean flushAtRequestEnd();

	/**
	 * @return the logSQL
	 */
	public boolean logSQL();

	/**
	 * @return the saveMapping
	 */
	public boolean saveMapping();

	/**
	 * @return the schema
	 */
	public String getSchema();

	/**
	 * @return the secondaryCacheEnabled
	 */
	public boolean secondaryCacheEnabled();

	/**
	 * @return the sqlScript
	 */
	public Resource getSqlScript();

	/**
	 * @return the useDBForMapping
	 */
	public boolean useDBForMapping();

	/**
	 * @return the cacheConfig
	 */
	public Resource getCacheConfig();

	/**
	 * @return the cacheProvider
	 */
	public String getCacheProvider();

	/**
	 * @return the ormConfig
	 */
	public Resource getOrmConfig();

	public boolean skipCFCWithError();

	public boolean autoManageSession();

	public Object toStruct();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy