|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.persist.jdbc.DBAccess
com.sibvisions.rad.persist.jdbc.HanaDBAccess
public class HanaDBAccess
The HanaDBAccess is the implementation for SAP HANA databases.
DBAccess| Field Summary |
|---|
| Fields inherited from class com.sibvisions.rad.persist.jdbc.DBAccess |
|---|
LONGNVARCHAR, NCHAR, NCLOB, NVARCHAR, QUOTE, SQLXML |
| Constructor Summary | |
|---|---|
HanaDBAccess()
Constructs a new HanaDBAccess Object. |
|
| Method Summary | |
|---|---|
protected String |
getColumnName(ResultSetMetaData pMetaData,
int pColumn)
Gets the column name from the given resultset metadata. |
protected TableInfo |
getTableInfoIntern(String pWriteBackTable)
Returns the meta data information for the specified query, and configures all columns with defaults. |
Object[] |
insert(String pWriteBackTable,
ServerMetaData pServerMetaData,
Object[] pNewDataRow)
Returns the newly inserted row from the write back table. |
Object[] |
insertDatabaseSpecific(String pWriteBackTable,
String pInsertStatement,
ServerMetaData pServerMetaData,
Object[] pNewDataRow,
String pDummyColumn)
Returns the newly inserted row from a Database specific insert statement. |
protected Object[] |
insertHana(String pWriteBackTable,
String pInsertStatement,
ServerMetaData pServerMetaData,
Object[] pNewDataRow,
String pDummyColumn)
Returns the newly inserted row from a SAP Hana Database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HanaDBAccess()
| Method Detail |
|---|
public Object[] insert(String pWriteBackTable,
ServerMetaData pServerMetaData,
Object[] pNewDataRow)
throws DataSourceException
insert in interface IDBAccessinsert in class DBAccesspWriteBackTable - the write back table to use.pServerMetaData - the meta data to use.pNewDataRow - the new values Object[] to insert.
DataSourceException - if an Exception occur during insert the row to the table
public Object[] insertDatabaseSpecific(String pWriteBackTable,
String pInsertStatement,
ServerMetaData pServerMetaData,
Object[] pNewDataRow,
String pDummyColumn)
throws DataSourceException
insertDatabaseSpecific in class DBAccesspWriteBackTable - the table to use for the insertpInsertStatement - the SQL Statement to use for the insertpServerMetaData - the meta data to use.pNewDataRow - the new row (Object[]) with the values to insertpDummyColumn - null, if all writeable columns are null, but for a correct INSERT it have
to be minimum one column to use in the syntax.
DataSourceException - if an Exception occur during insert to the storage
protected TableInfo getTableInfoIntern(String pWriteBackTable)
throws DataSourceException
getTableInfoIntern in class DBAccesspWriteBackTable - the write back table to use for the isWriteable() state (Optional)
DataSourceException - if an Exception occur during getting the meta data or
if the storage is not opened or
if one columns SQL type is not supported
protected String getColumnName(ResultSetMetaData pMetaData,
int pColumn)
throws SQLException
getColumnName in class DBAccesspMetaData - the metadatapColumn - the column index
SQLException - if accessing metadata failed
protected Object[] insertHana(String pWriteBackTable,
String pInsertStatement,
ServerMetaData pServerMetaData,
Object[] pNewDataRow,
String pDummyColumn)
throws DataSourceException
pWriteBackTable - the table to use for the insertpInsertStatement - the SQL Statement to use for the insertpServerMetaData - the meta data to use.pNewDataRow - the new row (Object[]) with the values to insertpDummyColumn - true, if all writeable columns are null, but for a
correct INSERT it have
to be minimum one column to use in the syntax.
DataSourceException - if an Exception occur during insert to the
storage
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||