rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
int length = buf.length; int writeLen = buf.length; writeShort(writeLen); writeBytes(buf,0,writeLen); | writeLDBytes(buf, 0); | protected void writeLDBytes(byte[] buf, int index) { int length = buf.length; int writeLen = buf.length; writeShort(writeLen); writeBytes(buf,0,writeLen); } |
protected void writeScalarPaddedString (String string, int paddedLength) | void writeScalarPaddedString (int codePoint, String string, int paddedLength) | protected void writeScalarPaddedString (String string, int paddedLength) { int stringLength = string.length(); int fillLength = paddedLength -stringLength; ensureLength (paddedLength); offset = ccsidManager.convertFromUCS2 (string, bytes, offset); Arrays.fill(bytes,offset, offset + fillLength,ccsidManager.space);... |
int fillLength = paddedLength -stringLength; ensureLength (paddedLength); offset = ccsidManager.convertFromUCS2 (string, bytes, offset); | int fillLength = paddedLength - stringLength; ensureLength (paddedLength + 4); bytes[offset] = (byte) (((paddedLength+4) >>> 8) & 0xff); bytes[offset + 1] = (byte) ((paddedLength+4) & 0xff); bytes[offset + 2] = (byte) ((codePoint >>> 8) & 0xff); bytes[offset + 3] = (byte) (codePoint & 0xff); offset = ccsidManager.conve... | protected void writeScalarPaddedString (String string, int paddedLength) { int stringLength = string.length(); int fillLength = paddedLength -stringLength; ensureLength (paddedLength); offset = ccsidManager.convertFromUCS2 (string, bytes, offset); Arrays.fill(bytes,offset, offset + fillLength,ccsidManager.space);... |
protected void writeScalarPaddedBytes (byte[] buf, int paddedLength, byte padByte) | protected void writeScalarPaddedBytes (int codePoint, byte[] buf, int paddedLength, byte padByte) | protected void writeScalarPaddedBytes (byte[] buf, int paddedLength, byte padByte) { int bufLength = buf.length; int fillLength = paddedLength - bufLength; ensureLength (paddedLength); System.arraycopy(buf,0,bytes,offset,bufLength); offset +=bufLength; Arrays.fill(bytes,offset,offset + fillLength,padByte); offs... |
ensureLength (paddedLength); System.arraycopy(buf,0,bytes,offset,bufLength); offset +=bufLength; | protected void writeScalarPaddedBytes (byte[] buf, int paddedLength, byte padByte) { int bufLength = buf.length; int fillLength = paddedLength - bufLength; ensureLength (paddedLength); System.arraycopy(buf,0,bytes,offset,bufLength); offset +=bufLength; Arrays.fill(bytes,offset,offset + fillLength,padByte); offs... | |
public void saveRep(Repository rep, IProgressMonitor monitor) throws KettleException | public void saveRep(Repository rep) throws KettleException | public void saveRep(Repository rep, IProgressMonitor monitor) throws KettleException { try { if (monitor!=null) monitor.subTask(Messages.getString("TransMeta.Monitor.LockingRepository")); //$NON-NLS-1$ rep.lockRepository(); // make sure we're they only one using the repository at... |
try { if (monitor!=null) monitor.subTask(Messages.getString("TransMeta.Monitor.LockingRepository")); rep.lockRepository(); rep.clearNextIDCounters(); if (directory.getID() < 0) { throw new KettleException(Messages.getString("TransMeta.Exception.PlsSelectAValidDirectoryBeforeSavingTheTransformation")); } int nrWor... | saveRep(rep, null); | public void saveRep(Repository rep, IProgressMonitor monitor) throws KettleException { try { if (monitor!=null) monitor.subTask(Messages.getString("TransMeta.Monitor.LockingRepository")); //$NON-NLS-1$ rep.lockRepository(); // make sure we're they only one using the repository at... |
PreparedStatement statementB = prepare(conn2, getFetchQuery("t")); | PreparedStatement statementB = prepare(conn1, getFetchQuery("t")); | private static void testTimeoutWithFetch(Connection conn1, Connection conn2) throws TestFailedException { System.out.println("Testing timeout with fetch operations"); try { conn1.setAutoCommit(false); conn2.setAutoC... |
public JSQLType getJSQLType ( ) | public JSQLType getJSQLType() throws StandardException | public JSQLType getJSQLType ( ) { return jsqlType; } |
public String getJavaTypeName() | public String getJavaTypeName() throws StandardException | public String getJavaTypeName() { JSQLType myType = getJSQLType(); if ( myType == null ) { return ""; } switch( myType.getCategory() ) { case JSQLType.JAVA_CLASS: return myType.getJavaClassName(); case JSQLType.JAVA_PRIMITIVE: return JSQLType.primitiveNames[ myType.getPrimitiveKind() ]; default: ... |
public boolean isPrimitiveType() | public boolean isPrimitiveType() throws StandardException | public boolean isPrimitiveType() { JSQLType myType = getJSQLType(); if ( myType == null ) { return false; } else { return ( myType.getCategory() == JSQLType.JAVA_PRIMITIVE ); } } |
public void checkReliability( int fragmentBitMask, String fragmentType ) | public void checkReliability( String fragmentType, int fragmentBitMask ) | public void checkReliability( int fragmentBitMask, String fragmentType ) throws StandardException { // if we're in a context that forbids unreliable fragments, raise an error if ( ( getCompilerContext().getReliability() & fragmentBitMask ) != 0 ) { String fragmentTypeTxt = MessageService.getTextMessage(... |
String fragmentTypeTxt = MessageService.getTextMessage( fragmentType ); throwReliabilityException( fragmentTypeTxt ); | throwReliabilityException( fragmentType ); | public void checkReliability( int fragmentBitMask, String fragmentType ) throws StandardException { // if we're in a context that forbids unreliable fragments, raise an error if ( ( getCompilerContext().getReliability() & fragmentBitMask ) != 0 ) { String fragmentTypeTxt = MessageService.getTextMessage(... |
public LocalField newFieldDeclaration(int modifiers, String type) | public LocalField newFieldDeclaration(int modifiers, String type, String name) | public LocalField newFieldDeclaration(int modifiers, String type) { return cb.addField(type, newFieldName(), modifiers); } |
return cb.addField(type, newFieldName(), modifiers); | return cb.addField(type, name, modifiers); | public LocalField newFieldDeclaration(int modifiers, String type) { return cb.addField(type, newFieldName(), modifiers); } |
public JSQLType ( String javaName ) { byte primitiveID = getPrimitiveID( javaName ); if ( primitiveID != NOT_PRIMITIVE ) { initialize( primitiveID ); } else { initialize( javaName ); } } | public JSQLType() { initialize( INT ); } | public JSQLType ( String javaName ) { byte primitiveID = getPrimitiveID( javaName ); if ( primitiveID != NOT_PRIMITIVE ) { initialize( primitiveID ); } else { initialize( javaName ); } } |
hasSchema = schemaName != null; | public void init(Object schemaName, Object tableName) { this.schemaName = (String) schemaName; this.tableName = (String) tableName; } | |
return getFullTableName(); | if (hasSchema) return getFullTableName(); else return tableName; | public String toString() { return getFullTableName(); } |
System.out.println("MORE BYTES IN ASCII STREAM THAN SPECIFIED LENGTH - REJECTED " + sqle.toString()); | System.out.println("MORE BYTES IN ASCII STREAM THAN SPECIFIED LENGTH - REJECTED "); expectedException(sqle); | private static void setAscii(PreparedStatement ps, int targetCol) throws Exception { // correct byte count System.out.println("CORRECT NUMBER OF BYTES IN STREAM"); ps.setAsciiStream(targetCol, new java.io.ByteArrayInputStream("Lieberman ran with Gore".getBytes("US-ASCII")), 23); ps.executeUpdate(); // less bytes ... |
System.out.println("LESS BYTES IN ASCII STREAM THAN SPECIFIED LENGTH - REJECTED " + sqle.toString()); | System.out.println("LESS BYTES IN ASCII STREAM THAN SPECIFIED LENGTH - REJECTED "); expectedException(sqle); | private static void setAscii(PreparedStatement ps, int targetCol) throws Exception { // correct byte count System.out.println("CORRECT NUMBER OF BYTES IN STREAM"); ps.setAsciiStream(targetCol, new java.io.ByteArrayInputStream("Lieberman ran with Gore".getBytes("US-ASCII")), 23); ps.executeUpdate(); // less bytes ... |
System.out.println("MORE CHARACTERS IN READER THAN SPECIFIED LENGTH - REJECTED " + sqle.toString()); | System.out.println("MORE CHARACTERS IN READER THAN SPECIFIED LENGTH - REJECTED "); expectedException(sqle); | private static void setCharacter(PreparedStatement ps, int targetCol) throws Exception { // correct character count ps.setCharacterStream(targetCol, new java.io.StringReader("A Mississippi Republican"), 24); ps.executeUpdate(); ps.setCharacterStream(targetCol, new java.io.StringReader("Lott has apologized"), 19); ... |
System.out.println("LESS CHARACTERS IN READER STREAM THAN SPECIFIED LENGTH - REJECTED " + sqle.toString()); | System.out.println("LESS CHARACTERS IN READER STREAM THAN SPECIFIED LENGTH - REJECTED "); expectedException(sqle); | private static void setCharacter(PreparedStatement ps, int targetCol) throws Exception { // correct character count ps.setCharacterStream(targetCol, new java.io.StringReader("A Mississippi Republican"), 24); ps.executeUpdate(); ps.setCharacterStream(targetCol, new java.io.StringReader("Lott has apologized"), 19); ... |
public DataTypeDescriptor(DataTypeDescriptor source, boolean isNullable) { this.typeId = source.typeId; typeDescriptor = new TypeDescriptorImpl(source.typeDescriptor, source.getPrecision(), source.getScale(), isNullable, source.getMaximumWidth()); } | public DataTypeDescriptor() {} | public DataTypeDescriptor(DataTypeDescriptor source, boolean isNullable) { this.typeId = source.typeId; typeDescriptor = new TypeDescriptorImpl(source.typeDescriptor, source.getPrecision(), source.getScale(), isNullable, source.getMaximumWidth()); } |
if (action == DependencyManager.REVOKE_PRIVILEGE) { return; } | public void makeInvalid(int action, LanguageConnectionContext lcc) throws StandardException { /* ** SET_CONSTRAINTS/TRIGGERS is the only valid action */ if ((action != DependencyManager.SET_CONSTRAINTS_DISABLE) && (action != DependencyManager.SET_CONSTRAINTS_ENABLE) && (action != DependencyManager.SET_TRIGGE... | |
case DependencyManager.REVOKE_PRIVILEGE: | public void prepareToInvalidate(Provider p, int action, LanguageConnectionContext lcc) throws StandardException { DependencyManager dm = getDataDictionary().getDependencyManager(); switch (action) { /* ** A SET CONSTRAINT stmt will throw an SET_CONSTRAINTS action ** when enabling/disabling constraints. ... | |
public TupleDescriptor(DataDictionary dataDictionary) { this.dataDictionary = dataDictionary; } | public TupleDescriptor() {} | public TupleDescriptor(DataDictionary dataDictionary) { this.dataDictionary = dataDictionary; } |
public ColumnDescriptor getColumnDescriptor(int columnNumber) | public ColumnDescriptor getColumnDescriptor(String columnName) | public ColumnDescriptor getColumnDescriptor(int columnNumber) { return columnDescriptorList.getColumnDescriptor(oid, columnNumber); } |
return columnDescriptorList.getColumnDescriptor(oid, columnNumber); | return columnDescriptorList.getColumnDescriptor(oid, columnName); | public ColumnDescriptor getColumnDescriptor(int columnNumber) { return columnDescriptorList.getColumnDescriptor(oid, columnNumber); } |
public StaticTagScript(StaticTag tag) { super(tag); | public StaticTagScript() { | public StaticTagScript(StaticTag tag) { super(tag); } |
endNamespacePrefixes(output); | public void run(JellyContext context, XMLOutput output) throws Exception { if ( firstRun ) { firstRun = false; // lets see if we have a dynamic tag tag = findDynamicTag(context, (StaticTag) tag); } try { tag.setContext(context); ... | |
return 12; | return 11; | protected int getNumJoinArguments() { return 12; } |
public ProjectRestrictResultSet(NoPutResultSet s, | ProjectRestrictResultSet(NoPutResultSet s, | public ProjectRestrictResultSet(NoPutResultSet s, Activation a, GeneratedMethod r, GeneratedMethod p, int resultSetNumber, GeneratedMethod cr, int mapRefItem, boolean reuseResult, boolean doesProjection, double optimizerEstimatedRowCount, double optimizerEstimatedCost, ... |
double optimizerEstimatedCost, GeneratedMethod c) | double optimizerEstimatedCost) | public ProjectRestrictResultSet(NoPutResultSet s, Activation a, GeneratedMethod r, GeneratedMethod p, int resultSetNumber, GeneratedMethod cr, int mapRefItem, boolean reuseResult, boolean doesProjection, double optimizerEstimatedRowCount, double optimizerEstimatedCost, ... |
closeCleanup = c; | public ProjectRestrictResultSet(NoPutResultSet s, Activation a, GeneratedMethod r, GeneratedMethod p, int resultSetNumber, GeneratedMethod cr, int mapRefItem, boolean reuseResult, boolean doesProjection, double optimizerEstimatedRowCount, double optimizerEstimatedCost, ... | |
if (closeCleanup != null) { closeCleanup.invoke(activation); } currentRow = null; | public void close() throws StandardException { /* Nothing to do if open was short circuited by false constant expression */ if (shortCircuitOpen) { isOpen = false; shortCircuitOpen = false; return; } beginTime = getCurrentTimeMillis(); if ( isOpen ) { // we don't want to keep around a pointer to the ... | |
public void setRowArray(DataValueDescriptor[] rowArray); | public void setRowArray(Storable[] rowArray); | public void setRowArray(DataValueDescriptor[] rowArray); |
currentRow = row; | public final void setCurrentRow(ExecRow row) { activation.setCurrentRow(row, resultSetNumber); } | |
CompilerContext cc = getCompilerContext(); cc.addRequiredColumnPriv( resultColumn.getTableColumnDescriptor()); | public ResultColumn bindColumnReference(ColumnReference columnReference) throws StandardException { boolean columnNameMatch = false; boolean tableNameMatch = false; FromTable fromTable; int currentLevel = -1; int previousLevel = -1; ResultColumn matchingRC = null; ResultColumn resultColumn; Strin... | |
public void recordColumnReferences(boolean[] colArray1, JBitSet[] tableColMap, int tableNumber) | public void recordColumnReferences(int[] idArray, int basis) | public void recordColumnReferences(boolean[] colArray1, JBitSet[] tableColMap, int tableNumber) { int size = size(); for (int index = 0; index < size; index++) { int columnNumber; ResultColumn rc = (ResultColumn) elementAt(index); if (! (rc.getExpression() instanceof ColumnReference)) { continue; } ... |
int columnNumber; | public void recordColumnReferences(boolean[] colArray1, JBitSet[] tableColMap, int tableNumber) { int size = size(); for (int index = 0; index < size; index++) { int columnNumber; ResultColumn rc = (ResultColumn) elementAt(index); if (! (rc.getExpression() instanceof ColumnReference)) { continue; } ... | |
if (! (rc.getExpression() instanceof ColumnReference)) | if (rc.isReferenced()) | public void recordColumnReferences(boolean[] colArray1, JBitSet[] tableColMap, int tableNumber) { int size = size(); for (int index = 0; index < size; index++) { int columnNumber; ResultColumn rc = (ResultColumn) elementAt(index); if (! (rc.getExpression() instanceof ColumnReference)) { continue; } ... |
continue; | idArray[currArrayElement++] = index + basis; | public void recordColumnReferences(boolean[] colArray1, JBitSet[] tableColMap, int tableNumber) { int size = size(); for (int index = 0; index < size; index++) { int columnNumber; ResultColumn rc = (ResultColumn) elementAt(index); if (! (rc.getExpression() instanceof ColumnReference)) { continue; } ... |
columnNumber = ((ColumnReference) rc.getExpression()).getColumnNumber(); colArray1[columnNumber] = true; tableColMap[tableNumber].set(columnNumber); | public void recordColumnReferences(boolean[] colArray1, JBitSet[] tableColMap, int tableNumber) { int size = size(); for (int index = 0; index < size; index++) { int columnNumber; ResultColumn rc = (ResultColumn) elementAt(index); if (! (rc.getExpression() instanceof ColumnReference)) { continue; } ... | |
protected boolean supersetOfUniqueIndex(JBitSet[] tableColMap) | protected boolean supersetOfUniqueIndex(boolean[] eqCols) | protected boolean supersetOfUniqueIndex(JBitSet[] tableColMap) throws StandardException { ConglomerateDescriptor[] cds = tableDescriptor.getConglomerateDescriptors(); /* Cycle through the ConglomerateDescriptors */ for (int index = 0; index < cds.length; index++) { ConglomerateDescriptor cd = cds[index]; if (... |
int numBits = tableColMap[0].size(); JBitSet keyMap = new JBitSet(numBits); JBitSet resMap = new JBitSet(numBits); | protected boolean supersetOfUniqueIndex(JBitSet[] tableColMap) throws StandardException { ConglomerateDescriptor[] cds = tableDescriptor.getConglomerateDescriptors(); /* Cycle through the ConglomerateDescriptors */ for (int index = 0; index < cds.length; index++) { ConglomerateDescriptor cd = cds[index]; if (... | |
keyMap.set(keyColumns[inner]); } int table = 0; for ( ; table < tableColMap.length; table++) { resMap.setTo(tableColMap[table]); resMap.and(keyMap); if (keyMap.equals(resMap)) | if (! eqCols[keyColumns[inner]]) | protected boolean supersetOfUniqueIndex(JBitSet[] tableColMap) throws StandardException { ConglomerateDescriptor[] cds = tableDescriptor.getConglomerateDescriptors(); /* Cycle through the ConglomerateDescriptors */ for (int index = 0; index < cds.length; index++) { ConglomerateDescriptor cd = cds[index]; if (... |
tableColMap[table].set(0); return true; | break; | protected boolean supersetOfUniqueIndex(JBitSet[] tableColMap) throws StandardException { ConglomerateDescriptor[] cds = tableDescriptor.getConglomerateDescriptors(); /* Cycle through the ConglomerateDescriptors */ for (int index = 0; index < cds.length; index++) { ConglomerateDescriptor cd = cds[index]; if (... |
if (inner == keyColumns.length) { return true; } | protected boolean supersetOfUniqueIndex(JBitSet[] tableColMap) throws StandardException { ConglomerateDescriptor[] cds = tableDescriptor.getConglomerateDescriptors(); /* Cycle through the ConglomerateDescriptors */ for (int index = 0; index < cds.length; index++) { ConglomerateDescriptor cd = cds[index]; if (... | |
public BackingStoreHashtable( TransactionController tc, RowSource row_source, int[] key_column_numbers, boolean remove_duplicates, long estimated_rowcnt, long max_inmemory_rowcnt, int initialCapacity, float ... | private BackingStoreHashtable(){} | public BackingStoreHashtable( TransactionController tc, RowSource row_source, int[] key_column_numbers, boolean remove_duplicates, long estimated_rowcnt, long max_inmemory_rowcnt, int ini... |
int tempFlags = keepAfterCommit ? (TransactionController.IS_TEMPORARY | TransactionController.IS_KEPT) : TransactionController.IS_TEMPORARY; | if (SanityManager.DEBUG) { SanityManager.ASSERT( row[i] != null, "Template for the hash table must have non-null object"); } } int tempFlags = keepAfterCommit ? (TransactionController.IS_TEMPORARY | TransactionController.IS_KEPT) : TransactionController.IS_TEMPORARY; | public DiskHashtable( TransactionController tc, DataValueDescriptor[] template, int[] key_column_numbers, boolean remove_duplicates, boolean keepAfterCommit) throws StandardException { this.tc = tc; ... |
rowConglomerateId = tc.createConglomerate( "heap", template, (ColumnOrdering[]) null, (Properties) null, tempFlags); rowConglomerate = tc.openConglomerate( rowConglomerateId, keepAfterCommit, TransactionController.OPENMODE_FORUPDATE, TransactionController.MODE_TABLE, TransactionController.ISOLATION_NOLOCK ); | rowConglomerateId = tc.createConglomerate( "heap", template, (ColumnOrdering[]) null, (Properties) null, tempFlags); | public DiskHashtable( TransactionController tc, DataValueDescriptor[] template, int[] key_column_numbers, boolean remove_duplicates, boolean keepAfterCommit) throws StandardException { this.tc = tc; ... |
btreeRow = new DataValueDescriptor[] { new SQLInteger(), rowConglomerate.newRowLocationTemplate()}; | rowConglomerate = tc.openConglomerate( rowConglomerateId, keepAfterCommit, TransactionController.OPENMODE_FORUPDATE, TransactionController.MODE_TABLE, TransactionController.ISOLATION_NOLOCK); btreeRow = new DataValueDescriptor[] { new SQLInteger(), rowConglomerate.newRowLocationTemplate()}; | public DiskHashtable( TransactionController tc, DataValueDescriptor[] template, int[] key_column_numbers, boolean remove_duplicates, boolean keepAfterCommit) throws StandardException { this.tc = tc; ... |
btreeProps.put( "baseConglomerateId", String.valueOf( rowConglomerateId)); btreeProps.put( "rowLocationColumn", "1"); btreeProps.put( "allowDuplicates", "false"); btreeProps.put( "nKeyFields", "2"); btreeProps.put( "nUniqueColumns", "2"); btreeProps.put( "maintainParentLinks", "false"); btreeConglomerateId = tc.createC... | public DiskHashtable( TransactionController tc, DataValueDescriptor[] template, int[] key_column_numbers, boolean remove_duplicates, boolean keepAfterCommit) throws StandardException { this.tc = tc; ... | |
btreeConglomerate = tc.openConglomerate( btreeConglomerateId, keepAfterCommit, TransactionController.OPENMODE_FORUPDATE, TransactionController.MODE_TABLE, TransactionController.ISOLATION_NOLOCK ); | btreeProps.put("baseConglomerateId", String.valueOf(rowConglomerateId)); btreeProps.put("rowLocationColumn", "1"); btreeProps.put("allowDuplicates", "false"); btreeProps.put("nKeyFields", "2"); btreeProps.put("nUniqueColumns", "2"); btreeProps.put("maintainParentLinks", "false"); btreeConglomerateId = tc.createConglome... | public DiskHashtable( TransactionController tc, DataValueDescriptor[] template, int[] key_column_numbers, boolean remove_duplicates, boolean keepAfterCommit) throws StandardException { this.tc = tc; ... |
throw Util.notImplemented(); | checkIfClosed(); return null; | public String getClientInfo(String name) throws SQLException{ throw Util.notImplemented(); } |
throw Util.notImplemented(); | checkIfClosed(); if (name == null && value == null) { return; } Properties p = new Properties(); p.setProperty(name, value); setClientInfo(p); | public void setClientInfo(String name, String value) throws SQLException{ throw Util.notImplemented(); } |
EmbedConnection inputConnection) | InternalDriver driver, String url, Properties info) throws SQLException | public EmbedConnection30( EmbedConnection inputConnection) { super(inputConnection); } |
super(inputConnection); | super(driver, url, info); | public EmbedConnection30( EmbedConnection inputConnection) { super(inputConnection); } |
public static SQLException generateCsSQLException( String error, Object arg1, Object arg2, Object arg3) { | public static SQLException generateCsSQLException(String error) { | public static SQLException generateCsSQLException( String error, Object arg1, Object arg2, Object arg3) { return newEmbedSQLException(error, new Object[] {arg1, arg2, arg3}, StandardException.getSeverityFromIdentifier(error)); } |
new Object[] {arg1, arg2, arg3}, StandardException.getSeverityFromIdentifier(error)); | StandardException.getSeverityFromIdentifier(error)); | public static SQLException generateCsSQLException( String error, Object arg1, Object arg2, Object arg3) { return newEmbedSQLException(error, new Object[] {arg1, arg2, arg3}, StandardException.getSeverityFromIdentifier(error)); } |
protected SQLException newSQLException(String messageId, Object arg1) { return Util.generateCsSQLException(messageId, arg1); | protected SQLException newSQLException(String messageId) { return Util.generateCsSQLException(messageId); | protected SQLException newSQLException(String messageId, Object arg1) { return Util.generateCsSQLException(messageId, arg1); } |
public TriggerDescriptor getTriggerDescriptor(String name, SchemaDescriptor sd) | public TriggerDescriptor getTriggerDescriptor(UUID uuid) | public TriggerDescriptor getTriggerDescriptor(String name, SchemaDescriptor sd) throws StandardException; |
con = getXADataSource().getXAConnection (CONFIG.getUserName(), | con = TestDataSourceFactory.getXADataSource().getXAConnection (CONFIG.getUserName(), | public static Connection getConnection() throws SQLException { Connection con = null; JDBCClient client = CONFIG.getJDBCClient(); if (HAVE_DRIVER) { loadJDBCDriver(client.getJDBCDriverName()); if (!CONFIG.isSingleLegXA()) { con = DriverMan... |
con = getDataSource().getConnection(); | con = TestDataSourceFactory.getDataSource().getConnection(); | public static Connection getConnection() throws SQLException { Connection con = null; JDBCClient client = CONFIG.getJDBCClient(); if (HAVE_DRIVER) { loadJDBCDriver(client.getJDBCDriverName()); if (!CONFIG.isSingleLegXA()) { con = DriverMan... |
if (SanityManager.DEBUG) { if (!databaseEncrypted) { String testEncryption = PropertyUtil.getSystemProperty("testDataEncryption"); if (testEncryption != null) { properties.put(Attribute.DATA_ENCRYPTION, "true"); properties.put(Attribute.BOOT_PASSWORD, testEncryption); databaseEncrypted = true; } } } | public void boot(boolean create, Properties properties) throws StandardException { dataDirectory = properties.getProperty(PersistentService.ROOT); DaemonFactory daemonFactory = (DaemonFactory)Monitor.startSystemModule(org.apache.derby.iapi.reference.Module.DaemonFactory); rawStoreDaemon = daemonFactory.createNew... | |
public String getCanonicalServiceName(String name); | public String getCanonicalServiceName(String name) throws StandardException; | public String getCanonicalServiceName(String name); |
StorageFactory storageFactory, | public void saveServiceProperties(String serviceName, Properties properties, boolean replace) throws StandardException; | |
public OutputStream getOutputStream( boolean append) throws FileNotFoundException; | public OutputStream getOutputStream( ) throws FileNotFoundException; | public OutputStream getOutputStream( boolean append) throws FileNotFoundException; |
public static boolean copyDirectory( WritableStorageFactory storageFactory, File from, StorageFile to, byte[] buffer, String[] filter) { if (from == null) return false; if (!from.exists()) return true; if (!from.isDirectory()) return false; if (to.exists()) { return false; } if (!to.mkdirs()) { return false; } Stri... | public static boolean copyDirectory(File from, File to) { return copyDirectory(from, to, (byte[])null, (String[])null); } | public static boolean copyDirectory( WritableStorageFactory storageFactory, File from, StorageFile to, byte[] buffer, String[] filter) { if (from == nul... |
public static boolean copyFile( WritableStorageFactory storageFactory, File from, StorageFile to) { return copyFile( storageFactory, from, to, (byte[]) null); } | public static boolean copyFile(File from, File to) { return copyFile(from, to, (byte[])null); } | public static boolean copyFile( WritableStorageFactory storageFactory, File from, StorageFile to) { return copyFile( storageFactory, from, to, (byte[]) null); } |
protected static boolean canConvertToDecimal(ResultSet rs,int columnIndex) throws SQLException{ int columnType= rs.getMetaData().getColumnType(columnIndex); if(columnType == java.sql.Types.BIGINT || columnType == java.sql.Types.DECIMAL || columnType == java.sql.Types.DOUBLE || columnType == java.sql.Types.FLOAT || colu... | protected static boolean canConvertToDecimal(int type) throws SQLException{ boolean canConvert = false; for (int bdType = 0; bdType < bdConvertibleTypes.length; bdType++){ if(type == bdConvertibleTypes[bdType]){ canConvert = true; break; } | protected static boolean canConvertToDecimal(ResultSet rs,int columnIndex) throws SQLException{ int columnType= rs.getMetaData().getColumnType(columnIndex); if(columnType == java.sql.Types.BIGINT || columnType == java.sql.Types.DECIMAL || columnType == java.sql.Types.DOUBLE || columnType == java.sql.T... |
return false; | return canConvert; | protected static boolean canConvertToDecimal(ResultSet rs,int columnIndex) throws SQLException{ int columnType= rs.getMetaData().getColumnType(columnIndex); if(columnType == java.sql.Types.BIGINT || columnType == java.sql.Types.DECIMAL || columnType == java.sql.Types.DOUBLE || columnType == java.sql.T... |
if((bigDecimalString != null) && !canConvertToDecimal(rs,columnIndex)) | int columnType= rs.getMetaData().getColumnType(columnIndex); if((bigDecimalString != null) && !canConvertToDecimal(columnType)) | public static String getBigDecimalString(ResultSet rs, int columnIndex) throws SQLException{ String bigDecimalString=null; switch(representation){ case BIGDECIMAL_REPRESENTATION: //Call toString() only for non-null values, else return null if(rs.getBigDecimal(columnIndex) != null) bigDecimalString = rs... |
rowHolder = new TemporaryRowHolderImpl( tc, new Properties(), (ResultDescription) null); | rowHolder = new TemporaryRowHolderImpl(activation, new Properties(), (ResultDescription) null); | protected void openCore() throws StandardException { lcc.getStatementContext().setTopResultSet(this, subqueryTrackingArray); ExecRow row = getNextRowCore(sourceResultSet); if (row != null) { rs = activation.getTargetVTI(); if (SanityManager.DEBUG) { SanityManager.ASSERT(rs != null, "rs expected to be ... |
public ValueRow(int ncols) { column = new DataValueDescriptor[ncols]; this.ncols = ncols; } | public ValueRow() {} | public ValueRow(int ncols) { column = new DataValueDescriptor[ncols]; this.ncols = ncols; } |
TransactionController tc = activation.getTransactionController(); | public void close() throws StandardException { if (scan != null) { scan.close(); scan = null; } if (cc != null) { cc.close(); cc = null; } if (uniqueIndex_cc != null) { uniqueIndex_cc.close(); uniqueIndex_cc = null; } if (positionIndex_cc != null) { positionIndex_cc.close(); positionIndex_cc... | |
protected long compressPages() | protected void compressPages( int new_highest_page, int num_pages_truncated) | protected long compressPages() { int compress_bitnum = -1; for (int i = extentLength - 1; i >= 0; i--) { if (freePages.isSet(i)) { freePages.clear(i); unFilledPages.clear(i); compress_bitnum = i; } else ... |
int compress_bitnum = -1; | if (SanityManager.DEBUG) { if (new_highest_page >= 0) { for (int i = new_highest_page + 1; i < extentLength; i++) { if (!freePages.isSet(i)) { SanityManager.THROWASSERT( "compressPages with non free page to truncate," + "new_highest_page = " + new_highest_page + "num_pages_truncated = " + num_pages_truncated + ";extent... | protected long compressPages() { int compress_bitnum = -1; for (int i = extentLength - 1; i >= 0; i--) { if (freePages.isSet(i)) { freePages.clear(i); unFilledPages.clear(i); compress_bitnum = i; } else ... |
for (int i = extentLength - 1; i >= 0; i--) { if (freePages.isSet(i)) | SanityManager.ASSERT( (new_highest_page + num_pages_truncated + 1) == extentLength, "truncate page count did not match: " + ";new_highest_page = " + new_highest_page + ";num_pages_truncated = " + num_pages_truncated + ";extentLength = " + extentLength); if (extentStart == 1) | protected long compressPages() { int compress_bitnum = -1; for (int i = extentLength - 1; i >= 0; i--) { if (freePages.isSet(i)) { freePages.clear(i); unFilledPages.clear(i); compress_bitnum = i; } else ... |
freePages.clear(i); unFilledPages.clear(i); compress_bitnum = i; } else { break; | SanityManager.ASSERT(new_highest_page >= 0); SanityManager.ASSERT(num_pages_truncated < extentLength); | protected long compressPages() { int compress_bitnum = -1; for (int i = extentLength - 1; i >= 0; i--) { if (freePages.isSet(i)) { freePages.clear(i); unFilledPages.clear(i); compress_bitnum = i; } else ... |
if (compress_bitnum >= 0) | if (new_highest_page >= 0) | protected long compressPages() { int compress_bitnum = -1; for (int i = extentLength - 1; i >= 0; i--) { if (freePages.isSet(i)) { freePages.clear(i); unFilledPages.clear(i); compress_bitnum = i; } else ... |
extentLength = compress_bitnum; return(extentStart + extentLength - 1); | freePages.shrink(new_highest_page + 1); unFilledPages.shrink(new_highest_page + 1); preAllocLength = extentLength = (new_highest_page + 1); | protected long compressPages() { int compress_bitnum = -1; for (int i = extentLength - 1; i >= 0; i--) { if (freePages.isSet(i)) { freePages.clear(i); unFilledPages.clear(i); compress_bitnum = i; } else ... |
else { return(-1); } | return; | protected long compressPages() { int compress_bitnum = -1; for (int i = extentLength - 1; i >= 0; i--) { if (freePages.isSet(i)) { freePages.clear(i); unFilledPages.clear(i); compress_bitnum = i; } else ... |
SanityManager.ASSERT( allocatedPageCount >= 0, "number of allocated page < 0, val =" + allocatedPageCount + "\nextent = " + toDebugString()); | if (allocatedPageCount < 0) { SanityManager.THROWASSERT( "number of allocated page < 0, val =" + allocatedPageCount + "\nextent = " + toDebugString()); } | protected int getAllocatedPageCount() { // allocated page is one which is not free or deallocated. int allocatedPageCount = extentLength; if (!mayHaveFreePage()) return allocatedPageCount; byte[] free = freePages.getByteArray(); int numBytes = free.length; for (int i = 0; i < numBytes; i++) { if (free[i] !=... |
public FormatableBitSet(int numBits) | public FormatableBitSet() | public FormatableBitSet(int numBits) { initializeBits(numBits); } |
initializeBits(numBits); | public FormatableBitSet(int numBits) { initializeBits(numBits); } | |
if (otherBit instanceof FormatableBitSet) { FormatableBitSet ob = (FormatableBitSet)otherBit; int obByteLen = ob.getLengthInBytes(); for (int i = 0; i < obByteLen-1; i++) value[i] |= ob.value[i]; for (int i = (obByteLen-1)*8; i < otherLength; i++) if (otherBit.isSet(i)) set(i); } else { for (int i = 0; i < other... | int obByteLen = otherBit.getLengthInBytes(); for (int i = 0; i < obByteLen-1; i++) value[i] |= otherBit.value[i]; for (int i = (obByteLen-1)*8; i < otherLength; i++) if (otherBit.isSet(i)) set(i); | public void or(FormatableBitSet otherBit) { if (otherBit == null || otherBit.getLength() == 0) return; int otherLength = otherBit.getLength(); if (otherLength > getLength()) grow(otherLength); // expand this bit if (otherBit instanceof FormatableBitSet) { // we know the bit ordering, optimize this Forma... |
protected final TableDescriptor getTableDescriptor(TableName tableName) | protected final TableDescriptor getTableDescriptor() | protected final TableDescriptor getTableDescriptor(TableName tableName) throws StandardException { String schemaName = tableName.getSchemaName(); SchemaDescriptor sd = getSchemaDescriptor(schemaName); TableDescriptor td = getTableDescriptor(tableName.getTableName(), sd); if (td == null) { throw StandardExcep... |
String schemaName = tableName.getSchemaName(); SchemaDescriptor sd = getSchemaDescriptor(schemaName); TableDescriptor td = getTableDescriptor(tableName.getTableName(), sd); if (td == null) { throw StandardException.newException(SQLState.LANG_OBJECT_DOES_NOT_EXIST, statementToString(), tableName); } td = checkTableD... | return getTableDescriptor(objectName); | protected final TableDescriptor getTableDescriptor(TableName tableName) throws StandardException { String schemaName = tableName.getSchemaName(); SchemaDescriptor sd = getSchemaDescriptor(schemaName); TableDescriptor td = getTableDescriptor(tableName.getTableName(), sd); if (td == null) { throw StandardExcep... |
public static String getServiceProperty(PersistentSet set, String key) | public static String getServiceProperty(PersistentSet set, String key, String defaultValue) | public static String getServiceProperty(PersistentSet set, String key) throws StandardException { return PropertyUtil.getServiceProperty(set, key, (String) null); } |
return PropertyUtil.getServiceProperty(set, key, (String) null); | String value = PropertyUtil.getDatabaseProperty( set, Property.DATABASE_PROPERTIES_ONLY); boolean dbOnly = Boolean.valueOf( (value != null ? value.trim() : value)).booleanValue(); if (!dbOnly) { value = Monitor.getMonitor().getJVMProperty(key); if (value != null) return value; } value = PropertyUtil.getDatabasePrope... | public static String getServiceProperty(PersistentSet set, String key) throws StandardException { return PropertyUtil.getServiceProperty(set, key, (String) null); } |
final boolean isSessionSchema(String schemaName) | final boolean isSessionSchema(SchemaDescriptor sd) | final boolean isSessionSchema(String schemaName) { return SchemaDescriptor.STD_DECLARED_GLOBAL_TEMPORARY_TABLES_SCHEMA_NAME.equals(schemaName); } |
return SchemaDescriptor.STD_DECLARED_GLOBAL_TEMPORARY_TABLES_SCHEMA_NAME.equals(schemaName); | return isSessionSchema(sd.getSchemaName()); | final boolean isSessionSchema(String schemaName) { return SchemaDescriptor.STD_DECLARED_GLOBAL_TEMPORARY_TABLES_SCHEMA_NAME.equals(schemaName); } |
getBody().run(context, output); | public void doTag(XMLOutput output) throws Exception { Message message = getMessage(); if ( message == null ) { throw new JellyException( "No message specified. Either specify a 'message' attribute or use a nested <jms:message> tag" ); } Destination destination = getDestinatio... | |
public StepMeta(Repository rep, long id_step, ArrayList databases, Hashtable counters, List partitionSchemas) throws KettleException | public StepMeta(String stepid, String stepname, StepMetaInterface stepMetaInterface) | public StepMeta(Repository rep, long id_step, ArrayList databases, Hashtable counters, List partitionSchemas) throws KettleException { this(); StepLoader steploader = StepLoader.getInstance(); try { Row r = rep.getStep(id_step); if (r!=null) { setID(id_step); stepname = r.searchValue("N... |
this(); StepLoader steploader = StepLoader.getInstance(); try { Row r = rep.getStep(id_step); if (r!=null) { setID(id_step); stepname = r.searchValue("NAME").getString(); description = r.searchValue("DESCRIPTION").getString(); long id_step_type = r.searchValue("ID_STEP_TYPE").getInteger(); Row steptyperow = rep.g... | this.stepid = stepid; this.stepname = stepname; this.stepMetaInterface = stepMetaInterface; selected = false; distributes = true; copies = 1; location = new Point(0,0); drawstep = false; description = null; stepPartitioningMeta = new StepPartitioningMeta(); clusterSchema = null; | public StepMeta(Repository rep, long id_step, ArrayList databases, Hashtable counters, List partitionSchemas) throws KettleException { this(); StepLoader steploader = StepLoader.getInstance(); try { Row r = rep.getStep(id_step); if (r!=null) { setID(id_step); stepname = r.searchValue("N... |
public void setLocation(Point loc) | public void setLocation(int x, int y) | public void setLocation(Point loc) { if (loc!=null && !loc.equals(location)) setChanged(); location = loc; } |
if (loc!=null && !loc.equals(location)) setChanged(); location = loc; | int nx = (x>=0?x:0); int ny = (y>=0?y:0); Point loc = new Point(nx,ny); if (!loc.equals(location)) setChanged(); location=loc; | public void setLocation(Point loc) { if (loc!=null && !loc.equals(location)) setChanged(); location = loc; } |
public TransHopMeta(Repository rep, long id_trans_hop, ArrayList steps) throws KettleException | public TransHopMeta(StepMeta from, StepMeta to, boolean en) | public TransHopMeta(Repository rep, long id_trans_hop, ArrayList steps) throws KettleException { try { setID(id_trans_hop); Row r = rep.getTransHop(id_trans_hop); long id_step_from = r.searchValue("ID_STEP_FROM").getInteger(); //$NON-NLS-1$ long id_step_to = r.searchValue("ID_STEP_TO").getInteger();... |
try { setID(id_trans_hop); Row r = rep.getTransHop(id_trans_hop); long id_step_from = r.searchValue("ID_STEP_FROM").getInteger(); long id_step_to = r.searchValue("ID_STEP_TO").getInteger(); enabled = r.searchValue("ENABLED").getBoolean(); from_step = TransMeta.findStep(steps, id_step_from); if (from_step... | from_step = from; to_step = to; enabled = en; | public TransHopMeta(Repository rep, long id_trans_hop, ArrayList steps) throws KettleException { try { setID(id_trans_hop); Row r = rep.getTransHop(id_trans_hop); long id_step_from = r.searchValue("ID_STEP_FROM").getInteger(); //$NON-NLS-1$ long id_step_to = r.searchValue("ID_STEP_TO").getInteger();... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.