|
||||||||||
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<Ip> org.apache.lokahi.core.api.ipaddress.Ip
public class Ip
Constructor Summary | |
---|---|
Ip()
|
|
Ip(int id,
java.lang.String Ip)
|
|
Ip(java.lang.String Ip)
|
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)
|
Ip |
fillObject(java.sql.ResultSet r)
Creates the Dao from the passed resultset, internally calling the appriate constructor. |
Ip |
get(int id)
|
static Ip |
getIp(int id,
boolean fromCache)
|
static Ip |
getIp(java.lang.String name,
boolean fromCache)
|
static java.util.Collection<Ip> |
getIps()
|
static java.util.Collection<Ip> |
getIps(int Id,
boolean fromCache)
|
static java.util.Collection<Ip> |
getIps(VirtualHost vh,
boolean fromCache)
|
java.lang.String |
getName()
Gets the name. |
int |
getPk()
Gets the primary key |
int |
hashCode()
|
void |
setName(java.lang.String name)
|
void |
setPk(int pk)
|
static Ip |
store(Ip ip)
|
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 Ip()
public Ip(java.lang.String Ip)
public Ip(int id, java.lang.String Ip)
Method Detail |
---|
public java.lang.StringBuilder buildXMLRepresention()
Restable
public java.lang.StringBuilder buildShortXMLRepresentation()
Restable
public int getPk()
Collectable
int
primary keypublic void setPk(int pk)
public java.lang.String getName()
Collectable
String
name.public void setName(java.lang.String name)
public Ip get(int id) throws java.sql.SQLException
get
in class TMCDao<Ip>
java.sql.SQLException
public static Ip getIp(int id, boolean fromCache) throws java.sql.SQLException
java.sql.SQLException
public static Ip getIp(java.lang.String name, boolean fromCache) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<Ip> getIps(int Id, boolean fromCache) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<Ip> getIps(VirtualHost vh, boolean fromCache) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<Ip> getIps() throws java.sql.SQLException
java.sql.SQLException
public static Ip store(Ip ip) throws java.sql.SQLException
java.sql.SQLException
public Ip 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.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 |