org.openrdf.sail.rdbms.managers
Class LiteralManager

java.lang.Object
  extended by org.openrdf.sail.rdbms.managers.base.ManagerBase
      extended by org.openrdf.sail.rdbms.managers.base.ValueManagerBase<RdbmsLiteral>
          extended by org.openrdf.sail.rdbms.managers.LiteralManager

public class LiteralManager
extends ValueManagerBase<RdbmsLiteral>

Manages RDBMS Literals. Including creation, id lookup, and inserting them into the database.

Author:
James Leigh

Field Summary
static LiteralManager instance
           
 
Fields inherited from class org.openrdf.sail.rdbms.managers.base.ManagerBase
BATCH_SIZE, MAX_QUEUE, MIN_QUEUE, queue
 
Constructor Summary
LiteralManager()
           
 
Method Summary
 void close()
           
protected  boolean expunge(String condition)
           
protected  int getBatchSize()
           
static long getCalendarValue(XMLGregorianCalendar xcal)
           
protected  void insert(Number id, RdbmsLiteral literal)
           
protected  Literal key(RdbmsLiteral value)
           
protected  void optimize()
           
 void setTable(LiteralTable table)
           
 
Methods inherited from class org.openrdf.sail.rdbms.managers.base.ValueManagerBase
cache, findInCache, flush, getIdSequence, getIdVersion, getInternalId, init, removedStatements, setHashManager, setIdSequence
 
Methods inherited from class org.openrdf.sail.rdbms.managers.base.ManagerBase
clear, flush, getQueue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static LiteralManager instance
Constructor Detail

LiteralManager

public LiteralManager()
Method Detail

getCalendarValue

public static long getCalendarValue(XMLGregorianCalendar xcal)

setTable

public void setTable(LiteralTable table)

close

public void close()
           throws SQLException
Overrides:
close in class ManagerBase
Throws:
SQLException

expunge

protected boolean expunge(String condition)
                   throws SQLException
Specified by:
expunge in class ValueManagerBase<RdbmsLiteral>
Throws:
SQLException

optimize

protected void optimize()
                 throws SQLException
Overrides:
optimize in class ValueManagerBase<RdbmsLiteral>
Throws:
SQLException

key

protected Literal key(RdbmsLiteral value)
Specified by:
key in class ValueManagerBase<RdbmsLiteral>

insert

protected void insert(Number id,
                      RdbmsLiteral literal)
               throws SQLException,
                      InterruptedException
Specified by:
insert in class ValueManagerBase<RdbmsLiteral>
Throws:
SQLException
InterruptedException

getBatchSize

protected int getBatchSize()
Specified by:
getBatchSize in class ValueManagerBase<RdbmsLiteral>


Copyright © 2001-2009 Aduna. All Rights Reserved.