OmniSciDB  72180abbfe
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
com.omnisci.jdbc.OmniSciPreparedStatement Class Reference
+ Inheritance diagram for com.omnisci.jdbc.OmniSciPreparedStatement:
+ Collaboration diagram for com.omnisci.jdbc.OmniSciPreparedStatement:

Public Member Functions

ResultSet executeQuery () throws SQLException
 
int executeUpdate () throws SQLException
 
void setNull (int parameterIndex, int sqlType) throws SQLException
 
void setBoolean (int parameterIndex, boolean x) throws SQLException
 
void setByte (int parameterIndex, byte x) throws SQLException
 
void setShort (int parameterIndex, short x) throws SQLException
 
void setInt (int parameterIndex, int x) throws SQLException
 
void setLong (int parameterIndex, long x) throws SQLException
 
void setFloat (int parameterIndex, float x) throws SQLException
 
void setDouble (int parameterIndex, double x) throws SQLException
 
void setBigDecimal (int parameterIndex, BigDecimal x) throws SQLException
 
void setString (int parameterIndex, String x) throws SQLException
 
void setBytes (int parameterIndex, byte[] x) throws SQLException
 
void setDate (int parameterIndex, Date x) throws SQLException
 
void setTime (int parameterIndex, Time x) throws SQLException
 
void setTimestamp (int parameterIndex, Timestamp x) throws SQLException
 
void setAsciiStream (int parameterIndex, InputStream x, int length) throws SQLException
 
void setUnicodeStream (int parameterIndex, InputStream x, int length) throws SQLException
 
void setBinaryStream (int parameterIndex, InputStream x, int length) throws SQLException
 
void clearParameters () throws SQLException
 
void setObject (int parameterIndex, Object x, int targetSqlType) throws SQLException
 
void setObject (int parameterIndex, Object x) throws SQLException
 
boolean execute () throws SQLException
 
void addBatch () throws SQLException
 
void setCharacterStream (int parameterIndex, Reader reader, int length) throws SQLException
 
void setRef (int parameterIndex, Ref x) throws SQLException
 
void setBlob (int parameterIndex, Blob x) throws SQLException
 
void setClob (int parameterIndex, Clob x) throws SQLException
 
void setArray (int parameterIndex, Array x) throws SQLException
 
ResultSetMetaData getMetaData () throws SQLException
 
void setDate (int parameterIndex, Date x, Calendar cal) throws SQLException
 
void setTime (int parameterIndex, Time x, Calendar cal) throws SQLException
 
void setTimestamp (int parameterIndex, Timestamp x, Calendar cal) throws SQLException
 
void setNull (int parameterIndex, int sqlType, String typeName) throws SQLException
 
void setURL (int parameterIndex, URL x) throws SQLException
 
ParameterMetaData getParameterMetaData () throws SQLException
 
void setRowId (int parameterIndex, RowId x) throws SQLException
 
void setNString (int parameterIndex, String value) throws SQLException
 
void setNCharacterStream (int parameterIndex, Reader value, long length) throws SQLException
 
void setNClob (int parameterIndex, NClob value) throws SQLException
 
void setClob (int parameterIndex, Reader reader, long length) throws SQLException
 
void setBlob (int parameterIndex, InputStream inputStream, long length) throws SQLException
 
void setNClob (int parameterIndex, Reader reader, long length) throws SQLException
 
void setSQLXML (int parameterIndex, SQLXML xmlObject) throws SQLException
 
void setObject (int parameterIndex, Object x, int targetSqlType, int scaleOrLength) throws SQLException
 
void setAsciiStream (int parameterIndex, InputStream x, long length) throws SQLException
 
void setBinaryStream (int parameterIndex, InputStream x, long length) throws SQLException
 
void setCharacterStream (int parameterIndex, Reader reader, long length) throws SQLException
 
void setAsciiStream (int parameterIndex, InputStream x) throws SQLException
 
void setBinaryStream (int parameterIndex, InputStream x) throws SQLException
 
void setCharacterStream (int parameterIndex, Reader reader) throws SQLException
 
void setNCharacterStream (int parameterIndex, Reader value) throws SQLException
 
void setClob (int parameterIndex, Reader reader) throws SQLException
 
void setBlob (int parameterIndex, InputStream inputStream) throws SQLException
 
void setNClob (int parameterIndex, Reader reader) throws SQLException
 
ResultSet executeQuery (String sql) throws SQLException
 
int executeUpdate (String sql) throws SQLException
 
void close () throws SQLException
 
int getMaxFieldSize () throws SQLException
 
void setMaxFieldSize (int max) throws SQLException
 
int getMaxRows () throws SQLException
 
void setMaxRows (int max) throws SQLException
 
void setEscapeProcessing (boolean enable) throws SQLException
 
int getQueryTimeout () throws SQLException
 
void setQueryTimeout (int seconds) throws SQLException
 
void cancel () throws SQLException
 
SQLWarning getWarnings () throws SQLException
 
void clearWarnings () throws SQLException
 
void setCursorName (String name) throws SQLException
 
boolean execute (String sql) throws SQLException
 
ResultSet getResultSet () throws SQLException
 
int getUpdateCount () throws SQLException
 
boolean getMoreResults () throws SQLException
 
void setFetchDirection (int direction) throws SQLException
 
int getFetchDirection () throws SQLException
 
void setFetchSize (int rows) throws SQLException
 
int getFetchSize () throws SQLException
 
int getResultSetConcurrency () throws SQLException
 
int getResultSetType () throws SQLException
 
void addBatch (String sql) throws SQLException
 
void clearBatch () throws SQLException
 
int[] executeBatch () throws SQLException
 
Connection getConnection () throws SQLException
 
boolean getMoreResults (int current) throws SQLException
 
ResultSet getGeneratedKeys () throws SQLException
 
int executeUpdate (String sql, int autoGeneratedKeys) throws SQLException
 
int executeUpdate (String sql, int[] columnIndexes) throws SQLException
 
int executeUpdate (String sql, String[] columnNames) throws SQLException
 
boolean execute (String sql, int autoGeneratedKeys) throws SQLException
 
boolean execute (String sql, int[] columnIndexes) throws SQLException
 
boolean execute (String sql, String[] columnNames) throws SQLException
 
int getResultSetHoldability () throws SQLException
 
boolean isClosed () throws SQLException
 
void setPoolable (boolean poolable) throws SQLException
 
boolean isPoolable () throws SQLException
 
void closeOnCompletion () throws SQLException
 
boolean isCloseOnCompletion () throws SQLException
 
boolean isWrapperFor (Class<?> iface) throws SQLException
 

Public Attributes

SQLWarning rootWarning = null
 

Package Functions

 OmniSciPreparedStatement (String sql, String session, OmniSci.Client client)
 
public< T > T unwrap (Class< T > iface) throws SQLException
 

Static Package Attributes

static final Logger MAPDLOGGER
 

