|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.orion.sdata.servlet.JDBCResourceKind
com.sage.orion.sdata.servlet.swtservice.TestJDBCResourceKindImpl
public class TestJDBCResourceKindImpl
A test JDBC ResourceKind implementor which handles request for the DB table TSFLAT
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sage.orion.sdata.servlet.JDBCResourceKind |
---|
JDBCResourceKind.HTTPMethodsAuthorizator, JDBCResourceKind.ResourceAuthorizator, JDBCResourceKind.ResourceDataAuthorizator |
Field Summary |
---|
Fields inherited from class com.sage.orion.sdata.servlet.JDBCResourceKind |
---|
ADD, ALTER_TABLE, AND, CLOSE_BRACE, COMMA, CONSTRAINT, DEFAULT, DEFAULT_LANGUAGE_CODE, DELETE_FROM, DROP, DROP_TABLE, FROM, NOT_NULL, OPEN_BRACE, PRIMARY_KEY, SELECT, UICONTENT_SQL_SELECT_STMT, VARCHAR_50, WHERE |
Constructor Summary | |
---|---|
TestJDBCResourceKindImpl(ApplicationContext context,
ConnectionPool connectionPool,
java.lang.String authToken)
Constructor |
Method Summary | |
---|---|
protected java.util.List<FieldDefinition> |
getAllFields()
returns a list of FieldDefinitions in the ResourceKind |
protected java.lang.String |
getCalculateFieldValue(java.lang.String value,
SDataRequest request,
java.sql.ResultSet resultSet,
int fieldIndex)
Get the value of the calculated field, if it is a regular (non-calculated) field then the original value will be returned unchanged |
protected java.util.ArrayList<java.lang.String> |
getIncludeColumns()
Get the columns of the JDBC table that needs to be included |
java.lang.String |
getName()
|
protected java.lang.String[] |
getPrimaryKey()
Get the primary key of the underlying JDBC table for which one JDBCResourceKindImpl is created |
protected java.lang.String |
getTableName()
Get the JDBC table name for which ResourceKindImpl is created |
boolean |
isUserSpecificResource()
Indicates whether the resource is user specific or not. |
protected boolean |
supportDelete()
Indicates whether the ResourceKind in general supports DELETE or not. |
protected boolean |
supportGet()
Indicates whether the ResourceKind in general supports GET or not. |
protected boolean |
supportPost()
Indicates whether the ResourceKind in general supports POST or not. |
protected boolean |
supportPut()
Indicates whether the ResourceKind in general supports PUT or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestJDBCResourceKindImpl(ApplicationContext context, ConnectionPool connectionPool, java.lang.String authToken)
context
- SData servlet contextconnectionPool
- connectionPool of the underlying DBauthToken
- the authentication tokenMethod Detail |
---|
protected java.lang.String getTableName()
getTableName
in class JDBCResourceKind
public java.lang.String getName()
protected java.lang.String[] getPrimaryKey()
getPrimaryKey
in class JDBCResourceKind
protected java.util.ArrayList<java.lang.String> getIncludeColumns()
getIncludeColumns
in class JDBCResourceKind
protected java.util.List<FieldDefinition> getAllFields()
getAllFields
in class JDBCResourceKind
protected java.lang.String getCalculateFieldValue(java.lang.String value, SDataRequest request, java.sql.ResultSet resultSet, int fieldIndex)
getCalculateFieldValue
in class JDBCResourceKind
value
- value of the fieldrequest
- the input SDataRequestresultSet
- resultSet returned by queryfieldIndex
- fieldIndex - 0-based
public boolean isUserSpecificResource()
isUserSpecificResource
in class JDBCResourceKind
protected boolean supportDelete()
supportDelete
in class JDBCResourceKind
protected boolean supportGet()
supportGet
in class JDBCResourceKind
protected boolean supportPost()
supportPost
in class JDBCResourceKind
protected boolean supportPut()
supportPut
in class JDBCResourceKind
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |