Package pysql :: Module pysqloraobjects :: Class OraUser
[hide private]
[frames] | no frames]

Class OraUser

source code


User

Instance Methods [hide private]
 
__init__(self, userOwner="", userName="")
Directory creation
source code
 
updateTablespaceList(self, db)
Gets list of the tablespace which stores user segments
source code
 
getTablespaces(self)
Returns: list of tablespaces (updateTablespaceList must be called before !)
source code
 
getDefaultTablespace(self, db)
Returns: default tablespace name of the user
source code
 
getTempTablespace(self, db)
Returns: temporary tablespace name of the user
source code
 
getNbTables(self, db, tablespace=u"%")
Returns: number of tables owned by the user
source code
 
getNbIndexes(self, db, tablespace=u"%")
Returns: number of indexes owned by the user
source code
 
guessStatus(self, db)
Guess user status
source code

Inherited from OraObject: __eq__, __hash__, __str__, getCopy, getCreated, getDDL, getFullName, getLastDDL, getName, getOwner, getStatus, getType, guessInfos, setName, setOwner, setStatus, setType

Method Details [hide private]

__init__(self, userOwner="", userName="")
(Constructor)

source code 

Directory creation

Overrides: OraObject.__init__

getTablespaces(self)

source code 
Returns:
list of tablespaces (updateTablespaceList must be called before !)

getDefaultTablespace(self, db)

source code 
Returns:
default tablespace name of the user

getTempTablespace(self, db)

source code 
Returns:
temporary tablespace name of the user

getNbTables(self, db, tablespace=u"%")

source code 
Returns:
number of tables owned by the user

getNbIndexes(self, db, tablespace=u"%")

source code 
Returns:
number of indexes owned by the user

guessStatus(self, db)

source code 

Guess user status

Overrides: OraObject.guessStatus