org.omegahat.Interfaces.CORBA
Class AttachableInterfaceRepository
java.lang.Object
|
+--org.omegahat.Interfaces.CORBA.InterfaceRepository
|
+--org.omegahat.Interfaces.CORBA.FieldAccessibleInterfaceRepository
|
+--org.omegahat.Interfaces.CORBA.AttachableInterfaceRepository
- All Implemented Interfaces:
- Activable, Database, DynamicFieldAccessInt
- public class AttachableInterfaceRepository
- extends FieldAccessibleInterfaceRepository
- implements Database
|
Method Summary |
boolean |
assign(java.lang.String name,
java.lang.Object obj)
assigns obj to the database under name. |
boolean |
attach(DatabaseCustomer e)
|
void |
clear()
remove all the objects from the database. |
boolean |
detach(DatabaseCustomer e)
|
boolean |
exists(java.lang.String name)
does the object exist in the database? |
java.lang.Object |
get(java.lang.String name)
returns the object in the database assigned under the name. |
java.lang.String |
getName()
|
int |
getState()
|
java.lang.String[] |
objects()
the array of object names. |
java.lang.Object |
remove(java.lang.String name)
remove the object from the database |
protected InterfaceRepository |
replicate(org.omg.CORBA.Container c)
|
java.lang.String |
setName(java.lang.String name)
|
int |
setState(int s)
|
int |
size()
what is the size (in bytes?) of the database. |
| Methods inherited from class org.omegahat.Interfaces.CORBA.InterfaceRepository |
find, find, find, find, list, list, list, narrow, processId, repository, repository, repository, repository |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttachableInterfaceRepository
public AttachableInterfaceRepository()
AttachableInterfaceRepository
public AttachableInterfaceRepository(org.omg.CORBA.ORB orb)
AttachableInterfaceRepository
public AttachableInterfaceRepository(org.omg.CORBA.Repository repository)
AttachableInterfaceRepository
public AttachableInterfaceRepository(org.omg.CORBA.Object repository)
getState
public int getState()
- Specified by:
getState in interface Activable
setState
public int setState(int s)
- Specified by:
setState in interface Activable
get
public java.lang.Object get(java.lang.String name)
- Description copied from interface:
Database
- returns the object in the database assigned under the name.
or
null if none.
- Specified by:
get in interface Database
size
public int size()
- Description copied from interface:
Database
- what is the size (in bytes?) of the database.
- Specified by:
size in interface Database
objects
public java.lang.String[] objects()
- Description copied from interface:
Database
- the array of object names.
- Specified by:
objects in interface Database
exists
public boolean exists(java.lang.String name)
- Description copied from interface:
Database
- does the object exist in the database?
- Specified by:
exists in interface Database
assign
public boolean assign(java.lang.String name,
java.lang.Object obj)
- Description copied from interface:
Database
- assigns
obj to the database under name.
- Specified by:
assign in interface Database
- Following copied from interface:
org.omegahat.Environment.Databases.Database
- Parameters:
obj - any object, including nullname - a string (preferably non-empty) to locate the object in
the database.
remove
public java.lang.Object remove(java.lang.String name)
- Description copied from interface:
Database
- remove the object from the database
- Specified by:
remove in interface Database
- Following copied from interface:
org.omegahat.Environment.Databases.Database
- Parameters:
name - any string, matching the one used in a previous
assignment.
clear
public void clear()
- Description copied from interface:
Database
- remove all the objects from the database.
- Specified by:
clear in interface Database
getName
public java.lang.String getName()
- Specified by:
getName in interface Database
setName
public java.lang.String setName(java.lang.String name)
- Specified by:
setName in interface Database
detach
public boolean detach(DatabaseCustomer e)
- Specified by:
detach in interface Database
attach
public boolean attach(DatabaseCustomer e)
- Specified by:
attach in interface Database
replicate
protected InterfaceRepository replicate(org.omg.CORBA.Container c)
- Overrides:
replicate in class FieldAccessibleInterfaceRepository