|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.starhope.appius.util.ManagedReferenceHolder
org.starhope.appius.sql.SQLPeerDatum
org.starhope.appius.sql.SQLPeerEnum
org.starhope.appius.user.AvatarClass
public class AvatarClass
WRITEME: The documentation for this type (AvatarClass) is incomplete. (brpocock, Jul 8, 2009)
Field Summary | |
---|---|
private static HashMap<Integer,Boolean> |
canColor
|
private static HashMap<Integer,Long> |
defaultBaseColor
|
private static HashMap<Integer,Long> |
defaultExtraColor
|
private static HashMap<Integer,String> |
defaultPattern
|
private static HashMap<Integer,Long> |
defaultPatternColor
|
private static HashMap<Integer,String> |
filenames
|
private static HashMap<Integer,Boolean> |
forFree
|
private static HashMap<Integer,Boolean> |
forVIT
|
Fields inherited from class org.starhope.appius.sql.SQLPeerEnum |
---|
enumeration, instance |
Constructor Summary | |
---|---|
protected |
AvatarClass(int id)
|
|
AvatarClass(String avatarTitle)
|
Method Summary | |
---|---|
protected void |
cache(ResultSet set)
This is an overriding method. |
boolean |
canColor()
WRITEME: document this method (brpocock, Sep 2, 2009) |
void |
flush()
This is an overriding method. |
static AvatarClass |
getByID(int newID)
WRITEME: document this method (brpocock, Aug 27, 2009) |
Colour |
getDefaultBaseColor()
|
Colour |
getDefaultExtraColor()
|
ClothingItem |
getDefaultPattern()
|
Colour |
getDefaultPatternColor()
|
String |
getFilename()
|
protected PreparedStatement |
getStatement(Connection connection)
This is an overriding method. |
boolean |
isForFree()
|
boolean |
isForVIT()
|
protected void |
set(ResultSet rs)
This is an overriding method. |
org.json.JSONObject |
toJSON()
This is an overriding method. |
String |
toString()
String representation is currently the JSON data |
Methods inherited from class org.starhope.appius.sql.SQLPeerEnum |
---|
getCacheUniqueID, getID, getID, getString, getString, prepCache |
Methods inherited from class org.starhope.appius.sql.SQLPeerDatum |
---|
changed, findInCache, get, prepare, prepare, saveInCache, set |
Methods inherited from class org.starhope.appius.util.ManagedReferenceHolder |
---|
deref, setRef |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final HashMap<Integer,Boolean> canColor
private static final HashMap<Integer,Long> defaultBaseColor
private static final HashMap<Integer,Long> defaultExtraColor
private static final HashMap<Integer,String> defaultPattern
private static final HashMap<Integer,Long> defaultPatternColor
private static final HashMap<Integer,String> filenames
private static final HashMap<Integer,Boolean> forFree
private static final HashMap<Integer,Boolean> forVIT
Constructor Detail |
---|
protected AvatarClass(int id)
id
- Instantiate the AvatarClass represented by this ID
number.public AvatarClass(String avatarTitle)
avatarTitle
- Method Detail |
---|
public static AvatarClass getByID(int newID)
newID
-
protected void cache(ResultSet set) throws SQLException
cache
in class SQLPeerEnum
set
- The ResultSet containing this AvatarClass object's
values
SQLException
- if the database has sadness upon usSQLPeerEnum.cache(java.sql.ResultSet)
public boolean canColor()
public void flush()
flush
in class SQLPeerDatum
SQLPeerDatum.flush()
public Colour getDefaultBaseColor()
public Colour getDefaultExtraColor()
public ClothingItem getDefaultPattern()
public Colour getDefaultPatternColor()
public String getFilename()
protected PreparedStatement getStatement(Connection connection)
getStatement
in class SQLPeerEnum
SQLPeerEnum.getStatement(java.sql.Connection)
public boolean isForFree()
public boolean isForVIT()
protected void set(ResultSet rs) throws SQLException
set
in class SQLPeerDatum
SQLException
- if the database fails somehowSQLPeerDatum.set(java.sql.ResultSet)
public org.json.JSONObject toJSON()
SQLPeerEnum
toJSON
in class SQLPeerEnum
SQLPeerDatum.toJSON()
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |