|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.resource.UniformResource
org.restlet.resource.ServerResource
fr.cnes.sitools.datasource.jdbc.dbexplorer.DBExplorerResource
public class DBExplorerResource
DBExplorerResource using DataSource for pooled connections
Constructor Summary | |
---|---|
DBExplorerResource()
|
Method Summary | |
---|---|
void |
doInit()
|
java.lang.String |
getBaseRef()
Get base reference |
SitoolsSQLDataSource |
getDataSource()
Get the DataSource |
int |
getFetchSize()
Gets the fetchSize value |
org.restlet.data.Form |
getForm()
Get paginated form |
java.lang.String |
getFromTableName()
Get the reference |
org.restlet.representation.Representation |
getHTML()
Get an HTML representation |
org.restlet.representation.Representation |
getJSON()
Get JSON representation |
int |
getMaxrows()
Gets the maxrows value |
int |
getPaginationExtend()
Read extend request parameter -> integer - 0 by default |
int |
getPaginationStartRecord()
Read startRecord request parameter -> integer - 0 by default |
java.lang.String |
getRecordName()
Get the record name |
org.restlet.representation.Representation |
getRepresentation(Response response,
org.restlet.data.MediaType media)
XStream aliases are personalized for each resources |
java.lang.String |
getSchemaName()
Get the schema name |
Table |
getTable()
Get the table |
java.lang.String |
getTableName()
Get the table name |
org.restlet.representation.Representation |
getXML()
Get an XML representation |
boolean |
isDatabaseTarget()
Returns if target is a database |
boolean |
isRecordSetTarget()
Returns if target is a record set |
boolean |
isRecordTarget()
Returns if target is a record |
boolean |
isSchemaTarget()
Returns if target is a schema |
boolean |
isTableTarget()
Returns if target is a table |
org.restlet.representation.Representation |
processConstraint(org.restlet.data.MediaType media)
Process constraint |
Methods inherited from class org.restlet.resource.ServerResource |
---|
abort, commit, getOnSent, getVariants, handle, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setAutoCommitting, setChallengeRequests, setCommitted, setConditional, setCookieSettings, setDimensions, setExisting, setLocationRef, setLocationRef, setNegotiated, setOnSent, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods |
Methods inherited from class org.restlet.resource.UniformResource |
---|
getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getContext, getConverterService, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMaxForwards, getMetadataService, getMethod, getOriginalRef, getProtocol, getQuery, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestEntity, getResponse, getResponseAttributes, getResponseEntity, getRootRef, getServerInfo, getStatus, getStatusService, init, isConfidential, release, setRequest, setResponse |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DBExplorerResource()
Method Detail |
---|
public final boolean isDatabaseTarget()
public final boolean isSchemaTarget()
public final boolean isTableTarget()
public final boolean isRecordSetTarget()
public final boolean isRecordTarget()
public final void doInit()
doInit
in class org.restlet.resource.UniformResource
public final SitoolsSQLDataSource getDataSource()
public final java.lang.String getSchemaName()
public final java.lang.String getTableName()
public final Table getTable()
public final java.lang.String getRecordName()
public final java.lang.String getFromTableName()
public org.restlet.representation.Representation processConstraint(org.restlet.data.MediaType media)
media
- Client preference
@Get(value="xml") public org.restlet.representation.Representation getXML()
@Get(value="json") public org.restlet.representation.Representation getJSON()
@Get(value="html") public org.restlet.representation.Representation getHTML()
public final java.lang.String getBaseRef()
public final org.restlet.data.Form getForm()
public final int getPaginationStartRecord()
public final int getPaginationExtend()
public final org.restlet.representation.Representation getRepresentation(Response response, org.restlet.data.MediaType media)
response
- the response to be transformedmedia
- the media type to use
public final int getFetchSize()
public final int getMaxrows()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |