public class Storable
extends org.mozilla.javascript.ScriptableObject
| Constructor and Description |
|---|
Storable() |
| Modifier and Type | Method and Description |
|---|---|
static org.mozilla.javascript.Scriptable |
defineEntity(org.mozilla.javascript.Scriptable store,
String type,
Object mapping) |
void |
delete(String name) |
protected Object |
equivalentValues(Object value)
Custom == operator.
|
Object |
get(String name,
org.mozilla.javascript.Scriptable start) |
String |
getClassName() |
Object |
getId() |
Object[] |
getIds() |
Object |
getKey() |
String |
getType() |
boolean |
has(String name,
org.mozilla.javascript.Scriptable start) |
void |
jsremove(Object transaction) |
void |
put(String name,
org.mozilla.javascript.Scriptable start,
Object value) |
void |
save(Object transaction) |
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, hasInstance, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size@JSStaticFunction
public static org.mozilla.javascript.Scriptable defineEntity(org.mozilla.javascript.Scriptable store,
String type,
Object mapping)
throws NoSuchMethodException
NoSuchMethodExceptionpublic String getClassName()
getClassName in interface org.mozilla.javascript.ScriptablegetClassName in class org.mozilla.javascript.ScriptableObjectprotected Object equivalentValues(Object value)
Scriptable.NOT_FOUND if this object does not
have custom equality operator for the given value,
Boolean.TRUE if this object is equivalent to value,
Boolean.FALSE if this object is not equivalent to
value.
The default implementation returns Boolean.TRUE
if this == value or Scriptable.NOT_FOUND otherwise.
It indicates that by default custom equality is available only if
value is this in which case true is returned.equivalentValues in class org.mozilla.javascript.ScriptableObject@JSFunction public void save(Object transaction)
@JSFunction(value="remove") public void jsremove(Object transaction)
@JSGetter(value="_key") public Object getKey()
@JSGetter(value="_id") public Object getId()
public boolean has(String name, org.mozilla.javascript.Scriptable start)
has in interface org.mozilla.javascript.Scriptablehas in class org.mozilla.javascript.ScriptableObjectpublic Object get(String name, org.mozilla.javascript.Scriptable start)
get in interface org.mozilla.javascript.Scriptableget in class org.mozilla.javascript.ScriptableObjectpublic void put(String name, org.mozilla.javascript.Scriptable start, Object value)
put in interface org.mozilla.javascript.Scriptableput in class org.mozilla.javascript.ScriptableObjectpublic void delete(String name)
delete in interface org.mozilla.javascript.Scriptabledelete in class org.mozilla.javascript.ScriptableObjectpublic Object[] getIds()
getIds in interface org.mozilla.javascript.ScriptablegetIds in class org.mozilla.javascript.ScriptableObjectpublic String getType()
Copyright © 2016. All rights reserved.