|
||||||||||
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<File> org.apache.lokahi.core.api.file.File
public class File
Constructor Summary | |
---|---|
File()
|
|
File(int pk,
java.lang.String name,
java.lang.String discriptor,
java.lang.String path,
java.sql.Blob content)
|
|
File(java.lang.String name,
java.lang.String content,
java.lang.String discriptor,
java.lang.String path)
|
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)
|
File |
fillObject(java.sql.ResultSet r)
Creates the Dao from the passed resultset, internally calling the appriate constructor. |
File |
get(int id)
|
java.lang.String |
getContent()
|
java.lang.String |
getDescriptor()
|
static File |
getFile(int id)
Deprecated. |
static java.util.Collection<File> |
getFiles()
|
java.lang.String |
getName()
Gets the name. |
java.lang.String |
getPath()
|
int |
getPk()
Gets the primary key |
int |
hashCode()
|
void |
setContent(byte[] content)
|
void |
setContent(java.lang.String content)
|
void |
setDescriptor(java.lang.String discriptor)
|
void |
setName(java.lang.String name)
|
void |
setPath(java.lang.String path)
|
void |
setPk(int pk)
|
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 File()
public File(java.lang.String name, java.lang.String content, java.lang.String discriptor, java.lang.String path)
public File(int pk, java.lang.String name, java.lang.String discriptor, java.lang.String path, java.sql.Blob content) throws java.sql.SQLException
java.sql.SQLException
Method Detail |
---|
public int getPk()
Collectable
getPk
in interface Collectable
int
primary keypublic void setPk(int pk)
public java.lang.String getName()
Collectable
getName
in interface Collectable
String
name.public void setName(java.lang.String name)
public java.lang.String getContent()
public void setContent(byte[] content) throws java.sql.SQLException
java.sql.SQLException
public void setContent(java.lang.String content)
public java.lang.String getDescriptor()
public void setDescriptor(java.lang.String discriptor)
public java.lang.String getPath()
public void setPath(java.lang.String path)
public File fillObject(java.sql.ResultSet r) throws java.sql.SQLException
Dao
fillObject
in interface Dao<File>
r
- the resultset from a database call,
should include the entire object
java.sql.SQLException
public File get(int id) throws java.sql.SQLException
get
in class TMCDao<File>
java.sql.SQLException
public static File getFile(int id) throws java.sql.SQLException
id
-
java.sql.SQLException
public static java.util.Collection<File> getFiles() throws java.sql.SQLException
java.sql.SQLException
public java.lang.StringBuilder buildShortXMLRepresentation()
Restable
buildShortXMLRepresentation
in interface Restable
public java.lang.StringBuilder buildXMLRepresention()
Restable
buildXMLRepresention
in interface 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 |