vishnu.paging
Class DefaultPageManager

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by vishnu.paging.DefaultPageManager
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, PageManager

public class DefaultPageManager
extends java.rmi.server.UnicastRemoteObject
implements PageManager

Author:
Mariano Tepper
See Also:
Serialized Form
 

Field Summary
 int MAX_PAGES
           
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
DefaultPageManager()
           
 
Method Summary
 void close()
          Cierra el paginador.
 void getPageContaining(PagingContext context, Record r)
           
 void notifyModification(PagingContext context)
           
 void order(PagingContext context)
          fuerza persistir los datos de la tabla.
 void pageFailure(PagingContext context, int n)
          devuelve una pagina de la tabla
 void persistAll(PagingContext context)
          persiste todas las paginas de la tabla
 void register(PagingContext context, TableSignature s, java.lang.String sortColumn)
          Registra una tabla.
 int size(PagingContext context)
          devuelve a cantidad de registros de la tabla
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_PAGES

public final int MAX_PAGES
See Also:
Constant Field Values
Constructor Detail

DefaultPageManager

public DefaultPageManager()
                   throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

pageFailure

public void pageFailure(PagingContext context,
                        int n)
                 throws java.rmi.RemoteException
Description copied from interface: PageManager
devuelve una pagina de la tabla

Specified by:
pageFailure in interface PageManager
Throws:
java.rmi.RemoteException

notifyModification

public void notifyModification(PagingContext context)
                        throws java.rmi.RemoteException
Specified by:
notifyModification in interface PageManager
Throws:
java.rmi.RemoteException

getPageContaining

public void getPageContaining(PagingContext context,
                              Record r)
                       throws java.rmi.RemoteException
Specified by:
getPageContaining in interface PageManager
Throws:
java.rmi.RemoteException

persistAll

public void persistAll(PagingContext context)
                throws java.rmi.RemoteException
Description copied from interface: PageManager
persiste todas las paginas de la tabla

Specified by:
persistAll in interface PageManager
Throws:
java.rmi.RemoteException

size

public int size(PagingContext context)
         throws java.rmi.RemoteException
Description copied from interface: PageManager
devuelve a cantidad de registros de la tabla

Specified by:
size in interface PageManager
Throws:
java.rmi.RemoteException

register

public void register(PagingContext context,
                     TableSignature s,
                     java.lang.String sortColumn)
              throws java.rmi.RemoteException
Description copied from interface: PageManager
Registra una tabla.

Specified by:
register in interface PageManager
Throws:
java.rmi.RemoteException

close

public void close()
           throws java.rmi.RemoteException
Description copied from interface: PageManager
Cierra el paginador.

Specified by:
close in interface PageManager
Throws:
java.rmi.RemoteException

order

public void order(PagingContext context)
           throws java.rmi.RemoteException
Description copied from interface: PageManager
fuerza persistir los datos de la tabla.

Specified by:
order in interface PageManager
Throws:
java.rmi.RemoteException