|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.AbstractMap
java.util.HashMap
velosurf.context.DBReference
A context wrapper for the main database connection object.
The "$db" context variable is assigned a new instance of this class at each velocity parsing.
| Nested Class Summary |
| Nested classes inherited from class java.util.HashMap |
|
| Nested classes inherited from class java.util.AbstractMap |
|
| Field Summary | |
protected java.util.Map |
mCache
a cache used by the generic getter - it's purpose is to avoid the creation of several attribute references for the same multivalued attribute. |
protected DBConnection |
mDB
the wrapped database connection |
protected java.util.Map |
mExternalParams
The map of external query parameters used by children attributes |
| Fields inherited from class java.util.HashMap |
|
| Fields inherited from class java.util.AbstractMap |
|
| Constructor Summary | |
protected |
DBReference()
Default constructor for use by derived classes |
|
DBReference(DBConnection inDB)
Constructs a new reference |
| Method Summary | |
java.lang.String |
deobfuscate(java.lang.Object value)
de-obfuscate the given value |
java.lang.Object |
get(java.lang.Object inKey)
Generic getter, used to access entities or root attributes by their name. |
java.lang.String |
getError()
Get the last error message, or null if none occured. |
(package private) java.lang.String |
getSchema()
get the schema |
protected void |
init(DBConnection inDB)
protected initialization method |
java.lang.String |
obfuscate(java.lang.Object value)
obfuscate the given value |
java.lang.Object |
put(java.lang.Object inKey,
java.lang.Object inValue)
Generic setter used to set external params for children attributes |
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
| Field Detail |
protected DBConnection mDB
protected java.util.Map mCache
protected java.util.Map mExternalParams
| Constructor Detail |
protected DBReference()
public DBReference(DBConnection inDB)
inDB - the wrapped database connection| Method Detail |
protected void init(DBConnection inDB)
inDB - database connectionpublic java.lang.String getError()
public java.lang.Object get(java.lang.Object inKey)
For attributes, the return value depends upon the type of the attribute :
get in interface DataAccessorinKey - the name of the desired entity or root attribute.
public java.lang.Object put(java.lang.Object inKey,
java.lang.Object inValue)
put in interface java.util.MapinKey - name of the external parameterinValue - value given to the external parameter
java.lang.String getSchema()
public java.lang.String obfuscate(java.lang.Object value)
value - value to obfuscate
public java.lang.String deobfuscate(java.lang.Object value)
value - value to de-obfuscate
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||