|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lokahi.core.common.interfaces.RestObject org.apache.lokahi.core.common.interfaces.TMCDao<Instance> org.apache.lokahi.core.api.instance.Instance
public class Instance
Constructor Summary | |
---|---|
Instance()
|
|
Instance(int id,
java.lang.String name,
java.lang.String comments)
|
|
Instance(java.lang.String name)
|
|
Instance(java.lang.String name,
java.lang.String comments)
|
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)
|
Instance |
fillObject(java.sql.ResultSet r)
Creates the Dao from the passed resultset, internally calling the appriate constructor. |
Instance |
get(int id)
|
java.lang.String |
getComments()
|
static Instance |
getInstance(int id,
boolean fromCache)
Deprecated. |
static Instance |
getInstance(java.lang.String name,
boolean fromCache)
|
static java.util.Collection<Instance> |
getInstances()
|
java.lang.String |
getName()
Gets the name. |
int |
getPk()
Gets the primary key |
int |
hashCode()
|
void |
setComments(java.lang.String comments)
|
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 Instance()
public Instance(java.lang.String name)
public Instance(java.lang.String name, java.lang.String comments)
public Instance(int id, java.lang.String name, java.lang.String comments)
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 getComments()
public void setComments(java.lang.String comments)
public Instance get(int id) throws java.sql.SQLException
get
in class TMCDao<Instance>
java.sql.SQLException
public static Instance getInstance(int id, boolean fromCache) throws java.sql.SQLException
id
- fromCache
-
java.sql.SQLException
public static Instance getInstance(java.lang.String name, boolean fromCache) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<Instance> getInstances() throws java.sql.SQLException
java.sql.SQLException
public Instance fillObject(java.sql.ResultSet r) throws java.sql.SQLException
Dao
r
- the resultset from a database call,
should include the entire object
java.sql.SQLException
public java.lang.StringBuilder buildShortXMLRepresentation()
Restable
public java.lang.StringBuilder buildXMLRepresention()
Restable
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |