Back to project page adme.
The source code is released under:
Apache License
If you think the Android project adme listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.danielesegato.adme.utils; // www . ja v a 2 s . c o m /** * Helper for SQL String manipulation */ public class SQLStringHelper { /** * Utility method to add to the sb StringBuilder an escaped entity, field for SQLite (encapsulate it in single quote) * * @param sb the StringBuilder * @param entityOrField the name of the entity or field * @return the quoted entity/field */ public static StringBuilder appendEscapedEntityOrField(final StringBuilder sb, final String entityOrField) { return sb.append('\'').append(entityOrField).append('\''); } }