|
||||||||||
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.MSSQLDBAccess
public class MSSQLDBAccess
The MSSQLDBAccess
is the implementation for MS SQL databases.
DBAccess
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sibvisions.rad.persist.jdbc.DBAccess |
---|
DBAccess.BlobFileHandle, DBAccess.ParameterizedStatement |
Field Summary |
---|
Fields inherited from class com.sibvisions.rad.persist.jdbc.DBAccess |
---|
BFILE, LONGNVARCHAR, NCHAR, NCLOB, NVARCHAR, QUOTE, SQLXML, TIMESTAMPWITHLOCALTIMEZONE, TIMESTAMPWITHTIMEZONE |
Constructor Summary | |
---|---|
MSSQLDBAccess()
Constructs a new MSSQLDBAccess Object. |
Method Summary | |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object[]> |
getAllowedValuesIntern(java.lang.String pCatalog,
java.lang.String pSchema,
java.lang.String pTable)
Gets the allowed values from a specific table. |
protected java.lang.String |
getTableForSynonymIntern(java.lang.String pSynomyn)
Returns the full qualified table name incl. schema/catalog/db link for the given synonym. |
protected TableInfo |
getTableInfoIntern(java.lang.String pWriteBackTable)
Returns the meta data information for the specified query, and configures all columns with defaults. |
java.lang.Object[] |
insertDatabaseSpecific(java.lang.String pWritebackTable,
java.lang.String pInsertStatement,
ServerMetaData pServerMetaData,
java.lang.Object[] pNewDataRow,
java.lang.String pDummyColumn)
Returns the newly inserted row from a Database specific insert statement. |
boolean |
isAutoQuote(java.lang.String pName)
It returns true if this name should be automated quoted. |
void |
setUsername(java.lang.String pUsername)
Sets the user name to connect with. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MSSQLDBAccess()
Method Detail |
---|
public java.lang.Object[] insertDatabaseSpecific(java.lang.String pWritebackTable, java.lang.String pInsertStatement, ServerMetaData pServerMetaData, java.lang.Object[] pNewDataRow, java.lang.String pDummyColumn) throws DataSourceException
insertDatabaseSpecific
in class DBAccess
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
- 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 storageprotected java.util.Map<java.lang.String,java.lang.Object[]> getAllowedValuesIntern(java.lang.String pCatalog, java.lang.String pSchema, java.lang.String pTable) throws DataSourceException
getAllowedValuesIntern
in class DBAccess
pCatalog
- the catalog namepSchema
- the schema namepTable
- the table to check
Hashtable
with a column name as key and the allowed values as array of Object
s or
null
if there are no allowed values
DataSourceException
- if the database access throws an exceptionpublic boolean isAutoQuote(java.lang.String pName)
DBAccess
isAutoQuote
in class DBAccess
pName
- the name to quote.
public void setUsername(java.lang.String pUsername)
DBAccess
setUsername
in class DBAccess
pUsername
- the user nameprotected TableInfo getTableInfoIntern(java.lang.String pWriteBackTable) throws DataSourceException
getTableInfoIntern
in class DBAccess
pWriteBackTable
- 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 supportedprotected java.lang.String getTableForSynonymIntern(java.lang.String pSynomyn) throws DataSourceException
getTableForSynonymIntern
in class DBAccess
pSynomyn
- the synonym to use.
DataSourceException
- if an error occur in determining the synonyms.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |