|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lokahi.core.common.interfaces.RestObject
org.apache.lokahi.core.common.interfaces.TMCDao<Environment>
org.apache.lokahi.core.api.environment.Environment
public class Environment
| Constructor Summary | |
|---|---|
Environment()
|
|
Environment(int id,
java.lang.String name,
java.lang.String comment)
|
|
Environment(java.lang.String name)
|
|
Environment(java.lang.String name,
java.lang.String comment)
|
|
| Method Summary | |
|---|---|
java.lang.StringBuilder |
buildShortXMLRepresentation()
Builds a short xml representation of this object containing name, and primary key. |
java.lang.StringBuilder |
buildXMLRepresention()
Builds a xml representation of this object |
boolean |
equals(java.lang.Object o)
|
Environment |
fillObject(java.sql.ResultSet r)
Creates the Dao from the passed resultset, internally calling the appriate constructor. |
Environment |
get(int id)
|
java.lang.String |
getComment()
|
static Environment |
getEnviroment(int id,
boolean fromCache)
Deprecated. |
static java.util.Collection<Environment> |
getEnviroments()
|
static java.util.Collection<Environment> |
getEnviroments(Project p)
|
java.lang.String |
getName()
Gets the name. |
int |
getPk()
Gets the primary key |
int |
hashCode()
|
void |
setComment(java.lang.String comment)
|
void |
setName(java.lang.String name)
|
void |
setPk(int id)
|
java.lang.String |
toString()
|
| Methods inherited from class org.apache.lokahi.core.common.interfaces.RestObject |
|---|
elementBuilder, elementBuilder |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Environment()
public Environment(java.lang.String name)
public Environment(java.lang.String name,
java.lang.String comment)
public Environment(int id,
java.lang.String name,
java.lang.String comment)
| Method Detail |
|---|
public int getPk()
Collectable
int primary keypublic void setPk(int id)
public java.lang.String getName()
Collectable
String name.public void setName(java.lang.String name)
public java.lang.String getComment()
public void setComment(java.lang.String comment)
public Environment get(int id)
throws java.sql.SQLException
get in class TMCDao<Environment>java.sql.SQLException
public static Environment getEnviroment(int id,
boolean fromCache)
throws java.sql.SQLException
id - fromCache -
java.sql.SQLException
public static java.util.Collection<Environment> getEnviroments()
throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<Environment> getEnviroments(Project p)
throws java.sql.SQLException
java.sql.SQLException
public Environment fillObject(java.sql.ResultSet r)
throws java.sql.SQLException
Dao
r - the resultset from a database call,
should include the entire object
java.sql.SQLExceptionpublic java.lang.StringBuilder buildShortXMLRepresentation()
Restable
public java.lang.StringBuilder buildXMLRepresention()
Restable
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||