congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
DBCache.setActive
Code IndexAdd Tabnine to your IDE (free)

How to use
setActive
method
in
org.pentaho.di.core.DBCache

Best Java code snippets using org.pentaho.di.core.DBCache.setActive (Showing top 4 results out of 315)

origin: pentaho/pentaho-kettle

public void setInactive() {
 setActive( false );
}
origin: pentaho/pentaho-kettle

public void setActive() {
 setActive( true );
}
origin: pentaho/pentaho-kettle

/**
 * Clear out all entries of database with a certain name
 *
 * @param dbname
 *          The name of the database for which we want to clear the cache or null if we want to clear it all.
 */
public void clear( String dbname ) {
 if ( dbname == null ) {
  cache = new Hashtable<DBCacheEntry, RowMetaInterface>();
  setActive();
 } else {
  Enumeration<DBCacheEntry> keys = cache.keys();
  while ( keys.hasMoreElements() ) {
   DBCacheEntry entry = keys.nextElement();
   if ( entry.sameDB( dbname ) ) {
    // Same name: remove it!
    cache.remove( entry );
   }
  }
 }
}
origin: pentaho/pentaho-kettle

public void loadSettings() {
 LogLevel logLevel = LogLevel.getLogLevelForCode( props.getLogLevel() );
 DefaultLogLevel.setLogLevel( logLevel );
 log.setLogLevel( logLevel );
 KettleLogStore.getAppender().setMaxNrLines( props.getMaxNrLinesInLog() );
 // transMeta.setMaxUndo(props.getMaxUndo());
 DBCache.getInstance().setActive( props.useDBCache() );
}
org.pentaho.di.coreDBCachesetActive

Popular methods of DBCache

  • clear
    Clear out all entries of database with a certain name
  • getInstance
    Create the database cache instance by loading it from disk
  • get
    Get the fields as a row generated by a database cache entry
  • put
  • <init>
  • getFilename
  • saveCache

Popular in Java

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (Timer)
  • getApplicationContext (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now