org.qi4j.index.sql.support.postgresql
Class PostgreSQLIndexExporter

java.lang.Object
  extended by org.qi4j.index.sql.support.postgresql.PostgreSQLIndexExporter
All Implemented Interfaces:
Activatable, IndexExporter

public class PostgreSQLIndexExporter
extends Object
implements IndexExporter, Activatable


Constructor Summary
PostgreSQLIndexExporter()
           
 
Method Summary
 void activate()
          This is invoked on the service when the instance is being activated
 void exportFormalToWriter(PrintWriter out)
          Write the index to the provided print writer in an implementation specific, machine-readable format, preferably either XML or JSON.
 void exportReadableToStream(PrintStream out)
          Write the index to the provided output stream in an implementation specific, human-readable format.
 void passivate()
          This is invoked on the service when the instance is being passivated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostgreSQLIndexExporter

public PostgreSQLIndexExporter()
Method Detail

activate

public void activate()
              throws Exception
Description copied from interface: Activatable
This is invoked on the service when the instance is being activated

Specified by:
activate in interface Activatable
Throws:
Exception - if service could not be activated

passivate

public void passivate()
               throws Exception
Description copied from interface: Activatable
This is invoked on the service when the instance is being passivated

Specified by:
passivate in interface Activatable
Throws:
Exception - if the service could not be passivated

exportFormalToWriter

public void exportFormalToWriter(PrintWriter out)
                          throws IOException,
                                 UnsupportedOperationException
Description copied from interface: IndexExporter
Write the index to the provided print writer in an implementation specific, machine-readable format, preferably either XML or JSON.

Specified by:
exportFormalToWriter in interface IndexExporter
Parameters:
out - The print writer that the index will be sent to.
Throws:
IOException - if an IOException occurs in the underlying PrintWriter.
UnsupportedOperationException - if the method is not supported by this implementation.

exportReadableToStream

public void exportReadableToStream(PrintStream out)
                            throws IOException,
                                   UnsupportedOperationException
Description copied from interface: IndexExporter
Write the index to the provided output stream in an implementation specific, human-readable format.

Specified by:
exportReadableToStream in interface IndexExporter
Parameters:
out - The output stream that the index will be sent to.
Throws:
IOException - if an IOException occurs in the underlying PrintStream.
UnsupportedOperationException - if the method is not supported by this implementation.