|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectischool.info340.teamE.Place
public class Place
Represents a place in the storage medium
| Constructor Summary | |
|---|---|
Place(int id,
int creatorId,
java.lang.String name,
java.lang.String descr,
PlaceManager manager)
Creates a new instance of place |
|
Place(int creatorId,
java.lang.String name,
java.lang.String descr,
PlaceManager manager)
Creates a new instance of place, and adds it to the storage media |
|
| Method Summary | |
|---|---|
boolean |
exists()
|
int |
getCreatorId()
|
java.lang.String |
getDescr()
|
int |
getId()
|
PlaceManager |
getManager()
|
java.lang.String |
getName()
|
boolean |
remove()
Removes this place from the storage medium and marks it as unusable so future use of this media will generate exceptions. |
boolean |
restore()
Inserts this previously removed place back into the storage medium and marks it as usable again. |
boolean |
update(int creatorId,
java.lang.String name,
java.lang.String descr)
Updates this place object and its representation in the storage medium to have a new set of properties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Place(int id,
int creatorId,
java.lang.String name,
java.lang.String descr,
PlaceManager manager)
id - The unique identifier in the storage medium for this placecreatorId - The user who created this placename - The name of this placedescr - The description of this placemanager - The manager for the storage medium in which this place exists
public Place(int creatorId,
java.lang.String name,
java.lang.String descr,
PlaceManager manager)
creatorId - The user who created this placename - The date on which this media was captured or createddescr - The description of this mediamanager - The manager for the storage medium in which this place exists| Method Detail |
|---|
public int getId()
public int getCreatorId()
public java.lang.String getName()
public java.lang.String getDescr()
public PlaceManager getManager()
public boolean update(int creatorId,
java.lang.String name,
java.lang.String descr)
creatorId - The user who created this placename - The name of this placedescr - The description of this place
public boolean exists()
public boolean remove()
public boolean restore()
java.lang.IllegalStateException - if this user has not yet been deleted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||