001package org.itsallcode.jdbc.identifier;
002
003/**
004 * Represents a database identifier, e.g. of a table or a schema.
005 */
006public interface Identifier {
007    /**
008     * Put the name in quotes.
009     * 
010     * @return quoted name
011     */
012    String quote();
013
014    @Override
015    String toString();
016
017    /**
018     * Create a new {@link SimpleIdentifier}.
019     * 
020     * @param id the id
021     * @return a new {@link SimpleIdentifier}
022     */
023    static Identifier simple(final String id) {
024        return SimpleIdentifier.of(id);
025    }
026}