All Packages Class Hierarchy This Package Previous Next Index
Class org.dorm4.fls.StdLibraryObject
java.lang.Object
|
+----org.dorm4.fls.StdLibraryObject
- public abstract class StdLibraryObject
- extends Object
- implements Serializable, Cloneable, ILibraryConstants
Base class for all library object classes to extend. There is a specific way
for adding properties and creating the proper property arrays. See Book.java
for an example.
- See Also:
- Book
-
m_homeLibrary
-
-
StdLibraryObject(String, IRemoteLibrary)
-
-
add()
- Adds the object to the database
-
add(Object[][], Object[][])
- Subclasses should call this to add their properties to the superclasses properties
-
clearProperty(int)
- Clears the property
property
-
clone()
- Creates a clone of this object
-
equals(Object)
- Tests if this object is exactly the same as
obj
.
-
getEditor()
- Returns a (GUI?) editor specific for the type of object
-
getExtendedProperties()
- Returns the extended propterties of this class.
-
getId()
- Gets the id for this object
-
getProperties()
- Gets all the properties of this object
-
getProperty(int)
- Gets the property
property
of this object
-
getPropertyNames()
- Gets the names of the property fields
-
remove()
- Removes the object in the database
-
renumber(String)
- Gives the object a new number in the database
-
setProperty(int, Object)
- Sets the property
property
with the value value
-
toString()
-
-
update()
- Updates the object in the database
-
validate()
- Verifies that the object is in the database and sets its properties
to the values in the database.
m_homeLibrary
protected IRemoteLibrary m_homeLibrary
StdLibraryObject
protected StdLibraryObject(String id,
IRemoteLibrary library)
add
protected static final Object[][] add(Object additionalPropertyNames[][],
Object propertyNames[][])
- Subclasses should call this to add their properties to the superclasses properties
getId
public final String getId()
- Gets the id for this object
getProperty
public final Object getProperty(int property)
- Gets the property
property
of this object
getProperties
public final Object[] getProperties()
- Gets all the properties of this object
setProperty
public final void setProperty(int property,
Object value)
- Sets the property
property
with the value value
clearProperty
public final void clearProperty(int property)
- Clears the property
property
getPropertyNames
public final String[] getPropertyNames()
- Gets the names of the property fields
getExtendedProperties
public abstract Object[][] getExtendedProperties()
- Returns the extended propterties of this class. Non-static
so that it may be overriden.
getEditor
public IObjectEditor getEditor()
- Returns a (GUI?) editor specific for the type of object
validate
public StdLibraryObject validate() throws RecordNotFoundException, RemoteException
- Verifies that the object is in the database and sets its properties
to the values in the database.
- Returns:
-
this
- Throws: RecordNotFoundException
- Thrown if the object isn't in the database.
add
public void add() throws CannotAllowException, RemoteException
- Adds the object to the database
- Returns:
- Returns
true
if the method succeeded, false otherwise.
- Throws: CannotAllowException
- Thrown if access is denied.
remove
public void remove() throws CannotAllowException, RecordNotFoundException, RemoteException
- Removes the object in the database
- Returns:
- Returns
true
if the method succeeded, false otherwise.
- Throws: CannotAllowException
- Thrown if access is denied.
- Throws: RecordNotFoundException
- Thrown if the object isn't in the database.
update
public void update() throws CannotAllowException, RecordNotFoundException, RemoteException
- Updates the object in the database
- Returns:
- Returns
true
if the method succeeded, false otherwise.
- Throws: CannotAllowException
- Thrown if access is denied.
- Throws: RecordNotFoundException
- Thrown if the object isn't in the database.
renumber
public void renumber(String newid) throws CannotAllowException, RecordNotFoundException, RemoteException
- Gives the object a new number in the database
- Returns:
- Returns
true
if the method succeeded, false otherwise.
- Throws: CannotAllowException
- Thrown if access is denied.
- Throws: RecordNotFoundException
- Thrown if the object isn't in the database.
toString
public String toString()
- Overrides:
- toString in class Object
clone
public final Object clone()
- Creates a clone of this object
- Overrides:
- clone in class Object
equals
public boolean equals(Object obj)
- Tests if this object is exactly the same as
obj
.
- Overrides:
- equals in class Object
All Packages Class Hierarchy This Package Previous Next Index