blob: 851a6d63ebc8a4658c0bd550f3b47e7e25c8ef06 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0, which accompanies this distribution
* and is available at http://www.eclipse.org/legal/epl-v10.html.
*
* Contributors:
* Oracle - initial API and implementation
******************************************************************************/
package org.eclipse.jpt.jpa.db.internal.vendor;
class Informix
extends AbstractVendor
{
// singleton
private static final Vendor INSTANCE = new Informix();
/**
* Return the singleton.
*/
static Vendor instance() {
return INSTANCE;
}
/**
* Ensure single instance.
*/
private Informix() {
super();
}
@Override
public String getDTPVendorName() {
return "Informix"; //$NON-NLS-1$
}
@Override
CatalogStrategy getCatalogStrategy() {
return UnknownCatalogStrategy.instance(); // not verified yet...
}
@Override
FoldingStrategy getFoldingStrategy() {
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[] { '$' };
}