All Packages Class Hierarchy This Package Previous Next Index
Class icc.db.Entity
java.lang.Object
|
+----icc.db.Entity
- public abstract class Entity
- extends Object
- implements Serializable
The Entity class represents the commonalities between projects,
partners and documents as data entities in the project database.
These commonalities are an identifier and a name.
The identifier, a positive integer, must be unique for each project,
partner (and team) or document and is assigned by the database.
The number zero is reserved for new entities, before these are submitted
to the database and assigned a definitive identifier.
The functionality of the name is dependent on the entity type.
An entity can be trusted or not. Trusted means that the entity reflects
correctly on the data in the database at the moment it was created.
A trusted entity cannot be altered.
- See Also:
- Project, Partner, Header
-
NEW
- The reserved identifier for new entities, before these are submitted
to the project database.
-
Entity(Integer, String)
-
-
description()
- Returns a description for this entity.
-
equals(Object)
- Compares this object to the specified object.
-
getId()
- Returns the identifier of this entity.
-
getName()
- Returns the name of this entity.
-
id()
- Returns the identifier of this entity.
-
isTrusted()
- Checks if this is a trusted entity.
-
lock()
-
-
name()
- Returns the name of this entity.
-
setId(Integer)
-
-
setName(String)
-
NEW
public static final Integer NEW
- The reserved identifier for new entities, before these are submitted
to the project database.
Entity
Entity(Integer id,
String name)
id
public Integer id()
- Returns the identifier of this entity.
- Returns:
- an integral identifier
getId
public Integer getId()
- Returns the identifier of this entity.
This method is accessible from JavaScript.
- Returns:
- an integral identifier
name
public String name()
- Returns the name of this entity.
- Returns:
- a string
getName
public String getName()
- Returns the name of this entity.
This method is accessible from JavaScript.
- Returns:
- a string
description
public abstract String description()
- Returns a description for this entity.
- Returns:
- a string
isTrusted
public boolean isTrusted()
- Checks if this is a trusted entity.
- Returns:
- true if this entity is trusted, false
otherwise
lock
void lock()
setId
void setId(Integer id)
setName
void setName(String name)
equals
public boolean equals(Object obj)
- Compares this object to the specified object.
The result is true if and only if the argument is not
null and is an object of the same class that has the same
identifier as this object.
- Parameters:
- obj - the object to compare with
- Returns:
- true if the objects are the same;
false otherwise
- Overrides:
- equals in class Object
All Packages Class Hierarchy This Package Previous Next Index
This website has been archived and is no longer maintained.