Private Member Functions

String getQuery ()
 
boolean isSelect ()
 

Private Attributes

String currentSQL
 
String insertTableName
 
int parmCount = 0
 
String brokenSQL []
 
String parmRep []
 
boolean parmIsNull []
 
int fieldsOrder []
 
int repCount
 
String session
 
OmniSci.Client client
 
OmniSciStatement stmt = null
 
boolean isInsert = false
 
boolean isNewBatch = true
 
boolean[] parmIsString = null
 
List< TStringRow > rows = null
 

Static Private Attributes

static final Pattern REGEX_PATTERN = Pattern.compile("(?i)\\s+INTO\\s+(\\w+)")
 
static final Pattern REGEX_LOF_PATTERN
 
static final Pattern REGEX_IS_SELECT_PATTERN
 

Detailed Description

Author
michael

Definition at line 62 of file OmniSciPreparedStatement.java.

Constructor & Destructor Documentation

com.omnisci.jdbc.OmniSciPreparedStatement.OmniSciPreparedStatement ( String  sql,
String  session,
OmniSci.Client  client 
)
inlinepackage

Definition at line 91 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciPreparedStatement.brokenSQL, com.omnisci.jdbc.OmniSciPreparedStatement.client, com.omnisci.jdbc.OmniSciPreparedStatement.currentSQL, com.omnisci.jdbc.OmniSciPreparedStatement.insertTableName, com.omnisci.jdbc.OmniSciPreparedStatement.isInsert, com.omnisci.jdbc.OmniSciPreparedStatement.parmCount, com.omnisci.jdbc.OmniSciPreparedStatement.parmIsNull, com.omnisci.jdbc.OmniSciPreparedStatement.parmIsString, com.omnisci.jdbc.OmniSciPreparedStatement.parmRep, com.omnisci.jdbc.OmniSciPreparedStatement.repCount, and com.omnisci.jdbc.OmniSciPreparedStatement.session.

Referenced by com.omnisci.jdbc.OmniSciPreparedStatement.getMetaData().

91  {
92  MAPDLOGGER.debug("Entered");
93  currentSQL = sql;
94  this.client = client;
95  this.session = session;
96  this.stmt = new OmniSciStatement(session, client);
97  MAPDLOGGER.debug("Prepared statement is " + currentSQL);
98  // TODO in real life this needs to check if the ? is inside quotes before we assume it
99  // a parameter
100  brokenSQL = currentSQL.split("\\?", -1);
101  parmCount = brokenSQL.length - 1;
102  parmRep = new String[parmCount];
103  parmIsNull = new boolean[parmCount];
104  parmIsString = new boolean[parmCount];
105  repCount = 0;
106  if (currentSQL.toUpperCase().contains("INSERT ")) {
107  // remove double quotes required for queries generated with " around all names like
108  // kafka connect
109  currentSQL = currentSQL.replaceAll("\"", " ");
110  MAPDLOGGER.debug("Insert Prepared statement is " + currentSQL);
111  isInsert = true;
112  Matcher matcher = REGEX_PATTERN.matcher(currentSQL);
113  while (matcher.find()) {
114  insertTableName = matcher.group(1);
115  MAPDLOGGER.debug("Table name for insert is '" + insertTableName + "'");
116  }
117  }
118  }

+ Here is the caller graph for this function:

Member Function Documentation

void com.omnisci.jdbc.OmniSciPreparedStatement.addBatch ( ) throws SQLException
inline

Definition at line 363 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciPreparedStatement.currentSQL, com.omnisci.jdbc.OmniSciPreparedStatement.fieldsOrder, com.omnisci.jdbc.OmniSciPreparedStatement.insertTableName, com.omnisci.jdbc.OmniSciPreparedStatement.isInsert, com.omnisci.jdbc.OmniSciPreparedStatement.isNewBatch, com.omnisci.jdbc.OmniSciPreparedStatement.parmCount, com.omnisci.jdbc.OmniSciPreparedStatement.parmIsNull, com.omnisci.jdbc.OmniSciPreparedStatement.rows, and com.omnisci.jdbc.OmniSciPreparedStatement.session.

363  {
364  MAPDLOGGER.debug("Entered");
365  if (isInsert) {
366  // take the values and use stream inserter to add them
367  if (isNewBatch) {
368  // check for columns names
369  Matcher matcher = REGEX_LOF_PATTERN.matcher(currentSQL);
370  if (matcher.find()) {
371  String listOfFields[] = matcher.group(1).trim().split("\\s*,+\\s*,*\\s*");
372  if (listOfFields.length != parmCount) {
373  throw new SQLException("Too many or too few values");
374  } else if (Arrays.stream(listOfFields).distinct().toArray().length
375  != listOfFields.length) {
376  throw new SQLException("Duplicated column name");
377  }
378  fieldsOrder = new int[listOfFields.length];
379  List<String> listOfColumns = new ArrayList<String>();
380  try {
381  TTableDetails tableDetails =
382  client.get_table_details(session, insertTableName);
383  for (TColumnType column : tableDetails.row_desc) {
384  listOfColumns.add(column.col_name.toLowerCase());
385  }
386  } catch (TException ex) {
387  throw new SQLException(ex.toString());
388  }
389  for (int i = 0; i < fieldsOrder.length; i++) {
390  fieldsOrder[i] = listOfColumns.indexOf(listOfFields[i].toLowerCase());
391  if (fieldsOrder[i] == -1) {
392  throw new SQLException(
393  "Column " + listOfFields[i].toLowerCase() + " does not exist");
394  }
395  }
396  }
397 
398  rows = new ArrayList(5000);
399  isNewBatch = false;
400  }
401  // add data to stream
402  TStringRow tsr = new TStringRow();
403  for (int i = 0; i < parmCount; i++) {
404  // place string in rows array
405  TStringValue tsv = new TStringValue();
406  int colID = fieldsOrder == null ? i : fieldsOrder[i];
407  if (parmIsNull[colID]) {
408  tsv.is_null = true;
409  } else {
410  tsv.str_val = this.parmRep[colID];
411  tsv.is_null = false;
412  }
413  tsr.addToCols(tsv);
414  }
415  rows.add(tsr);
416  MAPDLOGGER.debug("addBatch, rows=" + rows.size());
417  } else {
418  throw new UnsupportedOperationException("addBatch only supported for insert, line:"
419  + new Throwable().getStackTrace()[0].getLineNumber());
420  }
421  }
void com.omnisci.jdbc.OmniSciPreparedStatement.addBatch ( String  sql) throws SQLException
inline

Definition at line 929 of file OmniSciPreparedStatement.java.

