class AbstractDatabaseNamingConvention implements DatabaseNamingConvention {

    private static final String DEFAULT_DELIMITER = ".";
    private static final String DEFAULT_QUOTE = "'";

    @Override
    public String fullNameOf(String schemaName, String tableName, String columnName) {
        return fullNameOf(schemaName, tableName) + DEFAULT_DELIMITER
                + encloseField(columnName);
    }

    @Override
    public String fullNameOf(String schemaName, String tableName) {
        return encloseField(schemaName) + DEFAULT_DELIMITER
                + encloseField(tableName);
    }

    @Override
    public String quoteField(String field) {
        return getFieldQuoteStart() + field + getFieldQuoteEnd();
    }

    @Override
    public String encloseField(String field) {
        return getFieldEncloserStart() + field + getFieldEncloserEnd();
    }

    /**
     * Returns the non-null field quote start string. The field quote start
     * string precedes a database value used in among other things comparisons.
     *
     * @return the non-null field quote start string
     * @see #getFieldQuoteEnd()
     */
    protected String getFieldQuoteStart() {
        return DEFAULT_QUOTE;
    }

    /**
     * Returns the non-null field quote end string. The field quote end string
     * precedes a database value used in among other things comparisons.
     *
     * @return the non-null field quote end string
     * @see #getFieldQuoteEnd()
     */
    protected String getFieldQuoteEnd() {
        return DEFAULT_QUOTE;
    }
    
    /**
     * Returns the non-null field encloser start string. The field encloser
     * start string precedes a database entity name like a table or schema name
     * when quoted. Quoted names are used to avoid that entity names collide
     * with reserved keywords like "key" or "user". So a table named "user" in
     * the "key" schema can be quoted to "key"."user". Examples of values are
     * '`' for MySQL or '"' for Oracle.
     *
     * @return the non-null field encloser start string
     *
     * @see #getFieldEncloserStart(boolean)
     * @see #getFieldEncloserEnd()
     * @see #getFieldEncloserEnd(boolean)
     */
    protected abstract String getFieldEncloserStart();

    /**
     * Returns the non-null field encloser start string. The method parameter
     * denotes if the field encloser is placed within quotes or not. For example
     * for Oracle, since the field encloser is the '"' character itself, it
     * needs to be escaped if within quotes.
     *
     * @param isWithinQuotes if the field encloser is within quotes
     * @return Returns the non-null field encloser start string
     *
     * @see #getFieldEncloserStart()
     */
    protected String getFieldEncloserStart(boolean isWithinQuotes) {
        return escapeIfQuote(getFieldEncloserStart(), isWithinQuotes);
    }

    /**
     * Returns the non-null field encloser end string. The field encloser end
     * string follows a database entity name like a table or schema name when
     * quoted. Quoted names are used to avoid that entity names collide with
     * reserved keywords like "key" or "user". So a table named "user" in the
     * "key" schema can be quoted to "key"."user". Examples of values are '`'
     * for MySQL or '"' for Oracle.
     *
     * @return the non-null field encloser end string
     *
     * @see #getFieldEncloserStart(boolean)
     * @see #getFieldEncloserEnd()
     * @see #getFieldEncloserEnd(boolean)
     */
    protected abstract String getFieldEncloserEnd();

    /**
     * Returns the non-null field encloser end string. The method parameter
     * denotes if the field encloser is placed within quotes or not. For example
     * for Oracle, since the field encloser is the '"' character itself, it
     * needs to be escaped if within quotes.
     *
     * @param isWithinQuotes if the field encloser is within quotes
     * @return Returns the non-null field encloser start string
     *
     * @see #getFieldEncloserEnd()
     */
    protected String getFieldEncloserEnd(boolean isWithinQuotes) {
        return escapeIfQuote(getFieldEncloserEnd(), isWithinQuotes);
    }

    private String escapeIfQuote(String item, boolean isWithinQuotes) {<FILL_FUNCTION_BODY>}
}

        if (isWithinQuotes && "\"".equals(item)) {
            return "\\" + item;
        } else {
            return item;
        }
    
<no_super_class>