rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
for (int i = from; i < end; i += 1)
for (int i = from; i < end; i += sepLen)
public static final String[] splitString(String string, char separator) { /* * 0123456 * Example a;b;c;d --> new String[] { a, b, c, d } */ // System.out.println("splitString ["+path+"] using ["+separator+"]"); List list = new ArrayList(); if (string == null || string.length() == 0) { re...
if (string.charAt(i) == separator)
if (string.substring(i, i + sepLen).equalsIgnoreCase(separator))
public static final String[] splitString(String string, char separator) { /* * 0123456 * Example a;b;c;d --> new String[] { a, b, c, d } */ // System.out.println("splitString ["+path+"] using ["+separator+"]"); List list = new ArrayList(); if (string == null || string.length() == 0) { re...
from = i + 1;
from = i + sepLen;
public static final String[] splitString(String string, char separator) { /* * 0123456 * Example a;b;c;d --> new String[] { a, b, c, d } */ // System.out.println("splitString ["+path+"] using ["+separator+"]"); List list = new ArrayList(); if (string == null || string.length() == 0) { re...
if (from + 1 <= string.length())
if (from + sepLen <= string.length())
public static final String[] splitString(String string, char separator) { /* * 0123456 * Example a;b;c;d --> new String[] { a, b, c, d } */ // System.out.println("splitString ["+path+"] using ["+separator+"]"); List list = new ArrayList(); if (string == null || string.length() == 0) { re...
protected boolean evalXQExpression(XMLDataValue xmlContext) throws Exception
protected ArrayList evalXQExpression(XMLDataValue xmlContext, boolean returnResults, int [] resultXType) throws Exception
protected boolean evalXQExpression(XMLDataValue xmlContext) throws Exception { // Make sure we have a compiled query. if (SanityManager.DEBUG) { SanityManager.ASSERT( (query != null) && (query.getExpression() != null), "Failed to locate compiled XML q...
if (xmlContext.getXType() != XML.XML_DOC_ANY) { throw StandardException.newException( SQLState.LANG_INVALID_XML_CONTEXT_ITEM, (returnResults ? "XMLQUERY" : "XMLEXISTS")); }
protected boolean evalXQExpression(XMLDataValue xmlContext) throws Exception { // Make sure we have a compiled query. if (SanityManager.DEBUG) { SanityManager.ASSERT( (query != null) && (query.getExpression() != null), "Failed to locate compiled XML q...
if ((xOb instanceof XNodeSet) && (((XNodeSet)xOb).nodelist().getLength() > 0)) { return true;
if (!returnResults) { if ((xOb instanceof XNodeSet) && (((XNodeSet)xOb).nodelist().getLength() > 0)) { return new ArrayList(0); } else if (!(xOb instanceof XNodeSet)) return new ArrayList(0); else { return null; }
protected boolean evalXQExpression(XMLDataValue xmlContext) throws Exception { // Make sure we have a compiled query. if (SanityManager.DEBUG) { SanityManager.ASSERT( (query != null) && (query.getExpression() != null), "Failed to locate compiled XML q...
else if (!(xOb instanceof XNodeSet)) return true;
protected boolean evalXQExpression(XMLDataValue xmlContext) throws Exception { // Make sure we have a compiled query. if (SanityManager.DEBUG) { SanityManager.ASSERT( (query != null) && (query.getExpression() != null), "Failed to locate compiled XML q...
return false;
NodeList nodeList = null; int numItems = 0; if (!(xOb instanceof XNodeSet)) numItems = 1; else { nodeList = xOb.nodelist(); numItems = nodeList.getLength(); } ArrayList itemRefs = new ArrayList(); if (nodeList == null) itemRefs.add(xOb.str()); else { for (int i = 0; i < numItems; i++) itemRefs.add(nodeList.item(i)...
protected boolean evalXQExpression(XMLDataValue xmlContext) throws Exception { // Make sure we have a compiled query. if (SanityManager.DEBUG) { SanityManager.ASSERT( (query != null) && (query.getExpression() != null), "Failed to locate compiled XML q...
public void setBlob(String parameterName, InputStream inputStream, long length) throws SQLException{ throw SQLExceptionFactory.notImplemented ("setBlob (String, InputStream, long)");
public void setBlob(String parameterName, Blob x) throws SQLException { throw SQLExceptionFactory.notImplemented("setBlob(String, Blob)");
public void setBlob(String parameterName, InputStream inputStream, long length) throws SQLException{ throw SQLExceptionFactory.notImplemented ("setBlob (String, InputStream, long)"); }
public void setClob(String parameterName, Reader reader, long length) throws SQLException{ throw SQLExceptionFactory.notImplemented ("setClob (String, Reader, long)");
public void setClob(String parameterName, Clob x) throws SQLException { throw SQLExceptionFactory.notImplemented("setClob(String, Clob)");
public void setClob(String parameterName, Reader reader, long length) throws SQLException{ throw SQLExceptionFactory.notImplemented ("setClob (String, Reader, long)"); }
Logs.reportMessage("CSLOOK_Header", "checks");
Logs.reportMessage("CSLOOK_ChecksHeader");
public static void doChecks(Connection conn) throws SQLException { Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery("SELECT CS.CONSTRAINTNAME, " + "CS.TABLEID, CS.SCHEMAID, CK.CHECKDEFINITION FROM SYS.SYSCONSTRAINTS CS, " + "SYS.SYSCHECKS CK WHERE CS.CONSTRAINTID = " + "CK.CONSTRAINTI...
cs1.setTransactionIsolation(Connection.TRANSACTION_READ_UNCOMMITTED);
if (!causesStmtClosedOnSetTransactionIsolation) cs1.setTransactionIsolation(Connection.TRANSACTION_READ_UNCOMMITTED);
protected void runTest(String[] args) throws Exception { // Check the returned type of the JDBC Connections. ij.getPropertyArg(args); Connection dmc = ij.startJBMS(); dmc.createStatement().executeUpdate("create table y(i int)"); dmc.createStatement().executeUpdate("create procedure checkConn2(in dsname varchar(20...
cs1.setTransactionIsolation(Connection.TRANSACTION_REPEATABLE_READ);
if (! causesStmtClosedOnSetTransactionIsolation) { cs1.setTransactionIsolation(Connection.TRANSACTION_REPEATABLE_READ); }
protected void runTest(String[] args) throws Exception { // Check the returned type of the JDBC Connections. ij.getPropertyArg(args); Connection dmc = ij.startJBMS(); dmc.createStatement().executeUpdate("create table y(i int)"); dmc.createStatement().executeUpdate("create procedure checkConn2(in dsname varchar(20...
bootingDictionary.grantPublicAccessToSystemRoutines(tc, aid);
private void doFullUpgrade(TransactionController tc, int fromMajorVersionNumber, String aid) throws StandardException { // Only supports upgrade from Derby 10.0 releases onwards if (fromMajorVersionNumber < DataDictionary.DD_VERSION_CS_10_0) { throw StandardException.newException(SQLState.UPGRADE_UNSUPPORTED, ...
protected EmbedClob(DataValueDescriptor dvd, EmbedConnection con) throws StandardException {
EmbedClob(String clobString,EmbedConnection con) {
protected EmbedClob(DataValueDescriptor dvd, EmbedConnection con) throws StandardException { super(con); // if the underlying column is null, ResultSet.getClob will return null, // never should get this far if (SanityManager.DEBUG) SanityManager.ASSERT(!dvd.isNull(),...
if (SanityManager.DEBUG) SanityManager.ASSERT(!dvd.isNull(), "clob is created on top of a null column"); myStream = dvd.getStream(); if (myStream == null) { isString = true; myString = dvd.getString(); if (SanityManager.DEBUG) SanityManager.ASSERT(myString != null,"clob has a null value underneath"); } else { if (San...
myString = clobString; isString = true;
protected EmbedClob(DataValueDescriptor dvd, EmbedConnection con) throws StandardException { super(con); // if the underlying column is null, ResultSet.getClob will return null, // never should get this far if (SanityManager.DEBUG) SanityManager.ASSERT(!dvd.isNull(),...
Werkz project = getProject();
Project project = getProject();
protected Goal getGoal(String name) throws JellyException { Werkz project = getProject(); if ( project == null ) { throw new JellyException( "Must use this tag inside a <maven:project> tag" ); } Goal goal = project.getGoal(name); if ( goal == null ) { throw n...
protected Werkz getProject() {
protected Project getProject() {
protected Werkz getProject() { ProjectTag tag = (ProjectTag) findAncestorWithClass(ProjectTag.class); if ( tag != null) { return tag.getProject(); } return (Werkz) context.getVariable( "org.apache.commons.jelly.werkz.Project" ); }
return (Werkz) context.getVariable( "org.apache.commons.jelly.werkz.Project" );
return (Project) context.getVariable( "org.apache.commons.jelly.werkz.Project" );
protected Werkz getProject() { ProjectTag tag = (ProjectTag) findAncestorWithClass(ProjectTag.class); if ( tag != null) { return tag.getProject(); } return (Werkz) context.getVariable( "org.apache.commons.jelly.werkz.Project" ); }
public Werkz getProject() {
public Project getProject() {
public Werkz getProject() { return project; }
initStreamUseFlags(getMetaData().getColumnCount());
public EmbedResultSet(EmbedConnection conn, ResultSet resultsToWrap, boolean forMetaData, EmbedStatement stmt, boolean isAtomic) throws SQLException { super(conn); if (SanityManager.DEBUG) SanityManager.ASSERT(resultsToWrap!=null); theResults = resultsToWrap; this.forMetaData = forMetaData; this.stmt = o...
useStream(columnIndex);
public final InputStream getBinaryStream(int columnIndex) throws SQLException { int lmfs; int colType = getColumnType(columnIndex); switch (colType) { case Types.BINARY: case Types.VARBINARY: case Types.LONGVARBINARY: lmfs = maxFieldSize; break; case Types.BLOB: lmfs = 0; break; default: throw dat...
useStream(columnIndex);
public final java.io.Reader getCharacterStream(int columnIndex) throws SQLException { int lmfs; int colType = getColumnType(columnIndex); switch (colType) { case Types.CHAR: case Types.VARCHAR: case Types.LONGVARCHAR: lmfs = maxFieldSize; break; case Types.CLOB: // Embedded and JCC extension - CLOB is n...
java.security.Security.addProvider((java.security.Provider) provider);
public EncryptionManager(Agent agent) throws SqlException { agent_ = agent; try { // get a security provider that supports the diffie helman key agreement algorithm Provider[] list = Security.getProviders("KeyAgreement.DH"); if (list == null) { throw new...
if(conn.isConnectionNull()) return null;
public java.sql.Connection connect(String url, java.util.Properties properties) throws java.sql.SQLException { if (exceptionsOnLoadDriver__ != null) { throw exceptionsOnLoadDriver__; } if (properties == null) { properties = new java.ut...
static LogWriter computeDncLogWriterForNewConnection(PrintWriter logWriter, String traceDirectory, String traceFile, boolean traceFileAppend, int traceLevel, String logWriterInUseSuffix, int traceFileSuffixIndex) throws SqlException { int globaltraceFileSuffixIndex = Configuration.traceFileSuffixIndex__++; LogWriter ...
LogWriter computeDncLogWriterForNewConnection(String logWriterInUseSuffix) throws SqlException { return computeDncLogWriterForNewConnection(logWriter, traceDirectory, traceFile, traceFileAppend, traceLevel, logWriterInUseSuffix, traceFileSuffixIndex_++);
static LogWriter computeDncLogWriterForNewConnection(PrintWriter logWriter, String traceDirectory, String traceFile, boolean traceFileAppend, int traceLevel, String logWriterInUseSuffix, int traceFileSuffixIndex) throws SqlException { int globaltraceFileSuffixIndex = Configuration.traceFileSuffixIndex__++; ...
((Resetable)myStream).initStream();
try { ((Resetable) myStream).initStream(); } catch (StandardException se) { if (se.getMessageId().equals(SQLState.DATA_CONTAINER_CLOSED)) { throw StandardException .newException(SQLState.BLOB_ACCESSED_AFTER_COMMIT); } }
protected EmbedClob(DataValueDescriptor dvd, EmbedConnection con) throws StandardException { super(con); // if the underlying column is null, ResultSet.getClob will return null, // never should get this far if (SanityManager.DEBUG) SanityManager.ASSERT(!dvd.isNull(),...
public StorableFormatId(int value)
public StorableFormatId()
public StorableFormatId(int value) { this.format_id = value; }
this.format_id = value;
public StorableFormatId(int value) { this.format_id = value; }
ps.setQueryTimeout(0L); org.apache.derby.iapi.sql.ResultSet rs = ps.execute(lcc, true);
org.apache.derby.iapi.sql.ResultSet rs = ps.execute(lcc, true, 0L);
public void deleteRow() throws SQLException { synchronized (getConnectionSynchronization()) { checksBeforeUpdateOrDelete("deleteRow", -1); setupContextStack(); //now construct the delete where current of sql try { StringBuffer deleteWhereCurrentOfSQL...
ps.setQueryTimeout(0L); org.apache.derby.iapi.sql.ResultSet rs = ps.execute(act, false, true, true);
org.apache.derby.iapi.sql.ResultSet rs = ps.execute(act, false, true, true, 0L);
public void updateRow() throws SQLException { synchronized (getConnectionSynchronization()) { checksBeforeUpdateOrDelete("updateRow", -1); setupContextStack(); LanguageConnectionContext lcc = null; StatementContext statementContext = null; try { if (currentRowHasBeenU...
String oldJarLoc = System.getProperty("derbyTesting.oldJarLocation"); boolean[] isJar = new boolean[1]; String newJarLoc = jvm.findCodeBase(isJar);
public static void main(String[] args) { String oldJarLoc = System.getProperty("derbyTesting.oldJarLocation"); boolean[] isJar = new boolean[1]; String newJarLoc = jvm.findCodeBase(isJar); int oldMajorVersion = 10; int oldMinorVersion = 1; int newMajorVersion = 10; int newMinorVersion = 2; boolean allowPre...
UpgradeTester upgradeTester = new UpgradeTester(oldJarLoc, newJarLoc, oldMajorVersion, oldMinorVersion, newMajorVersion, newMinorVersion, allowPreReleaseUpgrade);
UpgradeTester upgradeTester = new UpgradeTester( oldMajorVersion, oldMinorVersion, newMajorVersion, newMinorVersion, allowPreReleaseUpgrade);
public static void main(String[] args) { String oldJarLoc = System.getProperty("derbyTesting.oldJarLocation"); boolean[] isJar = new boolean[1]; String newJarLoc = jvm.findCodeBase(isJar); int oldMajorVersion = 10; int oldMinorVersion = 1; int newMajorVersion = 10; int newMinorVersion = 2; boolean allowPre...
return new SystemPropertyTestSetup(suite, properties);
return new DatabasePropertyTestSetup(suite, properties);
public static Test suite() { final TestSuite suite = new TestSuite(); // This testcase does not require JDBC3/JSR169, since it does not // specify result set concurrency) in Connection.createStatement(). suite.addTest(new ConcurrencyTest("testSharedLocks2")); // Th...
reloadBestPlan = false; savedJoinOrders = null;
protected OptimizerImpl(OptimizableList optimizableList, OptimizablePredicateList predicateList, DataDictionary dDictionary, boolean ruleBasedOptimization, boolean noTimeout, boolean useStatistics, int maxMemoryPerTable, JoinStrategy[] joinStrategies, int tableLockThreshold, ...
}
reloadBestPlan = false; } else reloadBestPlan = true;
public boolean getNextDecoratedPermutation() throws StandardException { boolean retval; Optimizable curOpt = optimizableList.getOptimizable(proposedJoinOrder[joinPosition]); double originalRowCount = 0.0; // RESOLVE: Should we step through the different join strategies here? /* Returns true until all acc...
proposedJoinOrder[joinPosition] = -1;
public boolean getNextPermutation() throws StandardException { /* Don't get any permutations if there is nothing to optimize */ if (numOptimizables < 1) { if (optimizerTrace) { trace(NO_TABLES, 0, 0, 0.0, null); } return false; } /* Make sure that all Optimizables init their access paths. * (They w...
optimizableList.getOptimizable(bestJoinOrder[i]).rememberAsBest(planType);
optimizableList.getOptimizable(bestJoinOrder[i]). rememberAsBest(planType, this);
private void rememberBestCost(CostEstimate currentCost, int planType) throws StandardException { foundABestPlan = true; if (optimizerTrace) { trace(CHEAPEST_PLAN_SO_FAR, 0, 0, 0.0, null); trace(PLAN_TYPE, planType, 0, 0.0, null); trace(COST_OF_CHEAPEST_PLAN_SO_FAR, 0, 0, 0.0, null); } /* Remember the curre...
if (reloadBestPlan) pullMe.addOrLoadBestPlanMapping(false, this);
private void rewindJoinOrder() throws StandardException { for (; ; joinPosition--) { Optimizable pullMe = optimizableList.getOptimizable( proposedJoinOrder[joinPosition]); pullMe.pullOptPredicates(predicateList); proposedJoinOrder[joinPosition] = -1; if (joinPosition == 0) break; } currentCost....
TypeId leftTypeId = leftOperand.getTypeId();
if (leftOperand.requiresTypeFromContext()) leftOperand.setType(DataTypeDescriptor.getBuiltInDataTypeDescriptor( Types.DATE)); if (rightOperand.requiresTypeFromContext()) rightOperand.setType(DataTypeDescriptor.getBuiltInDataTypeDescriptor( Types.TIME)); TypeId leftTypeId = leftOperand.getTypeId();
public ValueNode bindExpression( FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException { leftOperand = leftOperand.bindExpression(fromList, subqueryList, aggregateVector); rightOperand = rightOperand.bindExpression(fromList, subqueryList, aggregateVector); T...
if( !(leftTypeId.isStringTypeId() || leftTypeId.getJDBCTypeId() == Types.DATE || leftOperand.isParameterNode()))
if( !(leftOperand.requiresTypeFromContext() || leftTypeId.isStringTypeId() || leftTypeId.getJDBCTypeId() == Types.DATE))
public ValueNode bindExpression( FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException { leftOperand = leftOperand.bindExpression(fromList, subqueryList, aggregateVector); rightOperand = rightOperand.bindExpression(fromList, subqueryList, aggregateVector); T...
if( !(rightTypeId.isStringTypeId() || rightTypeId.getJDBCTypeId() == Types.TIME || rightOperand.isParameterNode()))
if( !(rightOperand.requiresTypeFromContext() || rightTypeId.isStringTypeId() || rightTypeId.getJDBCTypeId() == Types.TIME))
public ValueNode bindExpression( FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException { leftOperand = leftOperand.bindExpression(fromList, subqueryList, aggregateVector); rightOperand = rightOperand.bindExpression(fromList, subqueryList, aggregateVector); T...
if (TestUtil.HAVE_DRIVER_CLASS)
private static void unloadEmbeddedDriver() { // Attempt to unload the embedded driver and engine try { DriverManager.getConnection("jdbc:derby:;shutdown=true"); } catch (SQLException se) { // Ignore any exception thrown } // Call the garbage collector as spes...
public ArrayList getFirstRows(String table_name, int limit, IProgressMonitor monitor) throws KettleDatabaseException
public ArrayList getFirstRows(String table_name, int limit) throws KettleDatabaseException
public ArrayList getFirstRows(String table_name, int limit, IProgressMonitor monitor) throws KettleDatabaseException { String sql = "SELECT * FROM "+table_name; if (limit>0) { sql+=databaseMeta.getLimitClause(limit); } return getRows(sql, limit, monitor); }
String sql = "SELECT * FROM "+table_name; if (limit>0) { sql+=databaseMeta.getLimitClause(limit); } return getRows(sql, limit, monitor);
return getFirstRows(table_name, limit, null);
public ArrayList getFirstRows(String table_name, int limit, IProgressMonitor monitor) throws KettleDatabaseException { String sql = "SELECT * FROM "+table_name; if (limit>0) { sql+=databaseMeta.getLimitClause(limit); } return getRows(sql, limit, monitor); }
public final void setConnectionAttributes(String prop) throws SQLException {
public final void setConnectionAttributes(String prop) {
public final void setConnectionAttributes(String prop) throws SQLException { connectionAttributes = prop; try { updateDataSourceValues(tokenizeAttributes(prop, null)); } catch(SqlException se) { throw se.getSQLException(); } }
try { updateDataSourceValues(tokenizeAttributes(prop, null)); } catch(SqlException se) { throw se.getSQLException(); }
public final void setConnectionAttributes(String prop) throws SQLException { connectionAttributes = prop; try { updateDataSourceValues(tokenizeAttributes(prop, null)); } catch(SqlException se) { throw se.getSQLException(); } }
void updateDataSourceValues(Properties prop) throws SqlException {
void updateDataSourceValues(Properties prop) {
void updateDataSourceValues(Properties prop) throws SqlException { if (prop == null) { return; } if (prop.containsKey(Attribute.DBNAME_ATTR)) { throw new SqlException(null, new ClientMessageId(SQLState.ATTRIBUTE_NOT_ALLOWED), Attribute.DBNAME_A...
} if (prop.containsKey(Attribute.DBNAME_ATTR)) { throw new SqlException(null, new ClientMessageId(SQLState.ATTRIBUTE_NOT_ALLOWED), Attribute.DBNAME_ATTR);
void updateDataSourceValues(Properties prop) throws SqlException { if (prop == null) { return; } if (prop.containsKey(Attribute.DBNAME_ATTR)) { throw new SqlException(null, new ClientMessageId(SQLState.ATTRIBUTE_NOT_ALLOWED), Attribute.DBNAME_A...
throw new IOException(MessageService.getTextMessage(SQLState.SET_STREAM_INSUFFICIENT_DATA));
throw new IOException(MessageService.getTextMessage(SQLState.SET_STREAM_INEXACT_LENGTH_DATA));
private void checkSufficientData() throws IOException { int remainingBytes = reader.clearLimit(); if (remainingBytes > 0) throw new IOException(MessageService.getTextMessage(SQLState.SET_STREAM_INSUFFICIENT_DATA)); // if we had a limit try reading one more character. // JDBC 3.0 states the stream muct have the c...
clobNegativeTest_Derby265(conn); blobNegativeTest_Derby265(conn);
public static void main(String[] args) { System.out.println("Test blobclob starting"); isDerbyNet = TestUtil.isNetFramework(); try { // use the ij utility to read the property file and // make the initial connection. ij.getPropertyArg(args); Connection conn = ij.startJBMS(); // turn off...
canEncryptDatabase(reEncrypt);
public void configureDatabaseForEncryption(Properties properties, boolean reEncrypt, CipherFactory newCipherFactory) throws StandardException { // check point the datase, so that encryption does not have ...
is = FileUtil.getInputStream(externalPath, 0);
is = openJarURL(externalPath);
add(UUID id, String schemaName, String sqlName, String externalPath) throws StandardException { JarUtil jutil = new JarUtil(id, schemaName, sqlName); InputStream is = null; try { is = FileUtil.getInputStream(externalPath, 0); return jutil.add(is); } catch (java.io.IOException fnfe) { throw StandardExcept...
is = FileUtil.getInputStream(externalPath, 0);
is = openJarURL(externalPath);
replace(UUID id,String schemaName, String sqlName, String externalPath,boolean purgeOnCommit) throws StandardException { JarUtil jutil = new JarUtil(id,schemaName,sqlName); InputStream is = null; try { is = FileUtil.getInputStream(externalPath, 0); return jutil.replace(is,purgeOnCommit); } catch (java.io...
optimizerEstimatedCost, closeCleanup);
optimizerEstimatedCost, userSuppliedOptimizerOverrides, closeCleanup);
public HashJoinResultSet(NoPutResultSet leftResultSet, int leftNumCols, NoPutResultSet rightResultSet, int rightNumCols, Activation activation, GeneratedMethod restriction, int resultSetNumber, boolean oneRowRightSide, boolean notExists...
else if( StringUtil.SQLEqualsIgnoreCase(s,"STRONG_PASSWORD_SUBSTITUTE_SECURITY")) secmec = CodePoint.SECMEC_USRSSBPWD;
private int getSecMecValue(String s) { int secmec = INVALID_OR_NOTSET_SECURITYMECHANISM; if( StringUtil.SQLEqualsIgnoreCase(s,"USER_ONLY_SECURITY")) secmec = CodePoint.SECMEC_USRIDONL; else if( StringUtil.SQLEqualsIgnoreCase(s,"CLEAR_TEXT_PASSWORD_SECURITY")) se...
case CodePoint.SECMEC_USRSSBPWD: return "STRONG_PASSWORD_SUBSTITUTE_SECURITY";
private String getStringValueForSecMec(int secmecVal) { switch(secmecVal) { case CodePoint.SECMEC_USRIDONL: return "USER_ONLY_SECURITY"; case CodePoint.SECMEC_USRIDPWD: return "CLEAR_TEXT_PASSWORD_SECURITY"; case...
if(exposedTableName.getSchemaName() == null && correlationName == null) exposedTableName.bind(this.getDataDictionary());
public ResultColumn getMatchingColumn(ColumnReference columnReference) throws StandardException { ResultColumn resultColumn = null; TableName columnsTableName; TableName exposedTableName; columnsTableName = columnReference.getTableNameNode(); /* ** If there is a correlation name, use that instead of the ** ta...
Object key, Object[] row)
Object[] row, boolean needsToClone )
private void add_row_to_hash_table( Hashtable hash_table, Object key, Object[] row) throws StandardException { if( spillToDisk( hash_table, key, row)) return; Object duplicate_value = null; if ((duplicate_value = hash_table.put(key, row)) == null) ...
if( spillToDisk( hash_table, key, row))
if( spillToDisk( hash_table, row))
private void add_row_to_hash_table( Hashtable hash_table, Object key, Object[] row) throws StandardException { if( spillToDisk( hash_table, key, row)) return; Object duplicate_value = null; if ((duplicate_value = hash_table.put(key, row)) == null) ...
if (needsToClone) { row = cloneRow(row); } Object key = KeyHasher.buildHashKey(row, key_column_numbers);
private void add_row_to_hash_table( Hashtable hash_table, Object key, Object[] row) throws StandardException { if( spillToDisk( hash_table, key, row)) return; Object duplicate_value = null; if ((duplicate_value = hash_table.put(key, row)) == null) ...
if (needsToClone) { row = cloneRow(row); }
public boolean put( boolean needsToClone, Object[] row) throws StandardException { // Are any key columns null? if (skipNullKeyColumns) { int index = 0; for ( ; index < key_column_numbers.length; index++) { if (SanityManager.DEBUG) { if (! (row[key_column_numbers[index]] instance...
add_row_to_hash_table(hash_table, key, row);
add_row_to_hash_table(hash_table, row, needsToClone);
public boolean put( boolean needsToClone, Object[] row) throws StandardException { // Are any key columns null? if (skipNullKeyColumns) { int index = 0; for ( ; index < key_column_numbers.length; index++) { if (SanityManager.DEBUG) { if (! (row[key_column_numbers[index]] instance...
Object key,
private boolean spillToDisk( Hashtable hash_table, Object key, Object[] row) throws StandardException { // Once we have started spilling all new rows will go to disk, even if we have freed up some // memory by moving duplica...
else if( max_inmemory_size > 0)
else if( max_inmemory_size > getEstimatedMemUsage(row))
private boolean spillToDisk( Hashtable hash_table, Object key, Object[] row) throws StandardException { // Once we have started spilling all new rows will go to disk, even if we have freed up some // memory by moving duplica...
Object key = KeyHasher.buildHashKey(row, key_column_numbers);
private boolean spillToDisk( Hashtable hash_table, Object key, Object[] row) throws StandardException { // Once we have started spilling all new rows will go to disk, even if we have freed up some // memory by moving duplica...
SanityManager.DEBUG_PRINT("GenericScanController.closeForEndTransaction", "closeHeldScan = " + closeHeldScan + "open_conglom.getHold() = " + open_conglom.getHold());
public boolean closeForEndTransaction( boolean closeHeldScan) throws StandardException { SanityManager.DEBUG_PRINT("GenericScanController.closeForEndTransaction", "closeHeldScan = " + closeHeldScan + "open_conglom.getHold() = " + open_conglom.getHold()); ...
materialSubNode.costEstimate = resultSet.getFinalCostEstimate();
public void generateExpression( ExpressionClassBuilder expressionBuilder, MethodBuilder mbex) throws StandardException { CompilerContext cc = getCompilerContext(); String resultSetString; /////////////////////////////////////////////////////////////////////////// // // Subqueries should n...
keepAfterCommit = activation.getResultSetHoldability();
public ScrollInsensitiveResultSet(NoPutResultSet source, Activation activation, int resultSetNumber, int sourceRowWidth, double optimizerEstimatedRowCount, double optimizerEstimatedCost, GeneratedMethod c) throws StandardException { super(activation, resultSetNumber, optim...
ht = new BackingStoreHashtable(tc,
ht = new BackingStoreHashtable(getTransactionController(),
public void openCore() throws StandardException { beginTime = getCurrentTimeMillis(); if (SanityManager.DEBUG) SanityManager.ASSERT( ! isOpen, "ScrollInsensitiveResultSet already open"); source.openCore(); isOpen = true; numOpens++; /* Create the hash table. We pass * null in as the row source a...
false);
false, keepAfterCommit);
public void openCore() throws StandardException { beginTime = getCurrentTimeMillis(); if (SanityManager.DEBUG) SanityManager.ASSERT( ! isOpen, "ScrollInsensitiveResultSet already open"); source.openCore(); isOpen = true; numOpens++; /* Create the hash table. We pass * null in as the row source a...
void parseABNUOWRM(ConnectionCallbackInterface connection) throws DisconnectException {
void parseABNUOWRM() throws DisconnectException {
void parseABNUOWRM(ConnectionCallbackInterface connection) throws DisconnectException { boolean svrcodReceived = false; int svrcod = CodePoint.SVRCOD_INFO; boolean rdbnamReceived = false; String rdbnam = null; parseLengthAndMatchCodePoint(CodePoint.ABNUOWRM); pushLengthOnCo...
connection.completeAbnormalUnitOfWork();
void parseABNUOWRM(ConnectionCallbackInterface connection) throws DisconnectException { boolean svrcodReceived = false; int svrcod = CodePoint.SVRCOD_INFO; boolean rdbnamReceived = false; String rdbnam = null; parseLengthAndMatchCodePoint(CodePoint.ABNUOWRM); pushLengthOnCo...
NetSqlca parseAbnormalEndUow(ConnectionCallbackInterface connection) throws DisconnectException { parseABNUOWRM(connection);
NetSqlca parseAbnormalEndUow(ConnectionCallbackInterface connection,UnitOfWorkListener uwl) throws DisconnectException { parseABNUOWRM();
NetSqlca parseAbnormalEndUow(ConnectionCallbackInterface connection) throws DisconnectException { parseABNUOWRM(connection); if (peekCodePoint() != CodePoint.SQLCARD) { parseTypdefsOrMgrlvlovrs(); } NetSqlca netSqlca = parseSQLCARD(null); return netSqlca; }
if(ExceptionUtil.getSeverityFromIdentifier(netSqlca.getSqlState()) > ExceptionSeverity.STATEMENT_SEVERITY || uwl == null) connection.completeAbnormalUnitOfWork(); else connection.completeAbnormalUnitOfWork(uwl);
NetSqlca parseAbnormalEndUow(ConnectionCallbackInterface connection) throws DisconnectException { parseABNUOWRM(connection); if (peekCodePoint() != CodePoint.SQLCARD) { parseTypdefsOrMgrlvlovrs(); } NetSqlca netSqlca = parseSQLCARD(null); return netSqlca; }
NetSqlca sqlca = parseAbnormalEndUow(connection);
NetSqlca sqlca = parseAbnormalEndUow(connection,null);
protected void parseCommitError(ConnectionCallbackInterface connection) throws DisconnectException { int peekCP = peekCodePoint(); switch (peekCP) { case CodePoint.ABNUOWRM: NetSqlca sqlca = parseAbnormalEndUow(connection); connection.completeSqlca(sqlca); break...
final void skipBytes() throws org.apache.derby.client.am.DisconnectException { int len = ddmScalarLen_; ensureBLayerDataInBuffer(len); adjustLengths(len); pos_ += len;
final void skipBytes(int length) throws org.apache.derby.client.am.DisconnectException { ensureBLayerDataInBuffer(length); adjustLengths(length); pos_ += length;
final void skipBytes() throws org.apache.derby.client.am.DisconnectException { int len = ddmScalarLen_; ensureBLayerDataInBuffer(len); adjustLengths(len); pos_ += len; }
final byte[] readBytes() throws org.apache.derby.client.am.DisconnectException { int len = ddmScalarLen_; ensureBLayerDataInBuffer(len); adjustLengths(len);
final byte[] readBytes(int length) throws org.apache.derby.client.am.DisconnectException { ensureBLayerDataInBuffer(length); adjustLengths(length);
final byte[] readBytes() throws org.apache.derby.client.am.DisconnectException { int len = ddmScalarLen_; ensureBLayerDataInBuffer(len); adjustLengths(len); byte[] b = new byte[len]; System.arraycopy(buffer_, pos_, b, 0, len); pos_ += len; return b; }
byte[] b = new byte[len]; System.arraycopy(buffer_, pos_, b, 0, len); pos_ += len;
byte[] b = new byte[length]; System.arraycopy(buffer_, pos_, b, 0, length); pos_ += length;
final byte[] readBytes() throws org.apache.derby.client.am.DisconnectException { int len = ddmScalarLen_; ensureBLayerDataInBuffer(len); adjustLengths(len); byte[] b = new byte[len]; System.arraycopy(buffer_, pos_, b, 0, len); pos_ += len; return b; }
final String readString() throws org.apache.derby.client.am.DisconnectException { int len = ddmScalarLen_; ensureBLayerDataInBuffer(len); adjustLengths(len); String result = ccsidManager_.convertToUCS2(buffer_, pos_, len); pos_ += len;
final String readString(int length) throws org.apache.derby.client.am.DisconnectException { ensureBLayerDataInBuffer(length); adjustLengths(length); String result = ccsidManager_.convertToUCS2(buffer_, pos_, length); pos_ += length;
final String readString() throws org.apache.derby.client.am.DisconnectException { int len = ddmScalarLen_; ensureBLayerDataInBuffer(len); adjustLengths(len); String result = ccsidManager_.convertToUCS2(buffer_, pos_, len); pos_ += len; return result; }
final String readFastString(int length, String encoding) throws org.apache.derby.client.am.DisconnectException { String s = null; try { s = new String(buffer_, pos_, length, encoding); } catch (java.io.UnsupportedEncodingException e) { agent_.accumulateChainBreakingReadExceptionAndThrow(new org.apache.derby.client.am....
final String readFastString(int length) throws org.apache.derby.client.am.DisconnectException { String result = ccsidManager_.convertToUCS2(buffer_, pos_, length);
final String readFastString(int length, String encoding) throws org.apache.derby.client.am.DisconnectException { String s = null; try { s = new String(buffer_, pos_, length, encoding); } catch (java.io.UnsupportedEncodingException e) { agent_.accumulateChainBreakingReadExc...
return s;
return result;
final String readFastString(int length, String encoding) throws org.apache.derby.client.am.DisconnectException { String s = null; try { s = new String(buffer_, pos_, length, encoding); } catch (java.io.UnsupportedEncodingException e) { agent_.accumulateChainBreakingReadExc...
byte[] sqlStateBytes, byte[] sqlErrpBytes, int ccsid) {
String sqlState, byte[] sqlErrpBytes) {
NetSqlca(org.apache.derby.client.am.Connection connection, int sqlCode, byte[] sqlStateBytes, byte[] sqlErrpBytes, int ccsid) { super(connection); sqlCode_ = sqlCode; sqlStateBytes_ = sqlStateBytes; sqlErrpBytes_ = sqlErrpBytes; ccsi...
sqlStateBytes_ = sqlStateBytes;
sqlState_ = sqlState;
NetSqlca(org.apache.derby.client.am.Connection connection, int sqlCode, byte[] sqlStateBytes, byte[] sqlErrpBytes, int ccsid) { super(connection); sqlCode_ = sqlCode; sqlStateBytes_ = sqlStateBytes; sqlErrpBytes_ = sqlErrpBytes; ccsi...
ccsid_ = ccsid;
NetSqlca(org.apache.derby.client.am.Connection connection, int sqlCode, byte[] sqlStateBytes, byte[] sqlErrpBytes, int ccsid) { super(connection); sqlCode_ = sqlCode; sqlStateBytes_ = sqlStateBytes; sqlErrpBytes_ = sqlErrpBytes; ccsi...
double optimizerEstimatedCost, GeneratedMethod c) throws StandardException
double optimizerEstimatedCost) throws StandardException
public SortResultSet(NoPutResultSet s, boolean distinct, boolean isInSortedOrder, int orderingItem, Activation a, GeneratedMethod ra, int maxRowSize, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost, GeneratedMethod c) throws Standar...
closeCleanup = c;
public SortResultSet(NoPutResultSet s, boolean distinct, boolean isInSortedOrder, int orderingItem, Activation a, GeneratedMethod ra, int maxRowSize, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost, GeneratedMethod c) throws Standar...
if (closeCleanup != null) { closeCleanup.invoke(activation); }
public void close() throws StandardException { beginTime = getCurrentTimeMillis(); if ( isOpen ) { // we don't want to keep around a pointer to the // row ... so it can be thrown away. // REVISIT: does this need to be in a finally // block, to ensure that it is executed? clearCurrentRow(); if (clo...
currentRow = null;
public void close() throws StandardException { beginTime = getCurrentTimeMillis(); if ( isOpen ) { // we don't want to keep around a pointer to the // row ... so it can be thrown away. // REVISIT: does this need to be in a finally // block, to ensure that it is executed? clearCurrentRow(); if (clo...
public UTF(String value)
public UTF()
public UTF(String value) { super(value); }
super(value);
public UTF(String value) { super(value); }
int isolationLevel
int isolationLevel, int maxMemoryPerTable
public int getScanArgs( TransactionController tc, MethodBuilder mb, Optimizable innerTable, OptimizablePredicateList storeRestrictionList, OptimizablePredicateList nonStoreRestrictionList, ExpressionClassBuilderInterface acbi, int bulkFetch, MethodBuilder resultRowAlloca...
mb.push(innerTable.maxCapacity());
mb.push(innerTable.maxCapacity( (JoinStrategy) this, maxMemoryPerTable));
public int getScanArgs( TransactionController tc, MethodBuilder mb, Optimizable innerTable, OptimizablePredicateList storeRestrictionList, OptimizablePredicateList nonStoreRestrictionList, ExpressionClassBuilderInterface acbi, int bulkFetch, MethodBuilder resultRowAlloca...
passed = caseTriggerVTI(conn, phase, oldMajorVersion, oldMinorVersion) && passed;
private void runPhase(int version, int phase) throws Exception{ System.out.println("\n\nSTART - phase " + PHASES[phase]); URLClassLoader classLoader = null; switch(version) { case OLD_RELEASE: classLoader = oldClassLoader; break; case NEW_RELEASE: classLoader = newClassLoader; break; ...
return false;
if (type == JDBC20Translation.TYPE_SCROLL_INSENSITIVE) { return true; } else { return false; }
public boolean deletesAreDetected(int type) { return false; }
public boolean ownDeletesAreVisible(int type) { return false;
public boolean ownDeletesAreVisible(int type) { if (type == JDBC20Translation.TYPE_SCROLL_INSENSITIVE) { return true; } else { return false; }
public boolean ownDeletesAreVisible(int type) { return false; }
return false;
if (type == JDBC20Translation.TYPE_SCROLL_INSENSITIVE) { return true; } else { return false; }
public boolean ownUpdatesAreVisible(int type) { return false; }
if ((type == JDBC20Translation.TYPE_FORWARD_ONLY) && (concurrency == JDBC20Translation.CONCUR_UPDATABLE)) return true; if ((type == JDBC20Translation.TYPE_SCROLL_SENSITIVE) || (concurrency == JDBC20Translation.CONCUR_UPDATABLE)) return false; return true;
if (type == JDBC20Translation.TYPE_SCROLL_SENSITIVE) { return false; } else { return true; }
public boolean supportsResultSetConcurrency(int type, int concurrency) { //FORWARD_ONLY + CONCUR_UPDATABLE combination is supported (at this point, delete and update functionality only) if ((type == JDBC20Translation.TYPE_FORWARD_ONLY) && (concurrency == JDBC20Translation.CONCUR_UPDATABLE)) return true; //requ...
return false;
if (type == JDBC20Translation.TYPE_SCROLL_INSENSITIVE) { return true; } else { return false; }
public boolean updatesAreDetected(int type) { return false; }