org.openrdf.sail.rdbms.schema
Class TripleTable

java.lang.Object
  extended by org.openrdf.sail.rdbms.schema.TripleTable

public class TripleTable
extends java.lang.Object

Manages the life-cycle of the rows in a single predicate table.

Author:
James Leigh

Field Summary
static int tables_created
           
static int total_st
           
static boolean UNIQUE_INDEX_TRIPLES
           
 
Constructor Summary
TripleTable(RdbmsTable table)
           
 
Method Summary
 void blockUntilReady()
           
protected  java.lang.CharSequence buildTableColumns()
           
 void close()
           
 void createIndex()
           
 void drop()
           
 void dropIndex()
           
 java.lang.String getName()
           
 java.lang.String getNameWhenReady()
           
 ValueTypes getObjTypes()
           
 ValueTypes getSubjTypes()
           
 void initTable()
           
 boolean isEmpty()
           
 boolean isIndexed()
           
 boolean isPredColumnPresent()
           
 boolean isReady()
           
 void modified(int addedCount, int removedCount)
           
 void reload()
           
 void setIdSequence(IdSequence ids)
           
 void setIndexed(boolean indexingTriples)
           
 void setObjTypes(ValueTypes valueTypes)
           
 void setPredColumnPresent(boolean present)
           
 void setSubjTypes(ValueTypes valueTypes)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tables_created

public static int tables_created

total_st

public static int total_st

UNIQUE_INDEX_TRIPLES

public static final boolean UNIQUE_INDEX_TRIPLES
See Also:
Constant Field Values
Constructor Detail

TripleTable

public TripleTable(RdbmsTable table)
Method Detail

setIdSequence

public void setIdSequence(IdSequence ids)

isPredColumnPresent

public boolean isPredColumnPresent()

setPredColumnPresent

public void setPredColumnPresent(boolean present)

setIndexed

public void setIndexed(boolean indexingTriples)

initTable

public void initTable()
               throws java.sql.SQLException
Throws:
java.sql.SQLException

reload

public void reload()
            throws java.sql.SQLException
Throws:
java.sql.SQLException

close

public void close()
           throws java.sql.SQLException
Throws:
java.sql.SQLException

isIndexed

public boolean isIndexed()
                  throws java.sql.SQLException
Throws:
java.sql.SQLException

createIndex

public void createIndex()
                 throws java.sql.SQLException
Throws:
java.sql.SQLException

dropIndex

public void dropIndex()
               throws java.sql.SQLException
Throws:
java.sql.SQLException

isReady

public boolean isReady()

blockUntilReady

public void blockUntilReady()
                     throws java.sql.SQLException
Throws:
java.sql.SQLException

getName

public java.lang.String getName()
                         throws java.sql.SQLException
Throws:
java.sql.SQLException

getNameWhenReady

public java.lang.String getNameWhenReady()
                                  throws java.sql.SQLException
Throws:
java.sql.SQLException

getObjTypes

public ValueTypes getObjTypes()

setObjTypes

public void setObjTypes(ValueTypes valueTypes)

getSubjTypes

public ValueTypes getSubjTypes()

setSubjTypes

public void setSubjTypes(ValueTypes valueTypes)

modified

public void modified(int addedCount,
                     int removedCount)
              throws java.sql.SQLException
Throws:
java.sql.SQLException

isEmpty

public boolean isEmpty()
                throws java.sql.SQLException
Throws:
java.sql.SQLException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

drop

public void drop()
          throws java.sql.SQLException
Throws:
java.sql.SQLException

buildTableColumns

protected java.lang.CharSequence buildTableColumns()


Copyright © 2001-2010 Aduna. All Rights Reserved.