org.xcmis.search.content
Class InMemorySchema

java.lang.Object
  extended by org.xcmis.search.content.InMemorySchema
All Implemented Interfaces:
Schema

public class InMemorySchema
extends Object
implements Schema

In memory Schema implementation.


Nested Class Summary
static class InMemorySchema.Builder
          A builder of immutable Schema objects.
 
Nested classes/interfaces inherited from interface org.xcmis.search.content.Schema
Schema.Column, Schema.Table
 
Constructor Summary
protected InMemorySchema(Map<org.xcmis.search.model.source.SelectorName,Schema.Table> tables)
           
 
Method Summary
static InMemorySchema.Builder createBuilder()
          Obtain a new instance for building Schema objects.
 Schema.Table getTable(org.xcmis.search.model.source.SelectorName name)
          Get the information for the table or view with the supplied name within this schema.
 String toString()
          
 InMemorySchema with(Schema.Table table)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InMemorySchema

protected InMemorySchema(Map<org.xcmis.search.model.source.SelectorName,Schema.Table> tables)
Method Detail

createBuilder

public static InMemorySchema.Builder createBuilder()
Obtain a new instance for building Schema objects.

Returns:
the new builder; never null

getTable

public Schema.Table getTable(org.xcmis.search.model.source.SelectorName name)
Get the information for the table or view with the supplied name within this schema.

The resulting definition is immutable.

Specified by:
getTable in interface Schema
Parameters:
name - the table or view name; may not be null
Returns:
the table or view information, or null if there is no such table
See Also:
org.modeshape.graph.query.validate.Schema#getTable(org.modeshape.graph.query.model.SelectorName)

with

public InMemorySchema with(Schema.Table table)

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2011 eXo Platform SAS. All Rights Reserved.