|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.brains2b.sql.SQLHelper
public final class SQLHelper
[Short description] [Long description]
Constructor Summary | |
---|---|
SQLHelper()
|
Method Summary | |
---|---|
static java.lang.String |
encode(java.lang.String s)
encode a String so it can be inserted into an SQL database by replacing every quote with two quotes |
static java.lang.String |
limitIdentifier(java.lang.String s,
int length)
limit the identifier given by String to the length given. |
static java.lang.String |
stripQuotes(java.lang.String s)
strip quotes from the beginning and end of a String from an SQL database |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SQLHelper()
Method Detail |
---|
public static final java.lang.String encode(java.lang.String s)
s
- String, the String to encode
public static final java.lang.String stripQuotes(java.lang.String s)
s
- String, the String to strip
public static final java.lang.String limitIdentifier(java.lang.String s, int length)
This is accomplished by removing as much non-vowels as needed from the String
s
- String, the identifier to limitlength
- int, the length to limit the identifier to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |