|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.schematic.Schematic
public class Schematic
Nested Class Summary | |
---|---|
static interface |
Schematic.ContentTypes
|
protected static class |
Schematic.DocumentChanges
|
protected static class |
Schematic.EditorImpl
|
Field Summary | |
---|---|
protected static DocumentValueFactory |
DEFAULT_FACTORY
|
Constructor Summary | |
---|---|
Schematic()
|
Method Summary | |
---|---|
static SchemaLibrary |
createSchemaLibrary()
Create an in-memory schema library. |
static SchemaLibrary |
createSchemaLibrary(String name)
Create an in-memory schema library. |
static Editor |
editDocument(Document document,
boolean clone)
Obtain an editor for the supplied document. |
static org.infinispan.marshall.AdvancedExternalizer<Object>[] |
externalizers()
Get the set of Externalizer implementations that are used by Schematic. |
static Set<? extends org.infinispan.marshall.AdvancedExternalizer<?>> |
externalizerSet()
Get the complete set of AdvancedExternalizer implementations. |
static SchematicDb |
get(org.infinispan.manager.CacheContainer cacheContainer,
String cacheName)
Get the SchematicDb instance given the cache name and container. |
static EditableArray |
newArray()
Create a new, empty editable array that can be used as a new array value in other documents. |
static EditableArray |
newArray(Collection<?> values)
Create a new editable array that can be used as a new array value in other documents. |
static EditableArray |
newArray(int initialCapacity)
Create a new, empty editable array that can be used as a new array value in other documents. |
static EditableArray |
newArray(Object... values)
Create a new editable array that can be used as a new array value in other documents. |
static EditableDocument |
newDocument()
Create a new editable document that can be used as a new document entry in a SchematicDb or as nested documents for other documents. |
static EditableDocument |
newDocument(Document original)
Create a new editable document that is a copy of the supplied document. |
static EditableDocument |
newDocument(String name,
Object value)
Create a new editable document, initialized with a single field, that can be used as a new document entry in a SchematicDb or as nested documents for other documents. |
static EditableDocument |
newDocument(String name1,
Object value1,
String name2,
Object value2)
Create a new editable document, initialized with two fields, that can be used as a new document entry in a SchematicDb or as nested documents for other documents. |
static EditableDocument |
newDocument(String name1,
Object value1,
String name2,
Object value2,
String name3,
Object value3)
Create a new editable document, initialized with three fields, that can be used as a new document entry in a SchematicDb or as nested documents for other documents. |
static EditableDocument |
newDocument(String name1,
Object value1,
String name2,
Object value2,
String name3,
Object value3,
String name4,
Object value4)
Create a new editable document, initialized with four fields, that can be used as a new document entry in a SchematicDb or as nested documents for other documents. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static DocumentValueFactory DEFAULT_FACTORY
Constructor Detail |
---|
public Schematic()
Method Detail |
---|
public static SchematicDb get(org.infinispan.manager.CacheContainer cacheContainer, String cacheName)
SchematicDb
instance given the cache name and container.
cacheContainer
- the container for the named cache; may not be nullcacheName
- the name of the cache; may not be null
public static EditableDocument newDocument(Document original)
original
- the original document
public static EditableDocument newDocument()
public static EditableDocument newDocument(String name, Object value)
name
- the name of the initial field in the resulting document; if null, the field will not be added to the returned
documentvalue
- the value of the initial field in the resulting document
public static EditableDocument newDocument(String name1, Object value1, String name2, Object value2)
name1
- the name of the first field in the resulting document; if null, the field will not be added to the returned
documentvalue1
- the value of the first field in the resulting documentname2
- the name of the second field in the resulting document; if null, the field will not be added to the returned
documentvalue2
- the value of the second field in the resulting document
public static EditableDocument newDocument(String name1, Object value1, String name2, Object value2, String name3, Object value3)
name1
- the name of the first field in the resulting document; if null, the field will not be added to the returned
documentvalue1
- the value of the first field in the resulting documentname2
- the name of the second field in the resulting document; if null, the field will not be added to the returned
documentvalue2
- the value of the second field in the resulting documentname3
- the name of the third field in the resulting document; if null, the field will not be added to the returned
documentvalue3
- the value of the third field in the resulting document
public static EditableDocument newDocument(String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4)
name1
- the name of the first field in the resulting document; if null, the field will not be added to the returned
documentvalue1
- the value of the first field in the resulting documentname2
- the name of the second field in the resulting document; if null, the field will not be added to the returned
documentvalue2
- the value of the second field in the resulting documentname3
- the name of the third field in the resulting document; if null, the field will not be added to the returned
documentvalue3
- the value of the third field in the resulting documentname4
- the name of the fourth field in the resulting document; if null, the field will not be added to the returned
documentvalue4
- the value of the fourth field in the resulting document
public static EditableArray newArray()
public static EditableArray newArray(int initialCapacity)
initialCapacity
- the initial allocated capacity for the array
public static EditableArray newArray(Collection<?> values)
values
- the initial values for the array
public static EditableArray newArray(Object... values)
values
- the initial values for the array
public static Editor editDocument(Document document, boolean clone)
serializable memento
that can be applied to another document.
document
- the document to be editedclone
- true if the editor should operate against a clone of the document, or false if it should operate against the
supplied document
public static SchemaLibrary createSchemaLibrary()
public static SchemaLibrary createSchemaLibrary(String name)
name
- the name of the library; may be null if a default name is to be used
public static org.infinispan.marshall.AdvancedExternalizer<Object>[] externalizers()
Externalizer
implementations that are used by Schematic. These need to be registered with the
GlobalConfiguration
:
GlobalConfiguration config = new GlobalConfiguration(); config = config.fluent().serialization().addAdvancedExternalizer(Schematic.externalizers()).build();
public static Set<? extends org.infinispan.marshall.AdvancedExternalizer<?>> externalizerSet()
AdvancedExternalizer
implementations. Note that this does not include Externalizer
implementations that are not AdvancedExternalizer
s.
AdvancedExternalizer
implementations.
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |