se.rupy.sprout
Class Sprout
java.lang.Object
Service
se.rupy.sprout.Sprout
- All Implemented Interfaces:
- Type
- Direct Known Subclasses:
- Comment.Post, Comment.ShowHide, Label, Upload
public abstract class Sprout
- extends Service
- implements Type
| Fields inherited from interface se.rupy.sprout.Type |
ALL, ARTICLE, ARTICLE_BODY, ARTICLE_RATING, ARTICLE_READ, ARTICLE_TITLE, ARTICLE_TYPE, COMMENT, COMMENT_BODY, COMMENT_IP, COMMENT_STATE, FILE, FILE_NAME, FILE_TYPE, GROUP, GROUP_NAME, LABEL, LABEL_NAME, PING, PING_STATE, PING_TITLE, PING_URL, USER, USER_BIRTHDAY, USER_COUNTRY, USER_FIRST_NAME, USER_GENDER, USER_IP, USER_KEY, USER_LAST_NAME, USER_MAIL, USER_NAME, USER_PASS, USER_SHOW, USER_STATE |
|
Method Summary |
static java.lang.String |
clean(java.lang.String line)
|
static Connection |
connection(boolean transaction)
|
static void |
find(java.lang.String sql)
|
static void |
find(java.lang.String sql,
Connection connection)
|
static java.util.LinkedList |
from(java.lang.String name,
java.lang.String sql)
|
static Data |
generate(short type,
int length)
|
static java.lang.String |
i18n(java.lang.String text)
|
static java.lang.String |
language()
|
static void |
redirect(Event event)
|
static void |
redirect(Event event,
java.lang.String path)
|
static void |
redirect(Event event,
java.lang.String path,
boolean forward)
|
static boolean |
translate()
|
static boolean |
update(byte type,
java.lang.Object o)
|
static boolean |
update(byte type,
java.lang.Object o,
Connection connection)
|
static long |
value(java.lang.String sql)
|
static java.util.LinkedList |
where(java.lang.String name,
java.lang.String sql)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROOT
public static java.lang.String ROOT
SQL
public static Sprout.SQL SQL
Sprout
public Sprout()
i18n
public static java.lang.String i18n(java.lang.String text)
translate
public static boolean translate()
language
public static java.lang.String language()
clean
public static java.lang.String clean(java.lang.String line)
generate
public static Data generate(short type,
int length)
throws java.lang.Exception
- Throws:
java.lang.Exception
update
public static boolean update(byte type,
java.lang.Object o)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
update
public static boolean update(byte type,
java.lang.Object o,
Connection connection)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
from
public static java.util.LinkedList from(java.lang.String name,
java.lang.String sql)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
where
public static java.util.LinkedList where(java.lang.String name,
java.lang.String sql)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
value
public static long value(java.lang.String sql)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
find
public static void find(java.lang.String sql)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
find
public static void find(java.lang.String sql,
Connection connection)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
connection
public static Connection connection(boolean transaction)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
redirect
public static void redirect(Event event)
throws java.io.IOException,
Event
- Throws:
java.io.IOException
Event
redirect
public static void redirect(Event event,
java.lang.String path)
throws java.io.IOException,
Event
- Throws:
java.io.IOException
Event
redirect
public static void redirect(Event event,
java.lang.String path,
boolean forward)
throws java.io.IOException,
Event
- Throws:
java.io.IOException
Event