blob: 024461b9fced8f6c1ced44707a817960c4fac449 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009, 2012 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
* which accompanies this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Oracle - initial API and implementation
******************************************************************************/
package org.eclipse.persistence.tools.db.driver;
import org.eclipse.persistence.tools.gen.db.Database;
/**
*
* @version 2.6
*/
@SuppressWarnings("nls")
class Informix extends AbstractWorkbenchDriverAdapter {
Informix(Database database) {
super(database);
}
@Override
CatalogStrategy buildCatalogStrategy() {
// unverified...
// return new UnknownCatalogStrategy(this.database.getDTPDatabase());
throw new UnsupportedOperationException("Informix not yet supported!");
}
@Override
FoldingStrategy buildFoldingStrategy() {
return LowerCaseFoldingStrategy.instance();
}
@Override
char[] getExtendedRegularNameStartCharacters() {
return EXTENDED_REGULAR_NAME_START_CHARACTERS;
}
private static final char[] EXTENDED_REGULAR_NAME_START_CHARACTERS = new char[] { '_' };
@Override
char[] getExtendedRegularNamePartCharacters() {
return EXTENDED_REGULAR_NAME_PART_CHARACTERS;
}
private static final char[] EXTENDED_REGULAR_NAME_PART_CHARACTERS = new char[] { '$' };
// ********** factory **********
static class Factory implements WorkbenchDriverAdapterFactory {
private static final String[] VENDORS = {
"Informix"
};
@Override
public String[] getSupportedVendors() {
return VENDORS;
}
@Override
public WorkbenchDriverAdapter buildAdapter(Database database) {
return new Informix(database);
}
}
}