|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vishnu.model.persistents.PersistentDatabase
public class PersistentDatabase
Constructor Summary | |
---|---|
PersistentDatabase(vishnu.model.persistents.PersistentDatabaseContext cc,
java.lang.String name)
|
Method Summary | |
---|---|
AnonymousTablePool |
anonymousTablePool()
retorna el pool de tablas anonimas. |
Table |
createAnonymousSortedTable(TableSignature s,
java.lang.String sortColumn)
crea una tabla anonima con la signatura pedida. |
Table |
createAnonymousTable(TableSignature s)
crea una tabla anonima con la signatura pedida. |
Table |
createTable(UserContext userContext,
java.lang.String name,
TableSignature s)
crea una tabla con el nombre y la signatura pedida |
void |
createUser(UserContext userContext,
User user,
java.lang.String password)
Crea el usuario en la base de datos. |
void |
drop(TableContext t)
Borra la tabla. |
protected java.lang.String |
freeTableName()
|
java.util.Collection<Index> |
getIndexes(TableContext t)
Devuelve la coleccion de indices de una tabla. |
java.util.Collection<Table> |
getTables(UserContext userContext)
Devuelve las tablas de un usuario de esta base de datos. |
java.util.Collection<User> |
getUsers()
Devuelve los usuarios de la base de datos |
boolean |
hasTable(UserContext userContext,
java.lang.String name)
|
boolean |
hasUser(UserContext userContext,
java.lang.String password)
Indica si el usuario pertenece a la base de datos. |
void |
insert(IndexContext i)
Inserta el indice en la base de datos. |
java.lang.String |
name()
|
void |
persistChanges(UserContext userContext)
. |
Table |
table(UserContext userContext,
java.lang.String name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PersistentDatabase(vishnu.model.persistents.PersistentDatabaseContext cc, java.lang.String name)
Method Detail |
---|
public java.util.Collection<Table> getTables(UserContext userContext)
Database
getTables
in interface Database
public Table table(UserContext userContext, java.lang.String name)
table
in interface Database
public Table createTable(UserContext userContext, java.lang.String name, TableSignature s)
Database
createTable
in interface Database
protected java.lang.String freeTableName()
public Table createAnonymousTable(TableSignature s)
Database
createAnonymousTable
in interface Database
public void drop(TableContext t)
Database
drop
in interface Database
public java.lang.String name()
name
in interface Database
public AnonymousTablePool anonymousTablePool()
Database
anonymousTablePool
in interface Database
public boolean hasTable(UserContext userContext, java.lang.String name)
hasTable
in interface Database
public java.util.Collection<Index> getIndexes(TableContext t)
Database
getIndexes
in interface Database
public void insert(IndexContext i)
Database
insert
in interface Database
public Table createAnonymousSortedTable(TableSignature s, java.lang.String sortColumn)
Database
createAnonymousSortedTable
in interface Database
public java.util.Collection<User> getUsers()
Database
getUsers
in interface Database
public void createUser(UserContext userContext, User user, java.lang.String password)
Database
createUser
in interface Database
userContext
- - el contexto del ejecutor de la operacion.password
- - a contraseņa del usuario.public boolean hasUser(UserContext userContext, java.lang.String password)
Database
hasUser
in interface Database
public void persistChanges(UserContext userContext)
Database
persistChanges
in interface Database
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |