se.rupy.content
Class Article

java.lang.Object
  extended by se.rupy.memory.NodeBean
      extended by se.rupy.sprout.Node
          extended by se.rupy.content.Article
All Implemented Interfaces:
Type

public class Article
extends Node


Nested Class Summary
static class Article.Delete
           
static class Article.Edit
           
 class Article.Label
           
static class Article.Publish
           
static class Article.Widget
           
 
Field Summary
static byte ADMIN
           
static java.util.HashMap cache1
           
static java.util.HashMap cache2
           
static java.util.HashMap cache3
           
static int CHARACTER_WIDTH
           
static int COLUMN_WIDTH
           
 java.util.LinkedList columns
           
 int comments
           
static long MAX
           
static int MAX_POST_SIZE
           
static java.awt.FontMetrics metric
           
static byte NO
           
static int PAGE
           
 int pings
           
static byte USER
           
static byte WILDCARD
           
 
Fields inherited from class se.rupy.sprout.Node
cache, CHILD, META, PARENT, POLL
 
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_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
Article()
           
 
Method Summary
 java.util.LinkedList columnize()
           
 void count()
           
static Article find(long id)
           
static Article get(java.lang.Object key)
           
static Sprout.Cache get(java.lang.String type, int start, int limit)
           
 void invalidate()
           
static long max(short type)
           
static long max(java.lang.String query)
           
static java.util.LinkedList most(short type, int start, int limit)
           
static java.util.LinkedList most(short type, int start, int limit, java.lang.String order)
           
 int permit(java.lang.Object key)
           
static java.util.LinkedList query(java.lang.String query, int start, int limit)
           
static void reset()
           
 
Methods inherited from class se.rupy.sprout.Node
add, add, add, child, child, child, child, count, date, delete, encoded, fill, link, meta, meta, parent, parent, parent, path, poll, poll, query, query, query, remove, remove, remove, safe, time, toString, toXML, update
 
Methods inherited from class se.rupy.memory.NodeBean
copy, equals, getDate, getId, getType, key, read, setDate, setId, setType, synapse, write
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PAGE

public static final int PAGE
See Also:
Constant Field Values

NO

public static final byte NO
See Also:
Constant Field Values

USER

public static final byte USER
See Also:
Constant Field Values

ADMIN

public static final byte ADMIN
See Also:
Constant Field Values

WILDCARD

public static final byte WILDCARD
See Also:
Constant Field Values

MAX_POST_SIZE

public static final int MAX_POST_SIZE
See Also:
Constant Field Values

MAX

public static long MAX

cache1

public static java.util.HashMap cache1

cache2

public static java.util.HashMap cache2

cache3

public static java.util.HashMap cache3

metric

public static java.awt.FontMetrics metric

columns

public java.util.LinkedList columns

comments

public int comments

pings

public int pings

COLUMN_WIDTH

public static int COLUMN_WIDTH

CHARACTER_WIDTH

public static int CHARACTER_WIDTH
Constructor Detail

Article

public Article()
Method Detail

permit

public int permit(java.lang.Object key)
           throws java.sql.SQLException
Throws:
java.sql.SQLException

max

public static long max(short type)
                throws java.lang.Exception
Throws:
java.lang.Exception

most

public static java.util.LinkedList most(short type,
                                        int start,
                                        int limit)
                                 throws java.sql.SQLException
Throws:
java.sql.SQLException

most

public static java.util.LinkedList most(short type,
                                        int start,
                                        int limit,
                                        java.lang.String order)
                                 throws java.sql.SQLException
Throws:
java.sql.SQLException

max

public static long max(java.lang.String query)
                throws java.lang.Exception
Throws:
java.lang.Exception

query

public static java.util.LinkedList query(java.lang.String query,
                                         int start,
                                         int limit)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

reset

public static void reset()
                  throws java.sql.SQLException
Throws:
java.sql.SQLException

count

public void count()
           throws java.sql.SQLException
Throws:
java.sql.SQLException

find

public static Article find(long id)
                    throws java.sql.SQLException
Throws:
java.sql.SQLException

get

public static Sprout.Cache get(java.lang.String type,
                               int start,
                               int limit)
                        throws java.sql.SQLException
Throws:
java.sql.SQLException

get

public static Article get(java.lang.Object key)
                   throws java.sql.SQLException
Throws:
java.sql.SQLException

invalidate

public void invalidate()

columnize

public java.util.LinkedList columnize()