Package com.zoho.analytics.jdbc
Class ZohoAnalyticsStatement
- java.lang.Object
-
- com.zoho.analytics.jdbc.ZohoAnalyticsWrapper
-
- com.zoho.analytics.jdbc.ZohoAnalyticsStatement
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.sql.Statement,java.sql.Wrapper
public class ZohoAnalyticsStatement extends ZohoAnalyticsWrapper implements java.sql.Statement
The object used for executing a static SQL statement and returning the results it produces.- See Also:
- Statement
-
-
Field Summary
Fields Modifier and Type Field Description protected intaffectedRowCountstatic intALTER_TABLE_QUERYstatic java.util.Map<java.lang.String,java.lang.Object>ANALYTICS_SERVER_PROPSstatic java.util.Map<java.lang.Integer,java.lang.Integer>ANALYTICS_SQL_DATATYPE_MAPstatic java.lang.String[]BEST_ROW_PROPSstatic booleanBOOLEAN_RESULTstatic java.lang.String[]COLUMN_PROPSprotected java.sql.Connectionconstatic intCREATE_TABLE_QUERYstatic intCREATE_VIEW_QUERYprotected java.sql.ResultSetcurrResultSetprotected java.lang.StringcursorNamestatic java.lang.String[]DATA_TYPE_PROPSstatic intDELETE_QUERYstatic intDROP_QUERYprotected booleanescapeProcessingprotected intfetchSizestatic java.util.ArrayList<java.lang.String>GEO_ROLE_DATA_TYPEstatic java.util.Map<java.lang.String,java.lang.String>HOST_NAME_VS_ACCOUNTS_URLstatic intINSERT_QUERYstatic intINT_RESULTprotected booleanisClosedprotected intmaxFieldSizeprotected intmaxRowsstatic java.lang.String[]REFERENCE_KEYS_PROPSstatic intSELECT_QUERYstatic java.lang.StringSTRING_RESULTstatic ZohoAnalyticsConstants[]TABLE_TYPESprotected inttimeoutstatic intUPDATE_QUERYstatic java.lang.String[]VIEW_PROPSstatic ZohoAnalyticsConstants[]ZDB_SUBTYPESstatic java.util.List<java.util.HashMap<java.lang.String,java.lang.String>>ZDB_SUBTYPES_LIST
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBatch(java.lang.String sql)Not implemented.voidcancel()Not implemented.voidclearBatch()See clearBatchvoidclearWarnings()See clearWarningsvoidclose()See closevoidcloseOnCompletion()booleanexecute(java.lang.String sql)See executebooleanexecute(java.lang.String sql, int columnIndex)See executebooleanexecute(java.lang.String sql, int[] columnIndices)See executebooleanexecute(java.lang.String sql, java.lang.String[] columnNames)See executeint[]executeBatch()Not implemented.java.sql.ResultSetexecuteQuery(java.lang.String sql)See executeQueryintexecuteUpdate(java.lang.String sql)See executeUpdateintexecuteUpdate(java.lang.String sql, int columnIndex)Not implemented.intexecuteUpdate(java.lang.String sql, int[] columnIndices)Not implemented.intexecuteUpdate(java.lang.String sql, java.lang.String[] columnNames)Not implemented.java.sql.ConnectiongetConnection()See getConnectionintgetFetchDirection()intgetFetchSize()See getFetchSizejava.sql.ResultSetgetGeneratedKeys()See getGeneratedKeyslonggetLargeUpdateCount()intgetMaxFieldSize()See getMaxFieldSizeintgetMaxRows()See getMaxRowsbooleangetMoreResults()See getMoreResultsbooleangetMoreResults(int current)See getMoreResultsintgetQueryTimeout()See getQueryTimeoutjava.sql.ResultSetgetResultSet()See getResultSetintgetResultSetConcurrency()intgetResultSetHoldability()intgetResultSetType()See getResultSetTypeintgetUpdateCount()See getUpdateCountjava.sql.SQLWarninggetWarnings()See getWarnings()booleanisClosed()See isClosedbooleanisCloseOnCompletion()booleanisPoolable()See isPoolablevoidsetCursorName(java.lang.String cursor)See setCursorNamevoidsetEscapeProcessing(boolean escape)voidsetFetchDirection(int direction)voidsetFetchSize(int size)See setFetchSizevoidsetMaxFieldSize(int maxsize)See setMaxFieldSizevoidsetMaxRows(int rows)Not implemented.voidsetPoolable(boolean poolable)See setPoolablevoidsetQueryTimeout(int timeout)See setQueryTimeout-
Methods inherited from class com.zoho.analytics.jdbc.ZohoAnalyticsWrapper
isWrapperFor, unwrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
isClosed
protected boolean isClosed
-
currResultSet
protected java.sql.ResultSet currResultSet
-
con
protected java.sql.Connection con
-
maxRows
protected int maxRows
-
affectedRowCount
protected int affectedRowCount
-
fetchSize
protected int fetchSize
-
maxFieldSize
protected int maxFieldSize
-
escapeProcessing
protected boolean escapeProcessing
-
timeout
protected int timeout
-
cursorName
protected java.lang.String cursorName
-
SELECT_QUERY
public static final int SELECT_QUERY
- See Also:
- Constant Field Values
-
INSERT_QUERY
public static final int INSERT_QUERY
- See Also:
- Constant Field Values
-
UPDATE_QUERY
public static final int UPDATE_QUERY
- See Also:
- Constant Field Values
-
DELETE_QUERY
public static final int DELETE_QUERY
- See Also:
- Constant Field Values
-
CREATE_TABLE_QUERY
public static final int CREATE_TABLE_QUERY
- See Also:
- Constant Field Values
-
CREATE_VIEW_QUERY
public static final int CREATE_VIEW_QUERY
- See Also:
- Constant Field Values
-
ALTER_TABLE_QUERY
public static final int ALTER_TABLE_QUERY
- See Also:
- Constant Field Values
-
DROP_QUERY
public static final int DROP_QUERY
- See Also:
- Constant Field Values
-
INT_RESULT
public static final int INT_RESULT
- See Also:
- Constant Field Values
-
STRING_RESULT
public static final java.lang.String STRING_RESULT
- See Also:
- Constant Field Values
-
BOOLEAN_RESULT
public static final boolean BOOLEAN_RESULT
- See Also:
- Constant Field Values
-
VIEW_PROPS
public static final java.lang.String[] VIEW_PROPS
-
COLUMN_PROPS
public static final java.lang.String[] COLUMN_PROPS
-
BEST_ROW_PROPS
public static final java.lang.String[] BEST_ROW_PROPS
-
DATA_TYPE_PROPS
public static final java.lang.String[] DATA_TYPE_PROPS
-
REFERENCE_KEYS_PROPS
public static final java.lang.String[] REFERENCE_KEYS_PROPS
-
TABLE_TYPES
public static final ZohoAnalyticsConstants[] TABLE_TYPES
-
GEO_ROLE_DATA_TYPE
public static final java.util.ArrayList<java.lang.String> GEO_ROLE_DATA_TYPE
-
ANALYTICS_SQL_DATATYPE_MAP
public static final java.util.Map<java.lang.Integer,java.lang.Integer> ANALYTICS_SQL_DATATYPE_MAP
-
HOST_NAME_VS_ACCOUNTS_URL
public static final java.util.Map<java.lang.String,java.lang.String> HOST_NAME_VS_ACCOUNTS_URL
-
ZDB_SUBTYPES_LIST
public static final java.util.List<java.util.HashMap<java.lang.String,java.lang.String>> ZDB_SUBTYPES_LIST
-
ZDB_SUBTYPES
public static final ZohoAnalyticsConstants[] ZDB_SUBTYPES
-
ANALYTICS_SERVER_PROPS
public static final java.util.Map<java.lang.String,java.lang.Object> ANALYTICS_SERVER_PROPS
-
-
Method Detail
-
addBatch
public void addBatch(java.lang.String sql) throws java.sql.SQLExceptionNot implemented.See addBatch- Specified by:
addBatchin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
cancel
public void cancel() throws java.sql.SQLExceptionNot implemented.See cancel- Specified by:
cancelin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
clearBatch
public void clearBatch() throws java.sql.SQLExceptionSee clearBatch- Specified by:
clearBatchin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
clearWarnings
public void clearWarnings() throws java.sql.SQLExceptionSee clearWarnings- Specified by:
clearWarningsin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
close
public void close() throws java.sql.SQLExceptionSee close- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
execute
public boolean execute(java.lang.String sql) throws java.sql.SQLExceptionSee execute- Specified by:
executein interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
execute
public boolean execute(java.lang.String sql, java.lang.String[] columnNames) throws java.sql.SQLExceptionSee execute- Specified by:
executein interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
execute
public boolean execute(java.lang.String sql, int[] columnIndices) throws java.sql.SQLExceptionSee execute- Specified by:
executein interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
execute
public boolean execute(java.lang.String sql, int columnIndex) throws java.sql.SQLExceptionSee execute- Specified by:
executein interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
executeBatch
public int[] executeBatch() throws java.sql.SQLExceptionNot implemented.See executeBatch- Specified by:
executeBatchin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
executeQuery
public java.sql.ResultSet executeQuery(java.lang.String sql) throws java.sql.SQLExceptionSee executeQuery- Specified by:
executeQueryin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
executeUpdate
public int executeUpdate(java.lang.String sql) throws java.sql.SQLExceptionSee executeUpdate- Specified by:
executeUpdatein interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
executeUpdate
public int executeUpdate(java.lang.String sql, java.lang.String[] columnNames) throws java.sql.SQLExceptionNot implemented.See executeUpdate- Specified by:
executeUpdatein interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
executeUpdate
public int executeUpdate(java.lang.String sql, int columnIndex) throws java.sql.SQLExceptionNot implemented.See executeUpdate- Specified by:
executeUpdatein interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
executeUpdate
public int executeUpdate(java.lang.String sql, int[] columnIndices) throws java.sql.SQLExceptionNot implemented.See executeUpdate- Specified by:
executeUpdatein interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
getConnection
public java.sql.Connection getConnection() throws java.sql.SQLExceptionSee getConnection- Specified by:
getConnectionin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
getFetchDirection
public int getFetchDirection() throws java.sql.SQLException- Specified by:
getFetchDirectionin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
getFetchSize
public int getFetchSize() throws java.sql.SQLExceptionSee getFetchSize- Specified by:
getFetchSizein interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
getGeneratedKeys
public java.sql.ResultSet getGeneratedKeys() throws java.sql.SQLExceptionSee getGeneratedKeys- Specified by:
getGeneratedKeysin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
getMaxFieldSize
public int getMaxFieldSize() throws java.sql.SQLExceptionSee getMaxFieldSize- Specified by:
getMaxFieldSizein interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
getMaxRows
public int getMaxRows() throws java.sql.SQLExceptionSee getMaxRows- Specified by:
getMaxRowsin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
getMoreResults
public boolean getMoreResults() throws java.sql.SQLExceptionSee getMoreResults- Specified by:
getMoreResultsin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
getMoreResults
public boolean getMoreResults(int current) throws java.sql.SQLExceptionSee getMoreResults- Specified by:
getMoreResultsin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
getQueryTimeout
public int getQueryTimeout() throws java.sql.SQLExceptionSee getQueryTimeout- Specified by:
getQueryTimeoutin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
getResultSet
public java.sql.ResultSet getResultSet() throws java.sql.SQLExceptionSee getResultSet- Specified by:
getResultSetin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
getResultSetConcurrency
public int getResultSetConcurrency() throws java.sql.SQLException- Specified by:
getResultSetConcurrencyin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
getResultSetHoldability
public int getResultSetHoldability() throws java.sql.SQLException- Specified by:
getResultSetHoldabilityin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
getResultSetType
public int getResultSetType() throws java.sql.SQLExceptionSee getResultSetType- Specified by:
getResultSetTypein interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
getUpdateCount
public int getUpdateCount() throws java.sql.SQLExceptionSee getUpdateCount- Specified by:
getUpdateCountin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
getLargeUpdateCount
public long getLargeUpdateCount() throws java.sql.SQLException- Specified by:
getLargeUpdateCountin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
getWarnings
public java.sql.SQLWarning getWarnings() throws java.sql.SQLExceptionSee getWarnings()- Specified by:
getWarningsin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
setCursorName
public void setCursorName(java.lang.String cursor) throws java.sql.SQLExceptionSee setCursorName- Specified by:
setCursorNamein interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
setEscapeProcessing
public void setEscapeProcessing(boolean escape) throws java.sql.SQLException- Specified by:
setEscapeProcessingin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
setFetchDirection
public void setFetchDirection(int direction) throws java.sql.SQLException- Specified by:
setFetchDirectionin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
setFetchSize
public void setFetchSize(int size) throws java.sql.SQLExceptionSee setFetchSize- Specified by:
setFetchSizein interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
setMaxFieldSize
public void setMaxFieldSize(int maxsize) throws java.sql.SQLExceptionSee setMaxFieldSize- Specified by:
setMaxFieldSizein interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
setMaxRows
public void setMaxRows(int rows) throws java.sql.SQLExceptionNot implemented.See setMaxRows- Specified by:
setMaxRowsin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
setQueryTimeout
public void setQueryTimeout(int timeout) throws java.sql.SQLExceptionSee setQueryTimeout- Specified by:
setQueryTimeoutin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
isPoolable
public boolean isPoolable() throws java.sql.SQLExceptionSee isPoolable- Specified by:
isPoolablein interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
setPoolable
public void setPoolable(boolean poolable) throws java.sql.SQLExceptionSee setPoolable- Specified by:
setPoolablein interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
isClosed
public boolean isClosed() throws java.sql.SQLExceptionSee isClosed- Specified by:
isClosedin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
closeOnCompletion
public void closeOnCompletion() throws java.sql.SQLException- Specified by:
closeOnCompletionin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
isCloseOnCompletion
public boolean isCloseOnCompletion() throws java.sql.SQLException- Specified by:
isCloseOnCompletionin interfacejava.sql.Statement- Throws:
java.sql.SQLException
-
-