congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Jackson2ExecutionContextStringSerializer.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.springframework.batch.core.repository.dao.Jackson2ExecutionContextStringSerializer
constructor

Best Java code snippets using org.springframework.batch.core.repository.dao.Jackson2ExecutionContextStringSerializer.<init> (Showing top 8 results out of 315)

origin: spring-projects/spring-batch

@Override
public void afterPropertiesSet() throws Exception {
  Assert.notNull(dataSource, "DataSource must not be null.");
  if (jdbcOperations == null) {
    jdbcOperations = new JdbcTemplate(dataSource);
  }    
  if(serializer == null) {
    serializer = new Jackson2ExecutionContextStringSerializer();
  }
}
origin: spring-projects/spring-batch

@Before
public void onSetUp() throws Exception {
  Jackson2ExecutionContextStringSerializer serializerDeserializer = new Jackson2ExecutionContextStringSerializer();
  serializer = serializerDeserializer;
}
origin: spring-projects/spring-batch

@Override
public void afterPropertiesSet() throws Exception {
  Assert.notNull(dataSource, "DataSource must not be null.");
  if (jdbcOperations == null) {
    jdbcOperations = new JdbcTemplate(dataSource);	
  }        
  if (incrementerFactory == null) {
    incrementerFactory = new DefaultDataFieldMaxValueIncrementerFactory(dataSource);
  }
  if (databaseType == null) {
    databaseType = DatabaseType.fromMetaData(dataSource).name();
    logger.info("No database type set, using meta data indicating: " + databaseType);
  }
  if (lobHandler == null && databaseType.equalsIgnoreCase(DatabaseType.ORACLE.toString())) {
    lobHandler = new DefaultLobHandler();
  }
  if(serializer == null) {
    Jackson2ExecutionContextStringSerializer defaultSerializer = new Jackson2ExecutionContextStringSerializer();
    serializer = defaultSerializer;
  }
  Assert.isTrue(incrementerFactory.isSupportedIncrementerType(databaseType), "'" + databaseType
      + "' is an unsupported database type.  The supported database types are "
      + StringUtils.arrayToCommaDelimitedString(incrementerFactory.getSupportedIncrementerTypes()));
  if(lobType != null) {
    Assert.isTrue(isValidTypes(lobType), "lobType must be a value from the java.sql.Types class");
  }
  super.afterPropertiesSet();
}
origin: org.springframework.batch/spring-batch-core

@Override
public void afterPropertiesSet() throws Exception {
  Assert.notNull(dataSource, "DataSource must not be null.");
  if (jdbcOperations == null) {
    jdbcOperations = new JdbcTemplate(dataSource);	
  }    
  if(serializer == null) {
    serializer = new Jackson2ExecutionContextStringSerializer();
  }
}
origin: apache/servicemix-bundles

@Override
public void afterPropertiesSet() throws Exception {
  Assert.notNull(dataSource, "DataSource must not be null.");
  if (jdbcOperations == null) {
    jdbcOperations = new JdbcTemplate(dataSource);	
  }    
  if(serializer == null) {
    serializer = new Jackson2ExecutionContextStringSerializer();
  }
}
origin: spring-cloud/spring-cloud-dataflow

@Override
public void afterPropertiesSet() throws Exception {
  Assert.notNull(dataSource, "DataSource must not be null.");
  Assert.notNull(jobRepository, "JobRepository must not be null.");
  Assert.notNull(jobLocator, "JobLocator must not be null.");
  Assert.notNull(jobLauncher, "JobLauncher must not be null.");
  Assert.notNull(jobExplorer, "JobExplorer must not be null.");
  jdbcTemplate = new JdbcTemplate(dataSource);
  if (incrementerFactory == null) {
    incrementerFactory = new DefaultDataFieldMaxValueIncrementerFactory(dataSource);
  }
  if (databaseType == null) {
    databaseType = DatabaseType.fromMetaData(dataSource).name();
    logger.info("No database type set, using meta data indicating: " + databaseType);
  }
  if (lobHandler == null) {
    lobHandler = new DefaultLobHandler();
  }
  if (serializer == null) {
    this.serializer = new Jackson2ExecutionContextStringSerializer();
  }
  Assert.isTrue(incrementerFactory.isSupportedIncrementerType(databaseType), "'" + databaseType
      + "' is an unsupported database type.  The supported database types are "
      + StringUtils.arrayToCommaDelimitedString(incrementerFactory.getSupportedIncrementerTypes()));
}
origin: org.springframework.batch/spring-batch-core

@Override
public void afterPropertiesSet() throws Exception {
  Assert.notNull(dataSource, "DataSource must not be null.");
  if (jdbcOperations == null) {
    jdbcOperations = new JdbcTemplate(dataSource);	
  }        
  if (incrementerFactory == null) {
    incrementerFactory = new DefaultDataFieldMaxValueIncrementerFactory(dataSource);
  }
  if (databaseType == null) {
    databaseType = DatabaseType.fromMetaData(dataSource).name();
    logger.info("No database type set, using meta data indicating: " + databaseType);
  }
  if (lobHandler == null && databaseType.equalsIgnoreCase(DatabaseType.ORACLE.toString())) {
    lobHandler = new DefaultLobHandler();
  }
  if(serializer == null) {
    Jackson2ExecutionContextStringSerializer defaultSerializer = new Jackson2ExecutionContextStringSerializer();
    serializer = defaultSerializer;
  }
  Assert.isTrue(incrementerFactory.isSupportedIncrementerType(databaseType), "'" + databaseType
      + "' is an unsupported database type.  The supported database types are "
      + StringUtils.arrayToCommaDelimitedString(incrementerFactory.getSupportedIncrementerTypes()));
  if(lobType != null) {
    Assert.isTrue(isValidTypes(lobType), "lobType must be a value from the java.sql.Types class");
  }
  super.afterPropertiesSet();
}
origin: apache/servicemix-bundles

@Override
public void afterPropertiesSet() throws Exception {
  Assert.notNull(dataSource, "DataSource must not be null.");
  if (jdbcOperations == null) {
    jdbcOperations = new JdbcTemplate(dataSource);	
  }        
  if (incrementerFactory == null) {
    incrementerFactory = new DefaultDataFieldMaxValueIncrementerFactory(dataSource);
  }
  if (databaseType == null) {
    databaseType = DatabaseType.fromMetaData(dataSource).name();
    logger.info("No database type set, using meta data indicating: " + databaseType);
  }
  if (lobHandler == null && databaseType.equalsIgnoreCase(DatabaseType.ORACLE.toString())) {
    lobHandler = new DefaultLobHandler();
  }
  if(serializer == null) {
    Jackson2ExecutionContextStringSerializer defaultSerializer = new Jackson2ExecutionContextStringSerializer();
    serializer = defaultSerializer;
  }
  Assert.isTrue(incrementerFactory.isSupportedIncrementerType(databaseType), "'" + databaseType
      + "' is an unsupported database type.  The supported database types are "
      + StringUtils.arrayToCommaDelimitedString(incrementerFactory.getSupportedIncrementerTypes()));
  if(lobType != null) {
    Assert.isTrue(isValidTypes(lobType), "lobType must be a value from the java.sql.Types class");
  }
  super.afterPropertiesSet();
}
org.springframework.batch.core.repository.daoJackson2ExecutionContextStringSerializer<init>

Popular methods of Jackson2ExecutionContextStringSerializer

  • deserialize
  • serialize

Popular in Java

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Menu (java.awt)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Permission (java.security)
    Legacy security code; do not use.
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JTextField (javax.swing)
  • Top 12 Jupyter Notebook Extensions
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