929  {
930  MAPDLOGGER.debug("Entered");
931  throw new UnsupportedOperationException("Not supported yet,"
932  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
933  + " class:" + new Throwable().getStackTrace()[0].getClassName()
934  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
935  }
void com.omnisci.jdbc.OmniSciPreparedStatement.cancel ( ) throws SQLException
inline

Definition at line 819 of file OmniSciPreparedStatement.java.

819  {
820  MAPDLOGGER.debug("Entered");
821  throw new UnsupportedOperationException("Not supported yet,"
822  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
823  + " class:" + new Throwable().getStackTrace()[0].getClassName()
824  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
825  }
void com.omnisci.jdbc.OmniSciPreparedStatement.clearBatch ( ) throws SQLException
inline

Definition at line 938 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciPreparedStatement.rows.

Referenced by com.omnisci.jdbc.OmniSciPreparedStatement.executeBatch().

938  {
939  MAPDLOGGER.debug("Entered");
940  if (rows != null) {
941  rows.clear();
942  }
943  }

+ Here is the caller graph for this function:

void com.omnisci.jdbc.OmniSciPreparedStatement.clearParameters ( ) throws SQLException
inline

Definition at line 331 of file OmniSciPreparedStatement.java.

331  {
332  MAPDLOGGER.debug("Entered");
333  // TODO MAT we will actually need to do something here one day
334  }
void com.omnisci.jdbc.OmniSciPreparedStatement.clearWarnings ( ) throws SQLException
inline

Definition at line 834 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciPreparedStatement.rootWarning.

834  {
835  MAPDLOGGER.debug("Entered");
836  rootWarning = null;
837  }
void com.omnisci.jdbc.OmniSciPreparedStatement.close ( ) throws SQLException
inline

Definition at line 752 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciPreparedStatement.stmt.

752  {
753  MAPDLOGGER.debug("close");
754  if (stmt != null) {
755  // TODO MAT probably more needed here
756  stmt.close();
757  stmt = null;
758  }
759  }
void com.omnisci.jdbc.OmniSciPreparedStatement.closeOnCompletion ( ) throws SQLException
inline

Definition at line 1085 of file OmniSciPreparedStatement.java.

1085  {
1086  MAPDLOGGER.debug("Entered");
1087  throw new UnsupportedOperationException("Not supported yet,"
1088  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1089  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1090  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1091  }
boolean com.omnisci.jdbc.OmniSciPreparedStatement.execute ( ) throws SQLException
inline

Definition at line 356 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciPreparedStatement.getQuery().

356  {
357  MAPDLOGGER.debug("Entered");
358  String tQuery = getQuery();
359  return stmt.execute(tQuery);
360  }

+ Here is the call graph for this function:

boolean com.omnisci.jdbc.OmniSciPreparedStatement.execute ( String  sql) throws SQLException
inline

Definition at line 849 of file OmniSciPreparedStatement.java.

849  {
850  MAPDLOGGER.debug("Entered");
851  throw new UnsupportedOperationException("Not supported yet,"
852  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
853  + " class:" + new Throwable().getStackTrace()[0].getClassName()
854  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
855  }
boolean com.omnisci.jdbc.OmniSciPreparedStatement.execute ( String  sql,
int  autoGeneratedKeys 
) throws SQLException
inline

Definition at line 1022 of file OmniSciPreparedStatement.java.

1022  {
1023  MAPDLOGGER.debug("Entered");
1024  throw new UnsupportedOperationException("Not supported yet,"
1025  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1026  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1027  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1028  }
boolean com.omnisci.jdbc.OmniSciPreparedStatement.execute ( String  sql,
int[]  columnIndexes 
) throws SQLException
inline

Definition at line 1031 of file OmniSciPreparedStatement.java.

1031  {
1032  MAPDLOGGER.debug("Entered");
1033  throw new UnsupportedOperationException("Not supported yet,"
1034  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1035  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1036  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1037  }
boolean com.omnisci.jdbc.OmniSciPreparedStatement.execute ( String  sql,
String[]  columnNames 
) throws SQLException
inline

Definition at line 1040 of file OmniSciPreparedStatement.java.

1040  {
1041  MAPDLOGGER.debug("Entered");
1042  throw new UnsupportedOperationException("Not supported yet,"
1043  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1044  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1045  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1046  }
int [] com.omnisci.jdbc.OmniSciPreparedStatement.executeBatch ( ) throws SQLException
inline

Definition at line 946 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciPreparedStatement.clearBatch(), com.omnisci.jdbc.OmniSciPreparedStatement.insertTableName, com.omnisci.jdbc.OmniSciPreparedStatement.rows, and com.omnisci.jdbc.OmniSciPreparedStatement.session.

946  {
947  int ret[] = null;
948  if (rows != null) {
949  MAPDLOGGER.debug("executeBatch, rows=" + rows.size());
950  try {
951  // send the batch
952  client.load_table(session, insertTableName, rows);
953  } catch (TOmniSciException ex) {
954  throw new SQLException("executeBatch failed: " + ex.getError_msg());
955  } catch (TException ex) {
956  throw new SQLException("executeBatch failed: " + ex.toString());
957  }
958  ret = new int[rows.size()];
959  for (int i = 0; i < rows.size(); i++) {
960  ret[i] = 1;
961  }
962  clearBatch();
963  }
964  return ret;
965  }

+ Here is the call graph for this function:

ResultSet com.omnisci.jdbc.OmniSciPreparedStatement.executeQuery ( ) throws SQLException
inline

Definition at line 160 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciPreparedStatement.getQuery(), and com.omnisci.jdbc.OmniSciPreparedStatement.isNewBatch.

Referenced by com.omnisci.jdbc.OmniSciPreparedStatement.executeUpdate().

160  {
161  if (isNewBatch) {
162  String qsql = getQuery();
163  MAPDLOGGER.debug("executeQuery, sql=" + qsql);
164  return stmt.executeQuery(qsql);
165  }
166  throw new UnsupportedOperationException("Not supported yet,"
167  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
168  + " class:" + new Throwable().getStackTrace()[0].getClassName()
169  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
170  }

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ResultSet com.omnisci.jdbc.OmniSciPreparedStatement.executeQuery ( String  sql) throws SQLException
inline

Definition at line 734 of file OmniSciPreparedStatement.java.

734  {
735  MAPDLOGGER.debug("Entered");
736  throw new UnsupportedOperationException("Not supported yet,"
737  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
738  + " class:" + new Throwable().getStackTrace()[0].getClassName()
739  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
740  }
int com.omnisci.jdbc.OmniSciPreparedStatement.executeUpdate ( ) throws SQLException
inline

Definition at line 173 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciPreparedStatement.executeQuery().

173  {
174  MAPDLOGGER.debug("Entered");
175  executeQuery();
176  return 1;
177  }

+ Here is the call graph for this function:

int com.omnisci.jdbc.OmniSciPreparedStatement.executeUpdate ( String  sql) throws SQLException
inline

Definition at line 743 of file OmniSciPreparedStatement.java.

743  {
744  MAPDLOGGER.debug("Entered");
745  throw new UnsupportedOperationException("Not supported yet,"
746  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
747  + " class:" + new Throwable().getStackTrace()[0].getClassName()
748  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
749  }
int com.omnisci.jdbc.OmniSciPreparedStatement.executeUpdate ( String  sql,
int  autoGeneratedKeys 
) throws SQLException
inline

Definition at line 995 of file OmniSciPreparedStatement.java.

995  {
996  MAPDLOGGER.debug("Entered");
997  throw new UnsupportedOperationException("Not supported yet,"
998  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
999  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1000  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1001  }
int com.omnisci.jdbc.OmniSciPreparedStatement.executeUpdate ( String  sql,
int[]  columnIndexes 
) throws SQLException
inline

Definition at line 1004 of file OmniSciPreparedStatement.java.

1004  {
1005  MAPDLOGGER.debug("Entered");
1006  throw new UnsupportedOperationException("Not supported yet,"
1007  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1008  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1009  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1010  }
int com.omnisci.jdbc.OmniSciPreparedStatement.executeUpdate ( String  sql,
String[]  columnNames 
) throws SQLException
inline

Definition at line 1013 of file OmniSciPreparedStatement.java.

1013  {
1014  MAPDLOGGER.debug("Entered");
1015  throw new UnsupportedOperationException("Not supported yet,"
1016  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1017  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1018  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1019  }
Connection com.omnisci.jdbc.OmniSciPreparedStatement.getConnection ( ) throws SQLException
inline

Definition at line 968 of file OmniSciPreparedStatement.java.

968  {
969  MAPDLOGGER.debug("Entered");
970  throw new UnsupportedOperationException("Not supported yet,"
971  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
972  + " class:" + new Throwable().getStackTrace()[0].getClassName()
973  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
974  }
int com.omnisci.jdbc.OmniSciPreparedStatement.getFetchDirection ( ) throws SQLException
inline

Definition at line 886 of file OmniSciPreparedStatement.java.

886  {
887  MAPDLOGGER.debug("Entered");
888  throw new UnsupportedOperationException("Not supported yet,"
889  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
890  + " class:" + new Throwable().getStackTrace()[0].getClassName()
891  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
892  }
int com.omnisci.jdbc.OmniSciPreparedStatement.getFetchSize ( ) throws SQLException
inline

Definition at line 902 of file OmniSciPreparedStatement.java.

902  {
903  MAPDLOGGER.debug("Entered");
904  throw new UnsupportedOperationException("Not supported yet,"
905  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
906  + " class:" + new Throwable().getStackTrace()[0].getClassName()
907  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
908  }
ResultSet com.omnisci.jdbc.OmniSciPreparedStatement.getGeneratedKeys ( ) throws SQLException
inline

Definition at line 986 of file OmniSciPreparedStatement.java.

986  {
987  MAPDLOGGER.debug("Entered");
988  throw new UnsupportedOperationException("Not supported yet,"
989  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
990  + " class:" + new Throwable().getStackTrace()[0].getClassName()
991  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
992  }
int com.omnisci.jdbc.OmniSciPreparedStatement.getMaxFieldSize ( ) throws SQLException
inline

Definition at line 762 of file OmniSciPreparedStatement.java.

762  {
763  MAPDLOGGER.debug("Entered");
764  throw new UnsupportedOperationException("Not supported yet,"
765  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
766  + " class:" + new Throwable().getStackTrace()[0].getClassName()
767  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
768  }
int com.omnisci.jdbc.OmniSciPreparedStatement.getMaxRows ( ) throws SQLException
inline

Definition at line 780 of file OmniSciPreparedStatement.java.

780  {
781  MAPDLOGGER.debug("Entered");
782  return stmt.getMaxRows();
783  }
ResultSetMetaData com.omnisci.jdbc.OmniSciPreparedStatement.getMetaData ( ) throws SQLException
inline

Definition at line 469 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciPreparedStatement.client, com.omnisci.jdbc.OmniSciPreparedStatement.currentSQL, com.omnisci.jdbc.OmniSciStatement.getResultSet(), com.omnisci.jdbc.OmniSciPreparedStatement.isSelect(), com.omnisci.jdbc.OmniSciPreparedStatement.OmniSciPreparedStatement(), com.omnisci.jdbc.OmniSciPreparedStatement.session, and com.omnisci.jdbc.OmniSciPreparedStatement.stmt.

469  {
470  MAPDLOGGER.debug("Entered");
471  if (!isSelect()) {
472  return null;
473  }
474  if (stmt.getResultSet() != null) {
475  return stmt.getResultSet().getMetaData();
476  }
477  PreparedStatement ps = null;
478  try {
480  ps.setMaxRows(0);
481  for (int i = 1; i <= this.parmCount; ++i) {
482  ps.setNull(i, Types.NULL);
483  }
484  ResultSet rs = ps.executeQuery();
485  if (rs != null) {
486  return rs.getMetaData();
487  } else {
488  return null;
489  }
490  } finally {
491  if (ps != null) {
492  ps.close();
493  }
494  }
495  }
OmniSciPreparedStatement(String sql, String session, OmniSci.Client client)

+ Here is the call graph for this function:

boolean com.omnisci.jdbc.OmniSciPreparedStatement.getMoreResults ( ) throws SQLException
inline

Definition at line 871 of file OmniSciPreparedStatement.java.

871  {
872  MAPDLOGGER.debug("Entered");
873  return stmt.getMoreResults();
874  }
boolean com.omnisci.jdbc.OmniSciPreparedStatement.getMoreResults ( int  current) throws SQLException
inline

Definition at line 977 of file OmniSciPreparedStatement.java.

977  {
978  MAPDLOGGER.debug("Entered");
979  throw new UnsupportedOperationException("Not supported yet,"
980  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
981  + " class:" + new Throwable().getStackTrace()[0].getClassName()
982  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
983  }
ParameterMetaData com.omnisci.jdbc.OmniSciPreparedStatement.getParameterMetaData ( ) throws SQLException
inline

Definition at line 545 of file OmniSciPreparedStatement.java.

545  {
546  MAPDLOGGER.debug("Entered");
547  throw new UnsupportedOperationException("Not supported yet,"
548  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
549  + " class:" + new Throwable().getStackTrace()[0].getClassName()
550  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
551  }
String com.omnisci.jdbc.OmniSciPreparedStatement.getQuery ( )
inlineprivate

Definition at line 120 of file OmniSciPreparedStatement.java.

References File_Namespace.append(), com.omnisci.jdbc.OmniSciPreparedStatement.brokenSQL, com.omnisci.jdbc.OmniSciPreparedStatement.currentSQL, com.omnisci.jdbc.OmniSciPreparedStatement.parmCount, com.omnisci.jdbc.OmniSciPreparedStatement.parmIsNull, com.omnisci.jdbc.OmniSciPreparedStatement.parmIsString, com.omnisci.jdbc.OmniSciPreparedStatement.parmRep, and com.omnisci.jdbc.OmniSciPreparedStatement.repCount.

Referenced by com.omnisci.jdbc.OmniSciPreparedStatement.execute(), and com.omnisci.jdbc.OmniSciPreparedStatement.executeQuery().

120  {
121  String qsql;
122  // put string together if required
123  if (parmCount > 0) {
124  if (repCount != parmCount) {
125  throw new UnsupportedOperationException(
126  "Incorrect number of replace parameters for prepared statement "
127  + currentSQL + " has only " + repCount + " parameters");
128  }
129  StringBuilder modQuery = new StringBuilder(currentSQL.length() * 5);
130  for (int i = 0; i < repCount; i++) {
131  modQuery.append(brokenSQL[i]);
132  if (parmIsNull[i]) {
133  modQuery.append("NULL");
134  } else {
135  if (parmIsString[i]) {
136  modQuery.append("'").append(parmRep[i]).append("'");
137  } else {
138  modQuery.append(parmRep[i]);
139  }
140  }
141  }
142  modQuery.append(brokenSQL[parmCount]);
143  qsql = modQuery.toString();
144  } else {
145  qsql = currentSQL;
146  }
147 
148  qsql = qsql.replace(" WHERE 1=0", " LIMIT 1 ");
149  MAPDLOGGER.debug("Query is now " + qsql);
150  repCount = 0; // reset the parameters
151  return qsql;
152  }
size_t append(FILE *f, const size_t size, int8_t *buf)
Appends the specified number of bytes to the end of the file f from buf.
Definition: File.cpp:135

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int com.omnisci.jdbc.OmniSciPreparedStatement.getQueryTimeout ( ) throws SQLException
inline

Definition at line 802 of file OmniSciPreparedStatement.java.

802  {
803  MAPDLOGGER.debug("Entered");
804  return 0;
805  }
ResultSet com.omnisci.jdbc.OmniSciPreparedStatement.getResultSet ( ) throws SQLException
inline

Definition at line 858 of file OmniSciPreparedStatement.java.

858  {
859  MAPDLOGGER.debug("Entered");
860  return stmt.getResultSet();
861  }
int com.omnisci.jdbc.OmniSciPreparedStatement.getResultSetConcurrency ( ) throws SQLException
inline

Definition at line 911 of file OmniSciPreparedStatement.java.

911  {
912  MAPDLOGGER.debug("Entered");
913  throw new UnsupportedOperationException("Not supported yet,"
914  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
915  + " class:" + new Throwable().getStackTrace()[0].getClassName()
916  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
917  }
int com.omnisci.jdbc.OmniSciPreparedStatement.getResultSetHoldability ( ) throws SQLException
inline

Definition at line 1049 of file OmniSciPreparedStatement.java.

1049  {
1050  MAPDLOGGER.debug("Entered");
1051  throw new UnsupportedOperationException("Not supported yet,"
1052  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1053  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1054  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1055  }
int com.omnisci.jdbc.OmniSciPreparedStatement.getResultSetType ( ) throws SQLException
inline

Definition at line 920 of file OmniSciPreparedStatement.java.

920  {
921  MAPDLOGGER.debug("Entered");
922  throw new UnsupportedOperationException("Not supported yet,"
923  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
924  + " class:" + new Throwable().getStackTrace()[0].getClassName()
925  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
926  }
int com.omnisci.jdbc.OmniSciPreparedStatement.getUpdateCount ( ) throws SQLException
inline

Definition at line 864 of file OmniSciPreparedStatement.java.

864  {
865  MAPDLOGGER.debug("Entered");
866  // TODO MAT this needs to change when updates are added
867  return 0;
868  }
SQLWarning com.omnisci.jdbc.OmniSciPreparedStatement.getWarnings ( ) throws SQLException
inline

Definition at line 828 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciPreparedStatement.rootWarning.

828  {
829  MAPDLOGGER.debug("Entered");
830  return rootWarning;
831  }
boolean com.omnisci.jdbc.OmniSciPreparedStatement.isClosed ( ) throws SQLException
inline

Definition at line 1058 of file OmniSciPreparedStatement.java.

1058  {
1059  MAPDLOGGER.debug("Entered");
1060  throw new UnsupportedOperationException("Not supported yet,"
1061  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1062  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1063  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1064  }
boolean com.omnisci.jdbc.OmniSciPreparedStatement.isCloseOnCompletion ( ) throws SQLException
inline

Definition at line 1094 of file OmniSciPreparedStatement.java.

1094  {
1095  MAPDLOGGER.debug("Entered");
1096  throw new UnsupportedOperationException("Not supported yet,"
1097  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1098  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1099  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1100  }
boolean com.omnisci.jdbc.OmniSciPreparedStatement.isPoolable ( ) throws SQLException
inline

Definition at line 1076 of file OmniSciPreparedStatement.java.

1076  {
1077  MAPDLOGGER.debug("Entered");
1078  throw new UnsupportedOperationException("Not supported yet,"
1079  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1080  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1081  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1082  }
boolean com.omnisci.jdbc.OmniSciPreparedStatement.isSelect ( )
inlineprivate

Definition at line 154 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciPreparedStatement.currentSQL.

Referenced by com.omnisci.jdbc.OmniSciPreparedStatement.getMetaData().

154  {
155  Matcher matcher = REGEX_IS_SELECT_PATTERN.matcher(currentSQL);
156  return matcher.matches();
157  }

+ Here is the caller graph for this function:

boolean com.omnisci.jdbc.OmniSciPreparedStatement.isWrapperFor ( Class<?>  iface) throws SQLException
inline

Definition at line 1112 of file OmniSciPreparedStatement.java.

1112  {
1113  MAPDLOGGER.debug("Entered");
1114  throw new UnsupportedOperationException("Not supported yet,"
1115  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1116  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1117  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1118  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setArray ( int  parameterIndex,
Array  x 
) throws SQLException
inline
void com.omnisci.jdbc.OmniSciPreparedStatement.setAsciiStream ( int  parameterIndex,
InputStream  x,
int  length 
) throws SQLException
inline

Definition at line 301 of file OmniSciPreparedStatement.java.

302  {
303  MAPDLOGGER.debug("Entered");
304  throw new UnsupportedOperationException("Not supported yet,"
305  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
306  + " class:" + new Throwable().getStackTrace()[0].getClassName()
307  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
308  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setAsciiStream ( int  parameterIndex,
InputStream  x,
long  length 
) throws SQLException
inline

Definition at line 641 of file OmniSciPreparedStatement.java.

642  {
643  MAPDLOGGER.debug("Entered");
644  throw new UnsupportedOperationException("Not supported yet,"
645  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
646  + " class:" + new Throwable().getStackTrace()[0].getClassName()
647  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
648  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setAsciiStream ( int  parameterIndex,
InputStream  x 
) throws SQLException
inline

Definition at line 671 of file OmniSciPreparedStatement.java.

671  {
672  MAPDLOGGER.debug("Entered");
673  throw new UnsupportedOperationException("Not supported yet,"
674  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
675  + " class:" + new Throwable().getStackTrace()[0].getClassName()
676  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
677  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setBigDecimal ( int  parameterIndex,
BigDecimal  x 
) throws SQLException
inline
void com.omnisci.jdbc.OmniSciPreparedStatement.setBinaryStream ( int  parameterIndex,
InputStream  x,
int  length 
) throws SQLException
inline

Definition at line 321 of file OmniSciPreparedStatement.java.

322  {
323  MAPDLOGGER.debug("Entered");
324  throw new UnsupportedOperationException("Not supported yet,"
325  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
326  + " class:" + new Throwable().getStackTrace()[0].getClassName()
327  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
328  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setBinaryStream ( int  parameterIndex,
InputStream  x,
long  length 
) throws SQLException
inline

Definition at line 651 of file OmniSciPreparedStatement.java.

652  {
653  MAPDLOGGER.debug("Entered");
654  throw new UnsupportedOperationException("Not supported yet,"
655  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
656  + " class:" + new Throwable().getStackTrace()[0].getClassName()
657  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
658  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setBinaryStream ( int  parameterIndex,
InputStream  x 
) throws SQLException
inline

Definition at line 680 of file OmniSciPreparedStatement.java.

680  {
681  MAPDLOGGER.debug("Entered");
682  throw new UnsupportedOperationException("Not supported yet,"
683  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
684  + " class:" + new Throwable().getStackTrace()[0].getClassName()
685  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
686  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setBlob ( int  parameterIndex,
Blob  x 
) throws SQLException
inline

Definition at line 443 of file OmniSciPreparedStatement.java.

443  {
444  MAPDLOGGER.debug("Entered");
445  throw new UnsupportedOperationException("Not supported yet,"
446  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
447  + " class:" + new Throwable().getStackTrace()[0].getClassName()
448  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
449  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setBlob ( int  parameterIndex,
InputStream  inputStream,
long  length 
) throws SQLException
inline

Definition at line 601 of file OmniSciPreparedStatement.java.

602  {
603  MAPDLOGGER.debug("Entered");
604  throw new UnsupportedOperationException("Not supported yet,"
605  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
606  + " class:" + new Throwable().getStackTrace()[0].getClassName()
607  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
608  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setBlob ( int  parameterIndex,
InputStream  inputStream 
) throws SQLException
inline

Definition at line 716 of file OmniSciPreparedStatement.java.

716  {
717  MAPDLOGGER.debug("Entered");
718  throw new UnsupportedOperationException("Not supported yet,"
719  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
720  + " class:" + new Throwable().getStackTrace()[0].getClassName()
721  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
722  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setBoolean ( int  parameterIndex,
boolean  x 
) throws SQLException
inline
void com.omnisci.jdbc.OmniSciPreparedStatement.setByte ( int  parameterIndex,
byte  x 
) throws SQLException
inline

Definition at line 196 of file OmniSciPreparedStatement.java.

196  {
197  MAPDLOGGER.debug("Entered");
198  throw new UnsupportedOperationException("Not supported yet,"
199  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
200  + " class:" + new Throwable().getStackTrace()[0].getClassName()
201  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
202  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setBytes ( int  parameterIndex,
byte[]  x 
) throws SQLException
inline

Definition at line 264 of file OmniSciPreparedStatement.java.

264  {
265  MAPDLOGGER.debug("Entered");
266  throw new UnsupportedOperationException("Not supported yet,"
267  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
268  + " class:" + new Throwable().getStackTrace()[0].getClassName()
269  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
270  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setCharacterStream ( int  parameterIndex,
Reader  reader,
int  length 
) throws SQLException
inline

Definition at line 424 of file OmniSciPreparedStatement.java.

425  {
426  MAPDLOGGER.debug("Entered");
427  throw new UnsupportedOperationException("Not supported yet,"
428  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
429  + " class:" + new Throwable().getStackTrace()[0].getClassName()
430  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
431  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setCharacterStream ( int  parameterIndex,
Reader  reader,
long  length 
) throws SQLException
inline

Definition at line 661 of file OmniSciPreparedStatement.java.

662  {
663  MAPDLOGGER.debug("Entered");
664  throw new UnsupportedOperationException("Not supported yet,"
665  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
666  + " class:" + new Throwable().getStackTrace()[0].getClassName()
667  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
668  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setCharacterStream ( int  parameterIndex,
Reader  reader 
) throws SQLException
inline

Definition at line 689 of file OmniSciPreparedStatement.java.

689  {
690  MAPDLOGGER.debug("Entered");
691  throw new UnsupportedOperationException("Not supported yet,"
692  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
693  + " class:" + new Throwable().getStackTrace()[0].getClassName()
694  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
695  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setClob ( int  parameterIndex,
Clob  x 
) throws SQLException
inline

Definition at line 452 of file OmniSciPreparedStatement.java.

452  {
453  MAPDLOGGER.debug("Entered");
454  throw new UnsupportedOperationException("Not supported yet,"
455  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
456  + " class:" + new Throwable().getStackTrace()[0].getClassName()
457  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
458  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setClob ( int  parameterIndex,
Reader  reader,
long  length 
) throws SQLException
inline

Definition at line 591 of file OmniSciPreparedStatement.java.

592  {
593  MAPDLOGGER.debug("Entered");
594  throw new UnsupportedOperationException("Not supported yet,"
595  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
596  + " class:" + new Throwable().getStackTrace()[0].getClassName()
597  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
598  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setClob ( int  parameterIndex,
Reader  reader 
) throws SQLException
inline

Definition at line 707 of file OmniSciPreparedStatement.java.

707  {
708  MAPDLOGGER.debug("Entered");
709  throw new UnsupportedOperationException("Not supported yet,"
710  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
711  + " class:" + new Throwable().getStackTrace()[0].getClassName()
712  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
713  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setCursorName ( String  name) throws SQLException
inline

Definition at line 840 of file OmniSciPreparedStatement.java.

840  {
841  MAPDLOGGER.debug("Entered");
842  throw new UnsupportedOperationException("Not supported yet,"
843  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
844  + " class:" + new Throwable().getStackTrace()[0].getClassName()
845  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
846  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setDate ( int  parameterIndex,
Date  x 
) throws SQLException
inline
void com.omnisci.jdbc.OmniSciPreparedStatement.setDate ( int  parameterIndex,
Date  x,
Calendar  cal 
) throws SQLException
inline

Definition at line 498 of file OmniSciPreparedStatement.java.

498  {
499  MAPDLOGGER.debug("Entered");
500  throw new UnsupportedOperationException("Not supported yet,"
501  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
502  + " class:" + new Throwable().getStackTrace()[0].getClassName()
503  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
504  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setDouble ( int  parameterIndex,
double  x 
) throws SQLException
inline
void com.omnisci.jdbc.OmniSciPreparedStatement.setEscapeProcessing ( boolean  enable) throws SQLException
inline

Definition at line 793 of file OmniSciPreparedStatement.java.

793  {
794  MAPDLOGGER.debug("Entered");
795  throw new UnsupportedOperationException("Not supported yet,"
796  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
797  + " class:" + new Throwable().getStackTrace()[0].getClassName()
798  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
799  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setFetchDirection ( int  direction) throws SQLException
inline

Definition at line 877 of file OmniSciPreparedStatement.java.

877  {
878  MAPDLOGGER.debug("Entered");
879  throw new UnsupportedOperationException("Not supported yet,"
880  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
881  + " class:" + new Throwable().getStackTrace()[0].getClassName()
882  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
883  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setFetchSize ( int  rows) throws SQLException
inline

Definition at line 895 of file OmniSciPreparedStatement.java.

895  {
896  MAPDLOGGER.debug("Entered");
897  // TODO we need to chnage the model to allow smaller select chunks at the moment you
898  // get everything
899  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setFloat ( int  parameterIndex,
float  x 
) throws SQLException
inline
void com.omnisci.jdbc.OmniSciPreparedStatement.setInt ( int  parameterIndex,
int  x 
) throws SQLException
inline
void com.omnisci.jdbc.OmniSciPreparedStatement.setLong ( int  parameterIndex,
long  x 
) throws SQLException
inline
void com.omnisci.jdbc.OmniSciPreparedStatement.setMaxFieldSize ( int  max) throws SQLException
inline

Definition at line 771 of file OmniSciPreparedStatement.java.

771  {
772  MAPDLOGGER.debug("Entered");
773  throw new UnsupportedOperationException("Not supported yet,"
774  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
775  + " class:" + new Throwable().getStackTrace()[0].getClassName()
776  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
777  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setMaxRows ( int  max) throws SQLException
inline

Definition at line 786 of file OmniSciPreparedStatement.java.

786  {
787  MAPDLOGGER.debug("Entered");
788  MAPDLOGGER.debug("SetMaxRows to " + max);
789  stmt.setMaxRows(max);
790  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setNCharacterStream ( int  parameterIndex,
Reader  value,
long  length 
) throws SQLException
inline

Definition at line 572 of file OmniSciPreparedStatement.java.

573  {
574  MAPDLOGGER.debug("Entered");
575  throw new UnsupportedOperationException("Not supported yet,"
576  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
577  + " class:" + new Throwable().getStackTrace()[0].getClassName()
578  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
579  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setNCharacterStream ( int  parameterIndex,
Reader  value 
) throws SQLException
inline

Definition at line 698 of file OmniSciPreparedStatement.java.

698  {
699  MAPDLOGGER.debug("Entered");
700  throw new UnsupportedOperationException("Not supported yet,"
701  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
702  + " class:" + new Throwable().getStackTrace()[0].getClassName()
703  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
704  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setNClob ( int  parameterIndex,
NClob  value 
) throws SQLException
inline

Definition at line 582 of file OmniSciPreparedStatement.java.

582  {
583  MAPDLOGGER.debug("Entered");
584  throw new UnsupportedOperationException("Not supported yet,"
585  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
586  + " class:" + new Throwable().getStackTrace()[0].getClassName()
587  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
588  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setNClob ( int  parameterIndex,
Reader  reader,
long  length 
) throws SQLException
inline

Definition at line 611 of file OmniSciPreparedStatement.java.

612  {
613  MAPDLOGGER.debug("Entered");
614  throw new UnsupportedOperationException("Not supported yet,"
615  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
616  + " class:" + new Throwable().getStackTrace()[0].getClassName()
617  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
618  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setNClob ( int  parameterIndex,
Reader  reader 
) throws SQLException
inline

Definition at line 725 of file OmniSciPreparedStatement.java.

725  {
726  MAPDLOGGER.debug("Entered");
727  throw new UnsupportedOperationException("Not supported yet,"
728  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
729  + " class:" + new Throwable().getStackTrace()[0].getClassName()
730  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
731  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setNString ( int  parameterIndex,
String  value 
) throws SQLException
inline

Definition at line 563 of file OmniSciPreparedStatement.java.

563  {
564  MAPDLOGGER.debug("Entered");
565  throw new UnsupportedOperationException("Not supported yet,"
566  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
567  + " class:" + new Throwable().getStackTrace()[0].getClassName()
568  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
569  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setNull ( int  parameterIndex,
int  sqlType 
) throws SQLException
inline
void com.omnisci.jdbc.OmniSciPreparedStatement.setNull ( int  parameterIndex,
int  sqlType,
String  typeName 
) throws SQLException
inline

Definition at line 526 of file OmniSciPreparedStatement.java.

527  {
528  MAPDLOGGER.debug("Entered");
529  throw new UnsupportedOperationException("Not supported yet,"
530  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
531  + " class:" + new Throwable().getStackTrace()[0].getClassName()
532  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
533  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setObject ( int  parameterIndex,
Object  x,
int  targetSqlType 
) throws SQLException
inline

Definition at line 337 of file OmniSciPreparedStatement.java.

338  {
339  MAPDLOGGER.debug("Entered");
340  throw new UnsupportedOperationException("Not supported yet,"
341  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
342  + " class:" + new Throwable().getStackTrace()[0].getClassName()
343  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
344  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setObject ( int  parameterIndex,
Object  x 
) throws SQLException
inline

Definition at line 347 of file OmniSciPreparedStatement.java.

347  {
348  MAPDLOGGER.debug("Entered");
349  throw new UnsupportedOperationException("Not supported yet,"
350  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
351  + " class:" + new Throwable().getStackTrace()[0].getClassName()
352  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
353  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setObject ( int  parameterIndex,
Object  x,
int  targetSqlType,
int  scaleOrLength 
) throws SQLException
inline

Definition at line 630 of file OmniSciPreparedStatement.java.

632  {
633  MAPDLOGGER.debug("Entered");
634  throw new UnsupportedOperationException("Not supported yet,"
635  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
636  + " class:" + new Throwable().getStackTrace()[0].getClassName()
637  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
638  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setPoolable ( boolean  poolable) throws SQLException
inline

Definition at line 1067 of file OmniSciPreparedStatement.java.

1067  {
1068  MAPDLOGGER.debug("Entered");
1069  throw new UnsupportedOperationException("Not supported yet,"
1070  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1071  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1072  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1073  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setQueryTimeout ( int  seconds) throws SQLException
inline

Definition at line 808 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciPreparedStatement.rootWarning.

808  {
809  MAPDLOGGER.debug("Entered");
810  SQLWarning warning = new SQLWarning(
811  "Query timeouts are not supported. Substituting a value of zero.");
812  if (rootWarning == null)
813  rootWarning = warning;
814  else
815  rootWarning.setNextWarning(warning);
816  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setRef ( int  parameterIndex,
Ref  x 
) throws SQLException
inline

Definition at line 434 of file OmniSciPreparedStatement.java.

434  {
435  MAPDLOGGER.debug("Entered");
436  throw new UnsupportedOperationException("Not supported yet,"
437  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
438  + " class:" + new Throwable().getStackTrace()[0].getClassName()
439  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
440  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setRowId ( int  parameterIndex,
RowId  x 
) throws SQLException
inline

Definition at line 554 of file OmniSciPreparedStatement.java.

554  {
555  MAPDLOGGER.debug("Entered");
556  throw new UnsupportedOperationException("Not supported yet,"
557  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
558  + " class:" + new Throwable().getStackTrace()[0].getClassName()
559  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
560  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setShort ( int  parameterIndex,
short  x 
) throws SQLException
inline
void com.omnisci.jdbc.OmniSciPreparedStatement.setSQLXML ( int  parameterIndex,
SQLXML  xmlObject 
) throws SQLException
inline

Definition at line 621 of file OmniSciPreparedStatement.java.

621  {
622  MAPDLOGGER.debug("Entered");
623  throw new UnsupportedOperationException("Not supported yet,"
624  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
625  + " class:" + new Throwable().getStackTrace()[0].getClassName()
626  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
627  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setString ( int  parameterIndex,
String  x 
) throws SQLException
inline

Definition at line 253 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciPreparedStatement.parmIsNull, com.omnisci.jdbc.OmniSciPreparedStatement.parmIsString, com.omnisci.jdbc.OmniSciPreparedStatement.parmRep, and com.omnisci.jdbc.OmniSciPreparedStatement.repCount.

253  {
254  MAPDLOGGER.debug("Entered");
255  // add extra ' if there are any in string
256  x = x.replaceAll("'", "''");
257  parmRep[parameterIndex - 1] = x;
258  parmIsString[parameterIndex - 1] = true;
259  parmIsNull[parameterIndex - 1] = false;
260  repCount++;
261  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setTime ( int  parameterIndex,
Time  x 
) throws SQLException
inline
void com.omnisci.jdbc.OmniSciPreparedStatement.setTime ( int  parameterIndex,
Time  x,
Calendar  cal 
) throws SQLException
inline

Definition at line 507 of file OmniSciPreparedStatement.java.

507  {
508  MAPDLOGGER.debug("Entered");
509  throw new UnsupportedOperationException("Not supported yet,"
510  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
511  + " class:" + new Throwable().getStackTrace()[0].getClassName()
512  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
513  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setTimestamp ( int  parameterIndex,
Timestamp  x 
) throws SQLException
inline

Definition at line 291 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciPreparedStatement.parmIsNull, com.omnisci.jdbc.OmniSciPreparedStatement.parmIsString, com.omnisci.jdbc.OmniSciPreparedStatement.parmRep, and com.omnisci.jdbc.OmniSciPreparedStatement.repCount.

291  {
292  MAPDLOGGER.debug("Entered");
293  parmRep[parameterIndex - 1] =
294  x.toString(); // new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(x);
295  parmIsString[parameterIndex - 1] = true;
296  parmIsNull[parameterIndex - 1] = false;
297  repCount++;
298  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setTimestamp ( int  parameterIndex,
Timestamp  x,
Calendar  cal 
) throws SQLException
inline

Definition at line 516 of file OmniSciPreparedStatement.java.

517  {
518  MAPDLOGGER.debug("Entered");
519  throw new UnsupportedOperationException("Not supported yet,"
520  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
521  + " class:" + new Throwable().getStackTrace()[0].getClassName()
522  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
523  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setUnicodeStream ( int  parameterIndex,
InputStream  x,
int  length 
) throws SQLException
inline

Definition at line 311 of file OmniSciPreparedStatement.java.

312  {
313  MAPDLOGGER.debug("Entered");
314  throw new UnsupportedOperationException("Not supported yet,"
315  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
316  + " class:" + new Throwable().getStackTrace()[0].getClassName()
317  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
318  }
void com.omnisci.jdbc.OmniSciPreparedStatement.setURL ( int  parameterIndex,
URL  x 
) throws SQLException
inline

Definition at line 536 of file OmniSciPreparedStatement.java.

536  {
537  MAPDLOGGER.debug("Entered");
538  throw new UnsupportedOperationException("Not supported yet,"
539  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
540  + " class:" + new Throwable().getStackTrace()[0].getClassName()
541  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
542  }
public<T> T com.omnisci.jdbc.OmniSciPreparedStatement.unwrap ( Class< T >  iface) throws SQLException
inlinepackage

Definition at line 1103 of file OmniSciPreparedStatement.java.

1103  {
1104  MAPDLOGGER.debug("Entered");
1105  throw new UnsupportedOperationException("Not supported yet,"
1106  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1107  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1108  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1109  }

Member Data Documentation

String com.omnisci.jdbc.OmniSciPreparedStatement.brokenSQL[]
private
OmniSci.Client com.omnisci.jdbc.OmniSciPreparedStatement.client
private
int com.omnisci.jdbc.OmniSciPreparedStatement.fieldsOrder[]
private
boolean com.omnisci.jdbc.OmniSciPreparedStatement.isInsert = false
private
boolean com.omnisci.jdbc.OmniSciPreparedStatement.isNewBatch = true
private
final Logger com.omnisci.jdbc.OmniSciPreparedStatement.MAPDLOGGER
staticpackage
Initial value:
=
LoggerFactory.getLogger(OmniSciPreparedStatement.class)

Definition at line 63 of file OmniSciPreparedStatement.java.

final Pattern com.omnisci.jdbc.OmniSciPreparedStatement.REGEX_IS_SELECT_PATTERN
staticprivate
Initial value:
=
Pattern.compile("^(?:\\s|--.*?\\R|/\\*[\\S\\s]*?\\*/|\\s*)*\\s*select[\\S\\s]*",
Pattern.CASE_INSENSITIVE | Pattern.MULTILINE)

Definition at line 87 of file OmniSciPreparedStatement.java.

final Pattern com.omnisci.jdbc.OmniSciPreparedStatement.REGEX_LOF_PATTERN
staticprivate
Initial value:
= Pattern.compile(
"(?i)\\s*insert\\s+into\\s+[\\w:\\.]+\\s*\\(([\\w:\\s:\\,:\\']+)\\)[\\w:\\s]+\\(")

Definition at line 83 of file OmniSciPreparedStatement.java.

final Pattern com.omnisci.jdbc.OmniSciPreparedStatement.REGEX_PATTERN = Pattern.compile("(?i)\\s+INTO\\s+(\\w+)")
staticprivate

Definition at line 82 of file OmniSciPreparedStatement.java.

List<TStringRow> com.omnisci.jdbc.OmniSciPreparedStatement.rows = null
private
OmniSciStatement com.omnisci.jdbc.OmniSciPreparedStatement.stmt = null
private

The documentation for this class was generated from the following file: