Tabnine Logo
Jackson2ExecutionContextStringSerializer
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.springframework.batch.core.repository.dao.Jackson2ExecutionContextStringSerializer (Showing top 10 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: codecentric/spring-boot-starter-batch-web

@Override
public void serialize(Map<String, Object> context, OutputStream out) throws IOException {
  LOGGER.info("I will do serialization");
  super.serialize(context, out);
}
origin: codecentric/spring-boot-starter-batch-web

@Override
public Map<String, Object> deserialize(InputStream in) throws IOException {
  LOGGER.info("I will do deserialization");
  return super.deserialize(in);
}
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

Javadoc

Implementation that uses Jackson2 to provide (de)serialization.

Most used methods

  • <init>
  • deserialize
  • serialize

Popular in Java

  • Finding current android device location
  • getSystemService (Context)
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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