|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectvishnu.persistence.SortedRawTable
public class SortedRawTable
NO ANDA. Falta agregar el id unico de registro y cambios arrastrados de eso. Asume, dada una signatura, un formato de registro fijo.
![]() |
![]() |
![]() |
![]() |
| Field Summary | |
|---|---|
static int |
UNORDERED_RECORDS
|
| Constructor Summary | |
|---|---|
SortedRawTable(java.lang.String fullTableName,
TableSignature ts,
java.lang.String columnSorted,
IdAssigner a)
|
|
| Method Summary | |
|---|---|
void |
close()
Cierra el acceso a la tabla. |
void |
drop()
Borra fisicamente la tabla. |
void |
dropRecord(int n)
Elimina el registro de la tabla. |
void |
dropRecord(Record r)
Elimina el registro de la tabla. |
protected void |
finalize()
|
Record |
getRecord(int n)
Devuelve un registro. |
java.util.List<Record> |
getRecords(int begin,
int end)
Devuelve una lista de registros consecutivos dentro de los limites especificados. |
boolean |
hasNext()
Indica si existe el siguiente registro. |
void |
insert(Record r)
Inserta un registro. |
java.lang.String |
name()
Devuelve el nombre de la tabla. |
Record |
next()
Devuelve el siguiente registro. |
void |
open()
Abre el acceso a la tabla. |
void |
order()
Fuerza el ordenamiento de los registros. |
void |
reset()
Resetea el recorrido de tabla. |
int |
rows()
Indica la cantidad de registros de la tabla. |
void |
update(Record r)
Actualiza el registro. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int UNORDERED_RECORDS
| Constructor Detail |
|---|
public SortedRawTable(java.lang.String fullTableName,
TableSignature ts,
java.lang.String columnSorted,
IdAssigner a)
| Method Detail |
|---|
public java.lang.String name()
RawTable
name in interface RawTablepublic void insert(Record r)
RawTable
insert in interface RawTabler - - el registro a insertar.public void order()
RawTable
order in interface RawTable
public Record getRecord(int n)
throws java.lang.IndexOutOfBoundsException
RawTable
getRecord in interface RawTablejava.lang.IndexOutOfBoundsException - - si el indice esta fuera de rango.n - - el numero de registro a devolver.
public java.util.List<Record> getRecords(int begin,
int end)
throws java.lang.IndexOutOfBoundsException
RawTable
getRecords in interface RawTablejava.lang.IndexOutOfBoundsException - - si los indices estan fuera de rango.begin - - el numero del primer registro de la listaend - - el numero del ultimo registro de la lista.
public boolean hasNext()
RawTable
hasNext in interface RawTablepublic Record next()
RawTable
next in interface RawTablepublic void reset()
RawTable
reset in interface RawTablepublic int rows()
RawTable
rows in interface RawTablepublic void close()
RawTable
close in interface RawTablepublic void open()
RawTable
open in interface RawTable
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void drop()
RawTable
drop in interface RawTablepublic void update(Record r)
RawTable
update in interface RawTable
public void dropRecord(int n)
throws java.lang.IndexOutOfBoundsException
RawTable
dropRecord in interface RawTablejava.lang.IndexOutOfBoundsException - - si el indice esta fuera de rango.n - - el numero de registro a eliminar.public void dropRecord(Record r)
RawTable
dropRecord in interface RawTabler - - el registro a eliminar.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||