/*
 * Copyright 2002-2005 Uwyn bvba/sprl <info[remove] at uwyn dot com>
 * Distributed under the terms of the GNU Lesser General Public
 * License, v2.1 or later
 *
 * $Id: org_apache_derby_jdbc_EmbeddedDriver.java 1322 2005-02-14 11:16:07Z gbevin $
 */
package com.uwyn.drone.modules.faqmanagement.databasedrivers;

import com.uwyn.drone.modules.faqmanagement.FaqData;
import com.uwyn.rife.database.Datasource;
import com.uwyn.rife.database.queries.Insert;

public class org_apache_derby_jdbc_EmbeddedDriver extends generic_nosequence
{
	public org_apache_derby_jdbc_EmbeddedDriver(Datasource datasource)
	{
		super(datasource);

		mCreateTableFaq = mCreateTableFaq
			.customAttribute("id", "GENERATED ALWAYS AS IDENTITY");

		mAddFaq = new Insert(getDatasource())
			.into("faq")
			.fieldsParametersExcluded(FaqData.class, new String[] {"id"})
			.fieldParameter("botname");
	}
}
