se.rupy.sprout
Class Sprout

java.lang.Object
  extended by Service
      extended by 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


Nested Class Summary
static class Sprout.Cache
           
static class Sprout.SQL
           
 
Field Summary
static java.lang.String ROOT
           
static Sprout.SQL SQL
           
 
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
 
Constructor Summary
Sprout()
           
 
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
 

Field Detail

ROOT

public static java.lang.String ROOT

SQL

public static Sprout.SQL SQL
Constructor Detail

Sprout

public Sprout()
Method Detail

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