All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jaskell.sql.Name Maven / Gradle / Ivy

Go to download

This is a utils library for java 8 project. It include parsec combinators and sql generators library.

There is a newer version: 2.9.2
Show newest version
package jaskell.sql;

import jaskell.script.Directive;

import java.util.ArrayList;
import java.util.List;

public class Name extends Literal implements CouldAlias {

    protected Name(){}

    public Name(String name) {
        _literal = name;
    }

    public String name(){
        return _literal;
    }

    protected void name(String n){
        _literal = n;
    }

    public String escaped() {
        return _literal.replace("\"", "\\\"");
    }

    public String escaped(Character c) {
        return _literal.replace(c.toString(), "\\"+c.toString());
    }

    public String quotedName() {
        return String.format("\"%s\"", _literal.replace("\"", "\\\""));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy