OmniSciDB  c07336695a
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, MapD.Client client)
 
public< T > T unwrap (Class< T > iface) throws SQLException
 

Static Package Attributes

static final Logger MAPDLOGGER
 

Private Member Functions

String getQuery ()
 

Private Attributes

String currentSQL
 
String insertTableName
 
int parmCount = 0
 
String brokenSQL []
 
String parmRep []
 
boolean parmIsNull []
 
int fieldsOrder []
 
int repCount
 
String session
 
MapD.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
 

Detailed Description

Author
michael

Definition at line 61 of file OmniSciPreparedStatement.java.

Constructor & Destructor Documentation

◆ OmniSciPreparedStatement()

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

Definition at line 85 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciPreparedStatement.client, com.omnisci.jdbc.OmniSciPreparedStatement.parmCount, com.omnisci.jdbc.OmniSciPreparedStatement.session, sql(), and Experimental.String.

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

Member Function Documentation

◆ addBatch() [1/2]

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

Definition at line 352 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciPreparedStatement.client, com.omnisci.jdbc.OmniSciPreparedStatement.parmCount, and Experimental.String.

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

◆ addBatch() [2/2]

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

Definition at line 899 of file OmniSciPreparedStatement.java.

899  {
900  MAPDLOGGER.debug("Entered");
901  throw new UnsupportedOperationException("Not supported yet,"
902  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
903  + " class:" + new Throwable().getStackTrace()[0].getClassName()
904  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
905  }

◆ cancel()

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

Definition at line 789 of file OmniSciPreparedStatement.java.

789  {
790  MAPDLOGGER.debug("Entered");
791  throw new UnsupportedOperationException("Not supported yet,"
792  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
793  + " class:" + new Throwable().getStackTrace()[0].getClassName()
794  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
795  }

◆ clearBatch()

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

Definition at line 908 of file OmniSciPreparedStatement.java.

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

908  {
909  MAPDLOGGER.debug("Entered");
910  if (rows != null) {
911  rows.clear();
912  }
913  }
+ Here is the caller graph for this function:

◆ clearParameters()

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

Definition at line 320 of file OmniSciPreparedStatement.java.

320  {
321  MAPDLOGGER.debug("Entered");
322  // TODO MAT we will actually need to do something here one day
323  }

◆ clearWarnings()

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

Definition at line 804 of file OmniSciPreparedStatement.java.

804  {
805  MAPDLOGGER.debug("Entered");
806  rootWarning = null;
807  }

◆ close()

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

Definition at line 722 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciStatement.close().

722  {
723  MAPDLOGGER.debug("close");
724  if (stmt != null) {
725  // TODO MAT probably more needed here
726  stmt.close();
727  stmt = null;
728  }
729  }
+ Here is the call graph for this function:

◆ closeOnCompletion()

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

Definition at line 1055 of file OmniSciPreparedStatement.java.

1055  {
1056  MAPDLOGGER.debug("Entered");
1057  throw new UnsupportedOperationException("Not supported yet,"
1058  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1059  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1060  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1061  }

◆ execute() [1/5]

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

Definition at line 345 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciStatement.execute(), com.omnisci.jdbc.OmniSciPreparedStatement.getQuery(), and Experimental.String.

+ Here is the call graph for this function:

◆ execute() [2/5]

boolean com.omnisci.jdbc.OmniSciPreparedStatement.execute ( String  sql) 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  }

◆ execute() [3/5]

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

Definition at line 992 of file OmniSciPreparedStatement.java.

992  {
993  MAPDLOGGER.debug("Entered");
994  throw new UnsupportedOperationException("Not supported yet,"
995  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
996  + " class:" + new Throwable().getStackTrace()[0].getClassName()
997  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
998  }

◆ execute() [4/5]

boolean com.omnisci.jdbc.OmniSciPreparedStatement.execute ( String  sql,
int []  columnIndexes 
) throws SQLException
inline

Definition at line 1001 of file OmniSciPreparedStatement.java.

1001  {
1002  MAPDLOGGER.debug("Entered");
1003  throw new UnsupportedOperationException("Not supported yet,"
1004  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1005  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1006  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1007  }

◆ execute() [5/5]

boolean com.omnisci.jdbc.OmniSciPreparedStatement.execute ( String  sql,
String []  columnNames 
) throws SQLException
inline

Definition at line 1010 of file OmniSciPreparedStatement.java.

1010  {
1011  MAPDLOGGER.debug("Entered");
1012  throw new UnsupportedOperationException("Not supported yet,"
1013  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1014  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1015  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1016  }

◆ executeBatch()

int [] com.omnisci.jdbc.OmniSciPreparedStatement.executeBatch ( ) throws SQLException
inline

Definition at line 916 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciPreparedStatement.clearBatch(), and com.omnisci.jdbc.OmniSciPreparedStatement.client.

916  {
917  int ret[] = null;
918  if (rows != null) {
919  MAPDLOGGER.debug("executeBatch, rows=" + rows.size());
920  try {
921  // send the batch
922  client.load_table(session, insertTableName, rows);
923  } catch (TMapDException ex) {
924  throw new SQLException("executeBatch failed: " + ex.getError_msg());
925  } catch (TException ex) {
926  throw new SQLException("executeBatch failed: " + ex.toString());
927  }
928  ret = new int[rows.size()];
929  for (int i = 0; i < rows.size(); i++) {
930  ret[i] = 1;
931  }
932  clearBatch();
933  }
934  return ret;
935  }
+ Here is the call graph for this function:

◆ executeQuery() [1/2]

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

Definition at line 149 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciStatement.executeQuery(), com.omnisci.jdbc.OmniSciPreparedStatement.getQuery(), and Experimental.String.

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

149  {
150  if (isNewBatch) {
151  String qsql = getQuery();
152  MAPDLOGGER.debug("executeQuery, sql=" + qsql);
153  return stmt.executeQuery(qsql);
154  }
155  throw new UnsupportedOperationException("Not supported yet,"
156  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
157  + " class:" + new Throwable().getStackTrace()[0].getClassName()
158  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
159  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeQuery() [2/2]

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

Definition at line 704 of file OmniSciPreparedStatement.java.

704  {
705  MAPDLOGGER.debug("Entered");
706  throw new UnsupportedOperationException("Not supported yet,"
707  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
708  + " class:" + new Throwable().getStackTrace()[0].getClassName()
709  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
710  }

◆ executeUpdate() [1/5]

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

Definition at line 162 of file OmniSciPreparedStatement.java.

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

162  {
163  MAPDLOGGER.debug("Entered");
164  executeQuery();
165  return 1;
166  }
+ Here is the call graph for this function:

◆ executeUpdate() [2/5]

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

Definition at line 713 of file OmniSciPreparedStatement.java.

713  {
714  MAPDLOGGER.debug("Entered");
715  throw new UnsupportedOperationException("Not supported yet,"
716  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
717  + " class:" + new Throwable().getStackTrace()[0].getClassName()
718  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
719  }

◆ executeUpdate() [3/5]

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

Definition at line 965 of file OmniSciPreparedStatement.java.

965  {
966  MAPDLOGGER.debug("Entered");
967  throw new UnsupportedOperationException("Not supported yet,"
968  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
969  + " class:" + new Throwable().getStackTrace()[0].getClassName()
970  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
971  }

◆ executeUpdate() [4/5]

int com.omnisci.jdbc.OmniSciPreparedStatement.executeUpdate ( String  sql,
int []  columnIndexes 
) throws SQLException
inline

Definition at line 974 of file OmniSciPreparedStatement.java.

974  {
975  MAPDLOGGER.debug("Entered");
976  throw new UnsupportedOperationException("Not supported yet,"
977  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
978  + " class:" + new Throwable().getStackTrace()[0].getClassName()
979  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
980  }

◆ executeUpdate() [5/5]

int com.omnisci.jdbc.OmniSciPreparedStatement.executeUpdate ( String  sql,
String []  columnNames 
) throws SQLException
inline

Definition at line 983 of file OmniSciPreparedStatement.java.

983  {
984  MAPDLOGGER.debug("Entered");
985  throw new UnsupportedOperationException("Not supported yet,"
986  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
987  + " class:" + new Throwable().getStackTrace()[0].getClassName()
988  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
989  }

◆ getConnection()

Connection com.omnisci.jdbc.OmniSciPreparedStatement.getConnection ( ) throws SQLException
inline

Definition at line 938 of file OmniSciPreparedStatement.java.

938  {
939  MAPDLOGGER.debug("Entered");
940  throw new UnsupportedOperationException("Not supported yet,"
941  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
942  + " class:" + new Throwable().getStackTrace()[0].getClassName()
943  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
944  }

◆ getFetchDirection()

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

Definition at line 856 of file OmniSciPreparedStatement.java.

856  {
857  MAPDLOGGER.debug("Entered");
858  throw new UnsupportedOperationException("Not supported yet,"
859  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
860  + " class:" + new Throwable().getStackTrace()[0].getClassName()
861  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
862  }

◆ getFetchSize()

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

Definition at line 872 of file OmniSciPreparedStatement.java.

872  {
873  MAPDLOGGER.debug("Entered");
874  throw new UnsupportedOperationException("Not supported yet,"
875  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
876  + " class:" + new Throwable().getStackTrace()[0].getClassName()
877  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
878  }

◆ getGeneratedKeys()

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

Definition at line 956 of file OmniSciPreparedStatement.java.

956  {
957  MAPDLOGGER.debug("Entered");
958  throw new UnsupportedOperationException("Not supported yet,"
959  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
960  + " class:" + new Throwable().getStackTrace()[0].getClassName()
961  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
962  }

◆ getMaxFieldSize()

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

Definition at line 732 of file OmniSciPreparedStatement.java.

732  {
733  MAPDLOGGER.debug("Entered");
734  throw new UnsupportedOperationException("Not supported yet,"
735  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
736  + " class:" + new Throwable().getStackTrace()[0].getClassName()
737  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
738  }

◆ getMaxRows()

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

Definition at line 750 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciStatement.getMaxRows().

+ Here is the call graph for this function:

◆ getMetaData()

ResultSetMetaData com.omnisci.jdbc.OmniSciPreparedStatement.getMetaData ( ) throws SQLException
inline

Definition at line 459 of file OmniSciPreparedStatement.java.

459  {
460  MAPDLOGGER.debug("Entered");
461  throw new UnsupportedOperationException("Not supported yet,"
462  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
463  + " class:" + new Throwable().getStackTrace()[0].getClassName()
464  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
465  }

◆ getMoreResults() [1/2]

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

Definition at line 841 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciStatement.getMoreResults().

+ Here is the call graph for this function:

◆ getMoreResults() [2/2]

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

Definition at line 947 of file OmniSciPreparedStatement.java.

947  {
948  MAPDLOGGER.debug("Entered");
949  throw new UnsupportedOperationException("Not supported yet,"
950  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
951  + " class:" + new Throwable().getStackTrace()[0].getClassName()
952  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
953  }

◆ getParameterMetaData()

ParameterMetaData com.omnisci.jdbc.OmniSciPreparedStatement.getParameterMetaData ( ) throws SQLException
inline

Definition at line 515 of file OmniSciPreparedStatement.java.

515  {
516  MAPDLOGGER.debug("Entered");
517  throw new UnsupportedOperationException("Not supported yet,"
518  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
519  + " class:" + new Throwable().getStackTrace()[0].getClassName()
520  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
521  }

◆ getQuery()

String com.omnisci.jdbc.OmniSciPreparedStatement.getQuery ( )
inlineprivate

Definition at line 114 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciPreparedStatement.currentSQL, com.omnisci.jdbc.OmniSciPreparedStatement.repCount, and Experimental.String.

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

114  {
115  String qsql;
116  // put string together if required
117  if (parmCount > 0) {
118  if (repCount != parmCount) {
119  throw new UnsupportedOperationException(
120  "Incorrect number of replace parameters for prepared statement "
121  + currentSQL + " has only " + repCount + " parameters");
122  }
123  StringBuilder modQuery = new StringBuilder(currentSQL.length() * 5);
124  for (int i = 0; i < repCount; i++) {
125  modQuery.append(brokenSQL[i]);
126  if (parmIsNull[i]) {
127  modQuery.append("NULL");
128  } else {
129  if (parmIsString[i]) {
130  modQuery.append("'").append(parmRep[i]).append("'");
131  } else {
132  modQuery.append(parmRep[i]);
133  }
134  }
135  }
136  modQuery.append(brokenSQL[parmCount]);
137  qsql = modQuery.toString();
138  } else {
139  qsql = currentSQL;
140  }
141 
142  qsql = qsql.replace(" WHERE 1=0", " LIMIT 1 ");
143  MAPDLOGGER.debug("Query is now " + qsql);
144  repCount = 0; // reset the parameters
145  return qsql;
146  }
+ Here is the caller graph for this function:

◆ getQueryTimeout()

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

Definition at line 772 of file OmniSciPreparedStatement.java.

772  {
773  MAPDLOGGER.debug("Entered");
774  return 0;
775  }

◆ getResultSet()

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

Definition at line 828 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciStatement.getResultSet().

828  {
829  MAPDLOGGER.debug("Entered");
830  return stmt.getResultSet();
831  }
+ Here is the call graph for this function:

◆ getResultSetConcurrency()

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

Definition at line 881 of file OmniSciPreparedStatement.java.

881  {
882  MAPDLOGGER.debug("Entered");
883  throw new UnsupportedOperationException("Not supported yet,"
884  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
885  + " class:" + new Throwable().getStackTrace()[0].getClassName()
886  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
887  }

◆ getResultSetHoldability()

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

Definition at line 1019 of file OmniSciPreparedStatement.java.

1019  {
1020  MAPDLOGGER.debug("Entered");
1021  throw new UnsupportedOperationException("Not supported yet,"
1022  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1023  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1024  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1025  }

◆ getResultSetType()

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

Definition at line 890 of file OmniSciPreparedStatement.java.

890  {
891  MAPDLOGGER.debug("Entered");
892  throw new UnsupportedOperationException("Not supported yet,"
893  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
894  + " class:" + new Throwable().getStackTrace()[0].getClassName()
895  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
896  }

◆ getUpdateCount()

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

Definition at line 834 of file OmniSciPreparedStatement.java.

834  {
835  MAPDLOGGER.debug("Entered");
836  // TODO MAT this needs to change when updates are added
837  return 0;
838  }

◆ getWarnings()

SQLWarning com.omnisci.jdbc.OmniSciPreparedStatement.getWarnings ( ) throws SQLException
inline

◆ isClosed()

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

Definition at line 1028 of file OmniSciPreparedStatement.java.

1028  {
1029  MAPDLOGGER.debug("Entered");
1030  throw new UnsupportedOperationException("Not supported yet,"
1031  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1032  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1033  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1034  }

◆ isCloseOnCompletion()

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

Definition at line 1064 of file OmniSciPreparedStatement.java.

1064  {
1065  MAPDLOGGER.debug("Entered");
1066  throw new UnsupportedOperationException("Not supported yet,"
1067  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1068  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1069  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1070  }

◆ isPoolable()

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

Definition at line 1046 of file OmniSciPreparedStatement.java.

1046  {
1047  MAPDLOGGER.debug("Entered");
1048  throw new UnsupportedOperationException("Not supported yet,"
1049  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1050  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1051  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1052  }

◆ isWrapperFor()

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

Definition at line 1082 of file OmniSciPreparedStatement.java.

1082  {
1083  MAPDLOGGER.debug("Entered");
1084  throw new UnsupportedOperationException("Not supported yet,"
1085  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1086  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1087  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1088  }

◆ setArray()

void com.omnisci.jdbc.OmniSciPreparedStatement.setArray ( int  parameterIndex,
Array  x 
) throws SQLException
inline

Definition at line 450 of file OmniSciPreparedStatement.java.

450  {
451  MAPDLOGGER.debug("Entered");
452  throw new UnsupportedOperationException("Not supported yet,"
453  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
454  + " class:" + new Throwable().getStackTrace()[0].getClassName()
455  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
456  }

◆ setAsciiStream() [1/3]

void com.omnisci.jdbc.OmniSciPreparedStatement.setAsciiStream ( int  parameterIndex,
InputStream  x,
int  length 
) throws SQLException
inline

Definition at line 290 of file OmniSciPreparedStatement.java.

291  {
292  MAPDLOGGER.debug("Entered");
293  throw new UnsupportedOperationException("Not supported yet,"
294  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
295  + " class:" + new Throwable().getStackTrace()[0].getClassName()
296  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
297  }

◆ setAsciiStream() [2/3]

void com.omnisci.jdbc.OmniSciPreparedStatement.setAsciiStream ( int  parameterIndex,
InputStream  x,
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  }

◆ setAsciiStream() [3/3]

void com.omnisci.jdbc.OmniSciPreparedStatement.setAsciiStream ( int  parameterIndex,
InputStream  x 
) throws SQLException
inline

Definition at line 641 of file OmniSciPreparedStatement.java.

641  {
642  MAPDLOGGER.debug("Entered");
643  throw new UnsupportedOperationException("Not supported yet,"
644  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
645  + " class:" + new Throwable().getStackTrace()[0].getClassName()
646  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
647  }

◆ setBigDecimal()

void com.omnisci.jdbc.OmniSciPreparedStatement.setBigDecimal ( int  parameterIndex,
BigDecimal  x 
) throws SQLException
inline

Definition at line 234 of file OmniSciPreparedStatement.java.

234  {
235  MAPDLOGGER.debug("Entered");
236  parmRep[parameterIndex - 1] = x.toString();
237  parmIsNull[parameterIndex - 1] = false;
238  repCount++;
239  }

◆ setBinaryStream() [1/3]

void com.omnisci.jdbc.OmniSciPreparedStatement.setBinaryStream ( int  parameterIndex,
InputStream  x,
int  length 
) throws SQLException
inline

Definition at line 310 of file OmniSciPreparedStatement.java.

311  {
312  MAPDLOGGER.debug("Entered");
313  throw new UnsupportedOperationException("Not supported yet,"
314  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
315  + " class:" + new Throwable().getStackTrace()[0].getClassName()
316  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
317  }

◆ setBinaryStream() [2/3]

void com.omnisci.jdbc.OmniSciPreparedStatement.setBinaryStream ( int  parameterIndex,
InputStream  x,
long  length 
) throws SQLException
inline

Definition at line 621 of file OmniSciPreparedStatement.java.

622  {
623  MAPDLOGGER.debug("Entered");
624  throw new UnsupportedOperationException("Not supported yet,"
625  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
626  + " class:" + new Throwable().getStackTrace()[0].getClassName()
627  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
628  }

◆ setBinaryStream() [3/3]

void com.omnisci.jdbc.OmniSciPreparedStatement.setBinaryStream ( int  parameterIndex,
InputStream  x 
) throws SQLException
inline

Definition at line 650 of file OmniSciPreparedStatement.java.

650  {
651  MAPDLOGGER.debug("Entered");
652  throw new UnsupportedOperationException("Not supported yet,"
653  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
654  + " class:" + new Throwable().getStackTrace()[0].getClassName()
655  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
656  }

◆ setBlob() [1/3]

void com.omnisci.jdbc.OmniSciPreparedStatement.setBlob ( int  parameterIndex,
Blob  x 
) throws SQLException
inline

Definition at line 432 of file OmniSciPreparedStatement.java.

432  {
433  MAPDLOGGER.debug("Entered");
434  throw new UnsupportedOperationException("Not supported yet,"
435  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
436  + " class:" + new Throwable().getStackTrace()[0].getClassName()
437  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
438  }

◆ setBlob() [2/3]

void com.omnisci.jdbc.OmniSciPreparedStatement.setBlob ( int  parameterIndex,
InputStream  inputStream,
long  length 
) throws SQLException
inline

Definition at line 571 of file OmniSciPreparedStatement.java.

572  {
573  MAPDLOGGER.debug("Entered");
574  throw new UnsupportedOperationException("Not supported yet,"
575  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
576  + " class:" + new Throwable().getStackTrace()[0].getClassName()
577  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
578  }

◆ setBlob() [3/3]

void com.omnisci.jdbc.OmniSciPreparedStatement.setBlob ( int  parameterIndex,
InputStream  inputStream 
) throws SQLException
inline

Definition at line 686 of file OmniSciPreparedStatement.java.

686  {
687  MAPDLOGGER.debug("Entered");
688  throw new UnsupportedOperationException("Not supported yet,"
689  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
690  + " class:" + new Throwable().getStackTrace()[0].getClassName()
691  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
692  }

◆ setBoolean()

void com.omnisci.jdbc.OmniSciPreparedStatement.setBoolean ( int  parameterIndex,
boolean  x 
) throws SQLException
inline

Definition at line 176 of file OmniSciPreparedStatement.java.

176  {
177  MAPDLOGGER.debug("Entered");
178  parmRep[parameterIndex - 1] = x ? "true" : "false";
179  parmIsString[parameterIndex - 1] = false;
180  parmIsNull[parameterIndex - 1] = false;
181  repCount++;
182  }

◆ setByte()

void com.omnisci.jdbc.OmniSciPreparedStatement.setByte ( int  parameterIndex,
byte  x 
) throws SQLException
inline

Definition at line 185 of file OmniSciPreparedStatement.java.

185  {
186  MAPDLOGGER.debug("Entered");
187  throw new UnsupportedOperationException("Not supported yet,"
188  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
189  + " class:" + new Throwable().getStackTrace()[0].getClassName()
190  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
191  }

◆ setBytes()

void com.omnisci.jdbc.OmniSciPreparedStatement.setBytes ( int  parameterIndex,
byte []  x 
) throws SQLException
inline

Definition at line 253 of file OmniSciPreparedStatement.java.

253  {
254  MAPDLOGGER.debug("Entered");
255  throw new UnsupportedOperationException("Not supported yet,"
256  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
257  + " class:" + new Throwable().getStackTrace()[0].getClassName()
258  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
259  }

◆ setCharacterStream() [1/3]

void com.omnisci.jdbc.OmniSciPreparedStatement.setCharacterStream ( int  parameterIndex,
Reader  reader,
int  length 
) throws SQLException
inline

Definition at line 413 of file OmniSciPreparedStatement.java.

414  {
415  MAPDLOGGER.debug("Entered");
416  throw new UnsupportedOperationException("Not supported yet,"
417  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
418  + " class:" + new Throwable().getStackTrace()[0].getClassName()
419  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
420  }

◆ setCharacterStream() [2/3]

void com.omnisci.jdbc.OmniSciPreparedStatement.setCharacterStream ( int  parameterIndex,
Reader  reader,
long  length 
) throws SQLException
inline

Definition at line 631 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  }

◆ setCharacterStream() [3/3]

void com.omnisci.jdbc.OmniSciPreparedStatement.setCharacterStream ( int  parameterIndex,
Reader  reader 
) throws SQLException
inline

Definition at line 659 of file OmniSciPreparedStatement.java.

659  {
660  MAPDLOGGER.debug("Entered");
661  throw new UnsupportedOperationException("Not supported yet,"
662  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
663  + " class:" + new Throwable().getStackTrace()[0].getClassName()
664  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
665  }

◆ setClob() [1/3]

void com.omnisci.jdbc.OmniSciPreparedStatement.setClob ( int  parameterIndex,
Clob  x 
) throws SQLException
inline

Definition at line 441 of file OmniSciPreparedStatement.java.

441  {
442  MAPDLOGGER.debug("Entered");
443  throw new UnsupportedOperationException("Not supported yet,"
444  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
445  + " class:" + new Throwable().getStackTrace()[0].getClassName()
446  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
447  }

◆ setClob() [2/3]

void com.omnisci.jdbc.OmniSciPreparedStatement.setClob ( int  parameterIndex,
Reader  reader,
long  length 
) throws SQLException
inline

Definition at line 561 of file OmniSciPreparedStatement.java.

562  {
563  MAPDLOGGER.debug("Entered");
564  throw new UnsupportedOperationException("Not supported yet,"
565  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
566  + " class:" + new Throwable().getStackTrace()[0].getClassName()
567  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
568  }

◆ setClob() [3/3]

void com.omnisci.jdbc.OmniSciPreparedStatement.setClob ( int  parameterIndex,
Reader  reader 
) throws SQLException
inline

Definition at line 677 of file OmniSciPreparedStatement.java.

677  {
678  MAPDLOGGER.debug("Entered");
679  throw new UnsupportedOperationException("Not supported yet,"
680  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
681  + " class:" + new Throwable().getStackTrace()[0].getClassName()
682  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
683  }

◆ setCursorName()

void com.omnisci.jdbc.OmniSciPreparedStatement.setCursorName ( String  name) throws SQLException
inline

Definition at line 810 of file OmniSciPreparedStatement.java.

810  {
811  MAPDLOGGER.debug("Entered");
812  throw new UnsupportedOperationException("Not supported yet,"
813  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
814  + " class:" + new Throwable().getStackTrace()[0].getClassName()
815  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
816  }

◆ setDate() [1/2]

void com.omnisci.jdbc.OmniSciPreparedStatement.setDate ( int  parameterIndex,
Date  x 
) throws SQLException
inline

Definition at line 262 of file OmniSciPreparedStatement.java.

262  {
263  MAPDLOGGER.debug("Entered");
264  parmRep[parameterIndex - 1] = x.toString();
265  parmIsString[parameterIndex - 1] = true;
266  parmIsNull[parameterIndex - 1] = false;
267  repCount++;
268  }

◆ setDate() [2/2]

void com.omnisci.jdbc.OmniSciPreparedStatement.setDate ( int  parameterIndex,
Date  x,
Calendar  cal 
) throws SQLException
inline

Definition at line 468 of file OmniSciPreparedStatement.java.

468  {
469  MAPDLOGGER.debug("Entered");
470  throw new UnsupportedOperationException("Not supported yet,"
471  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
472  + " class:" + new Throwable().getStackTrace()[0].getClassName()
473  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
474  }

◆ setDouble()

void com.omnisci.jdbc.OmniSciPreparedStatement.setDouble ( int  parameterIndex,
double  x 
) throws SQLException
inline

Definition at line 226 of file OmniSciPreparedStatement.java.

References Double.

◆ setEscapeProcessing()

void com.omnisci.jdbc.OmniSciPreparedStatement.setEscapeProcessing ( boolean  enable) throws SQLException
inline

Definition at line 763 of file OmniSciPreparedStatement.java.

763  {
764  MAPDLOGGER.debug("Entered");
765  throw new UnsupportedOperationException("Not supported yet,"
766  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
767  + " class:" + new Throwable().getStackTrace()[0].getClassName()
768  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
769  }

◆ setFetchDirection()

void com.omnisci.jdbc.OmniSciPreparedStatement.setFetchDirection ( int  direction) throws SQLException
inline

Definition at line 847 of file OmniSciPreparedStatement.java.

847  {
848  MAPDLOGGER.debug("Entered");
849  throw new UnsupportedOperationException("Not supported yet,"
850  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
851  + " class:" + new Throwable().getStackTrace()[0].getClassName()
852  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
853  }

◆ setFetchSize()

void com.omnisci.jdbc.OmniSciPreparedStatement.setFetchSize ( int  rows) throws SQLException
inline

Definition at line 865 of file OmniSciPreparedStatement.java.

865  {
866  MAPDLOGGER.debug("Entered");
867  // TODO we need to chnage the model to allow smaller select chunks at the moment you
868  // get everything
869  }

◆ setFloat()

void com.omnisci.jdbc.OmniSciPreparedStatement.setFloat ( int  parameterIndex,
float  x 
) throws SQLException
inline

Definition at line 218 of file OmniSciPreparedStatement.java.

References Float.

◆ setInt()

void com.omnisci.jdbc.OmniSciPreparedStatement.setInt ( int  parameterIndex,
int  x 
) throws SQLException
inline

Definition at line 202 of file OmniSciPreparedStatement.java.

References Integer.

◆ setLong()

void com.omnisci.jdbc.OmniSciPreparedStatement.setLong ( int  parameterIndex,
long  x 
) throws SQLException
inline

Definition at line 210 of file OmniSciPreparedStatement.java.

210  {
211  MAPDLOGGER.debug("Entered");
212  parmRep[parameterIndex - 1] = Long.toString(x);
213  parmIsNull[parameterIndex - 1] = false;
214  repCount++;
215  }

◆ setMaxFieldSize()

void com.omnisci.jdbc.OmniSciPreparedStatement.setMaxFieldSize ( int  max) throws SQLException
inline

Definition at line 741 of file OmniSciPreparedStatement.java.

741  {
742  MAPDLOGGER.debug("Entered");
743  throw new UnsupportedOperationException("Not supported yet,"
744  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
745  + " class:" + new Throwable().getStackTrace()[0].getClassName()
746  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
747  }

◆ setMaxRows()

void com.omnisci.jdbc.OmniSciPreparedStatement.setMaxRows ( int  max) throws SQLException
inline

Definition at line 756 of file OmniSciPreparedStatement.java.

References com.omnisci.jdbc.OmniSciStatement.setMaxRows().

756  {
757  MAPDLOGGER.debug("Entered");
758  MAPDLOGGER.debug("SetMaxRows to " + max);
759  stmt.setMaxRows(max);
760  }
+ Here is the call graph for this function:

◆ setNCharacterStream() [1/2]

void com.omnisci.jdbc.OmniSciPreparedStatement.setNCharacterStream ( int  parameterIndex,
Reader  value,
long  length 
) throws SQLException
inline

Definition at line 542 of file OmniSciPreparedStatement.java.

543  {
544  MAPDLOGGER.debug("Entered");
545  throw new UnsupportedOperationException("Not supported yet,"
546  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
547  + " class:" + new Throwable().getStackTrace()[0].getClassName()
548  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
549  }

◆ setNCharacterStream() [2/2]

void com.omnisci.jdbc.OmniSciPreparedStatement.setNCharacterStream ( int  parameterIndex,
Reader  value 
) throws SQLException
inline

Definition at line 668 of file OmniSciPreparedStatement.java.

668  {
669  MAPDLOGGER.debug("Entered");
670  throw new UnsupportedOperationException("Not supported yet,"
671  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
672  + " class:" + new Throwable().getStackTrace()[0].getClassName()
673  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
674  }

◆ setNClob() [1/3]

void com.omnisci.jdbc.OmniSciPreparedStatement.setNClob ( int  parameterIndex,
NClob  value 
) throws SQLException
inline

Definition at line 552 of file OmniSciPreparedStatement.java.

552  {
553  MAPDLOGGER.debug("Entered");
554  throw new UnsupportedOperationException("Not supported yet,"
555  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
556  + " class:" + new Throwable().getStackTrace()[0].getClassName()
557  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
558  }

◆ setNClob() [2/3]

void com.omnisci.jdbc.OmniSciPreparedStatement.setNClob ( int  parameterIndex,
Reader  reader,
long  length 
) throws SQLException
inline

Definition at line 581 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  }

◆ setNClob() [3/3]

void com.omnisci.jdbc.OmniSciPreparedStatement.setNClob ( int  parameterIndex,
Reader  reader 
) throws SQLException
inline

Definition at line 695 of file OmniSciPreparedStatement.java.

695  {
696  MAPDLOGGER.debug("Entered");
697  throw new UnsupportedOperationException("Not supported yet,"
698  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
699  + " class:" + new Throwable().getStackTrace()[0].getClassName()
700  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
701  }

◆ setNString()

void com.omnisci.jdbc.OmniSciPreparedStatement.setNString ( int  parameterIndex,
String  value 
) throws SQLException
inline

Definition at line 533 of file OmniSciPreparedStatement.java.

533  {
534  MAPDLOGGER.debug("Entered");
535  throw new UnsupportedOperationException("Not supported yet,"
536  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
537  + " class:" + new Throwable().getStackTrace()[0].getClassName()
538  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
539  }

◆ setNull() [1/2]

void com.omnisci.jdbc.OmniSciPreparedStatement.setNull ( int  parameterIndex,
int  sqlType 
) throws SQLException
inline

Definition at line 169 of file OmniSciPreparedStatement.java.

169  {
170  MAPDLOGGER.debug("Entered");
171  parmIsNull[parameterIndex - 1] = true;
172  repCount++;
173  }

◆ setNull() [2/2]

void com.omnisci.jdbc.OmniSciPreparedStatement.setNull ( int  parameterIndex,
int  sqlType,
String  typeName 
) throws SQLException
inline

Definition at line 496 of file OmniSciPreparedStatement.java.

497  {
498  MAPDLOGGER.debug("Entered");
499  throw new UnsupportedOperationException("Not supported yet,"
500  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
501  + " class:" + new Throwable().getStackTrace()[0].getClassName()
502  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
503  }

◆ setObject() [1/3]

void com.omnisci.jdbc.OmniSciPreparedStatement.setObject ( int  parameterIndex,
Object  x,
int  targetSqlType 
) throws SQLException
inline

Definition at line 326 of file OmniSciPreparedStatement.java.

327  {
328  MAPDLOGGER.debug("Entered");
329  throw new UnsupportedOperationException("Not supported yet,"
330  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
331  + " class:" + new Throwable().getStackTrace()[0].getClassName()
332  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
333  }

◆ setObject() [2/3]

void com.omnisci.jdbc.OmniSciPreparedStatement.setObject ( int  parameterIndex,
Object  x 
) throws SQLException
inline

Definition at line 336 of file OmniSciPreparedStatement.java.

336  {
337  MAPDLOGGER.debug("Entered");
338  throw new UnsupportedOperationException("Not supported yet,"
339  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
340  + " class:" + new Throwable().getStackTrace()[0].getClassName()
341  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
342  }

◆ setObject() [3/3]

void com.omnisci.jdbc.OmniSciPreparedStatement.setObject ( int  parameterIndex,
Object  x,
int  targetSqlType,
int  scaleOrLength 
) throws SQLException
inline

Definition at line 600 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  }

◆ setPoolable()

void com.omnisci.jdbc.OmniSciPreparedStatement.setPoolable ( boolean  poolable) throws SQLException
inline

Definition at line 1037 of file OmniSciPreparedStatement.java.

1037  {
1038  MAPDLOGGER.debug("Entered");
1039  throw new UnsupportedOperationException("Not supported yet,"
1040  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1041  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1042  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1043  }

◆ setQueryTimeout()

void com.omnisci.jdbc.OmniSciPreparedStatement.setQueryTimeout ( int  seconds) throws SQLException
inline

Definition at line 778 of file OmniSciPreparedStatement.java.

778  {
779  MAPDLOGGER.debug("Entered");
780  SQLWarning warning = new SQLWarning(
781  "Query timeouts are not supported. Substituting a value of zero.");
782  if (rootWarning == null)
783  rootWarning = warning;
784  else
785  rootWarning.setNextWarning(warning);
786  }

◆ setRef()

void com.omnisci.jdbc.OmniSciPreparedStatement.setRef ( int  parameterIndex,
Ref  x 
) throws SQLException
inline

Definition at line 423 of file OmniSciPreparedStatement.java.

423  {
424  MAPDLOGGER.debug("Entered");
425  throw new UnsupportedOperationException("Not supported yet,"
426  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
427  + " class:" + new Throwable().getStackTrace()[0].getClassName()
428  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
429  }

◆ setRowId()

void com.omnisci.jdbc.OmniSciPreparedStatement.setRowId ( int  parameterIndex,
RowId  x 
) throws SQLException
inline

Definition at line 524 of file OmniSciPreparedStatement.java.

524  {
525  MAPDLOGGER.debug("Entered");
526  throw new UnsupportedOperationException("Not supported yet,"
527  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
528  + " class:" + new Throwable().getStackTrace()[0].getClassName()
529  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
530  }

◆ setShort()

void com.omnisci.jdbc.OmniSciPreparedStatement.setShort ( int  parameterIndex,
short  x 
) throws SQLException
inline

Definition at line 194 of file OmniSciPreparedStatement.java.

194  {
195  MAPDLOGGER.debug("Entered");
196  parmRep[parameterIndex - 1] = Short.toString(x);
197  parmIsNull[parameterIndex - 1] = false;
198  repCount++;
199  }

◆ setSQLXML()

void com.omnisci.jdbc.OmniSciPreparedStatement.setSQLXML ( int  parameterIndex,
SQLXML  xmlObject 
) throws SQLException
inline

Definition at line 591 of file OmniSciPreparedStatement.java.

591  {
592  MAPDLOGGER.debug("Entered");
593  throw new UnsupportedOperationException("Not supported yet,"
594  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
595  + " class:" + new Throwable().getStackTrace()[0].getClassName()
596  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
597  }

◆ setString()

void com.omnisci.jdbc.OmniSciPreparedStatement.setString ( int  parameterIndex,
String  x 
) throws SQLException
inline

Definition at line 242 of file OmniSciPreparedStatement.java.

242  {
243  MAPDLOGGER.debug("Entered");
244  // add extra ' if there are any in string
245  x = x.replaceAll("'", "''");
246  parmRep[parameterIndex - 1] = x;
247  parmIsString[parameterIndex - 1] = true;
248  parmIsNull[parameterIndex - 1] = false;
249  repCount++;
250  }

◆ setTime() [1/2]

void com.omnisci.jdbc.OmniSciPreparedStatement.setTime ( int  parameterIndex,
Time  x 
) throws SQLException
inline

Definition at line 271 of file OmniSciPreparedStatement.java.

271  {
272  MAPDLOGGER.debug("Entered");
273  parmRep[parameterIndex - 1] = x.toString();
274  parmIsString[parameterIndex - 1] = true;
275  parmIsNull[parameterIndex - 1] = false;
276  repCount++;
277  }

◆ setTime() [2/2]

void com.omnisci.jdbc.OmniSciPreparedStatement.setTime ( int  parameterIndex,
Time  x,
Calendar  cal 
) throws SQLException
inline

Definition at line 477 of file OmniSciPreparedStatement.java.

477  {
478  MAPDLOGGER.debug("Entered");
479  throw new UnsupportedOperationException("Not supported yet,"
480  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
481  + " class:" + new Throwable().getStackTrace()[0].getClassName()
482  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
483  }

◆ setTimestamp() [1/2]

void com.omnisci.jdbc.OmniSciPreparedStatement.setTimestamp ( int  parameterIndex,
Timestamp  x 
) throws SQLException
inline

Definition at line 280 of file OmniSciPreparedStatement.java.

280  {
281  MAPDLOGGER.debug("Entered");
282  parmRep[parameterIndex - 1] =
283  x.toString(); // new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(x);
284  parmIsString[parameterIndex - 1] = true;
285  parmIsNull[parameterIndex - 1] = false;
286  repCount++;
287  }

◆ setTimestamp() [2/2]

void com.omnisci.jdbc.OmniSciPreparedStatement.setTimestamp ( int  parameterIndex,
Timestamp  x,
Calendar  cal 
) throws SQLException
inline

Definition at line 486 of file OmniSciPreparedStatement.java.

487  {
488  MAPDLOGGER.debug("Entered");
489  throw new UnsupportedOperationException("Not supported yet,"
490  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
491  + " class:" + new Throwable().getStackTrace()[0].getClassName()
492  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
493  }

◆ setUnicodeStream()

void com.omnisci.jdbc.OmniSciPreparedStatement.setUnicodeStream ( int  parameterIndex,
InputStream  x,
int  length 
) throws SQLException
inline

Definition at line 300 of file OmniSciPreparedStatement.java.

301  {
302  MAPDLOGGER.debug("Entered");
303  throw new UnsupportedOperationException("Not supported yet,"
304  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
305  + " class:" + new Throwable().getStackTrace()[0].getClassName()
306  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
307  }

◆ setURL()

void com.omnisci.jdbc.OmniSciPreparedStatement.setURL ( int  parameterIndex,
URL  x 
) throws SQLException
inline

Definition at line 506 of file OmniSciPreparedStatement.java.

506  {
507  MAPDLOGGER.debug("Entered");
508  throw new UnsupportedOperationException("Not supported yet,"
509  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
510  + " class:" + new Throwable().getStackTrace()[0].getClassName()
511  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
512  }

◆ unwrap()

public<T> T com.omnisci.jdbc.OmniSciPreparedStatement.unwrap ( Class< T >  iface) throws SQLException
inlinepackage

Definition at line 1073 of file OmniSciPreparedStatement.java.

1073  {
1074  MAPDLOGGER.debug("Entered");
1075  throw new UnsupportedOperationException("Not supported yet,"
1076  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1077  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1078  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1079  }

Member Data Documentation

◆ brokenSQL

String com.omnisci.jdbc.OmniSciPreparedStatement.brokenSQL[]
private

Definition at line 69 of file OmniSciPreparedStatement.java.

◆ client

◆ currentSQL

String com.omnisci.jdbc.OmniSciPreparedStatement.currentSQL
private

◆ fieldsOrder

int com.omnisci.jdbc.OmniSciPreparedStatement.fieldsOrder[]
private

Definition at line 72 of file OmniSciPreparedStatement.java.

◆ insertTableName

String com.omnisci.jdbc.OmniSciPreparedStatement.insertTableName
private

Definition at line 67 of file OmniSciPreparedStatement.java.

◆ isInsert

boolean com.omnisci.jdbc.OmniSciPreparedStatement.isInsert = false
private

Definition at line 77 of file OmniSciPreparedStatement.java.

◆ isNewBatch

boolean com.omnisci.jdbc.OmniSciPreparedStatement.isNewBatch = true
private

Definition at line 78 of file OmniSciPreparedStatement.java.

◆ MAPDLOGGER

final Logger com.omnisci.jdbc.OmniSciPreparedStatement.MAPDLOGGER
staticpackage
Initial value:
=
LoggerFactory.getLogger(OmniSciPreparedStatement.class)

Definition at line 62 of file OmniSciPreparedStatement.java.

◆ parmCount

int com.omnisci.jdbc.OmniSciPreparedStatement.parmCount = 0
private

◆ parmIsNull

boolean com.omnisci.jdbc.OmniSciPreparedStatement.parmIsNull[]
private

Definition at line 71 of file OmniSciPreparedStatement.java.

◆ parmIsString

boolean [] com.omnisci.jdbc.OmniSciPreparedStatement.parmIsString = null
private

Definition at line 79 of file OmniSciPreparedStatement.java.

◆ parmRep

String com.omnisci.jdbc.OmniSciPreparedStatement.parmRep[]
private

Definition at line 70 of file OmniSciPreparedStatement.java.

◆ REGEX_LOF_PATTERN

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 82 of file OmniSciPreparedStatement.java.

◆ REGEX_PATTERN

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

Definition at line 81 of file OmniSciPreparedStatement.java.

◆ repCount

int com.omnisci.jdbc.OmniSciPreparedStatement.repCount
private

◆ rootWarning

SQLWarning com.omnisci.jdbc.OmniSciPreparedStatement.rootWarning = null

◆ rows

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

Definition at line 80 of file OmniSciPreparedStatement.java.

◆ session

String com.omnisci.jdbc.OmniSciPreparedStatement.session
private

◆ stmt

OmniSciStatement com.omnisci.jdbc.OmniSciPreparedStatement.stmt = null
private

Definition at line 76 of file OmniSciPreparedStatement.java.


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