Tabnine Logo
Future.getShortName
Code IndexAdd Tabnine to your IDE (free)

How to use
getShortName
method
in
com.activequant.domainmodel.Future

Best Java code snippets using com.activequant.domainmodel.Future.getShortName (Showing top 5 results out of 315)

origin: activequant/aq2o

public String getId() {
  return "FUT." + nullSafe(getExchangeCode()) + "." + nullSafe(getShortName()) + "." + nullSafe(expiry);
}
origin: activequant/aq2o

public void testCreateWithAdditionalProperties() throws DaoException {
  ApplicationContext appContext = new ClassPathXmlApplicationContext("springtest.xml");
  IDaoFactory idf = (IDaoFactory) appContext.getBean("ibatisDao");
  IInstrumentDao idao = idf.instrumentDao();
  Future future = new Future();
  future.setCreationTime(0L);
  future.setDeletionTime(0L);
  future.setName("test");
  future.setDescription("The dax future");
  future.setExpiry(20111231l);
  future.setShortName("test");
  future.setTickSize(10.0);
  future.setTickValue(10.0);
  
  future.getUnderlyingMap().put("DECORATION", "DECORATION");
  
  idao.create(future);
  
  Future loaded = (Future) idao.load(future.getId());
  assertNotNull(loaded);
  assertEquals("test", future.getShortName());
  assertEquals("DECORATION", loaded.getUnderlyingMap().get("DECORATION"));
  
}

origin: activequant/aq2o

public void testCreateWithAdditionalProperties() throws DaoException {
  ApplicationContext appContext = new ClassPathXmlApplicationContext("springtest.xml");
  IDaoFactory idf = (IDaoFactory) appContext.getBean("ibatisDao");
  IInstrumentDao idao = idf.instrumentDao();
  Future future = new Future();
  future.setCreationTime(0L);
  future.setDeletionTime(0L);
  future.setName("test");
  future.setDescription("The dax future");
  future.setExpiry(20111231l);
  future.setShortName("test");
  future.setTickSize(10.0);
  future.setTickValue(10.0);
  
  future.getUnderlyingMap().put("DECORATION", "DECORATION");
  
  idao.create(future);
  
  Future loaded = (Future) idao.load(future.getId());
  assertNotNull(loaded);
  assertEquals("test", future.getShortName());
  assertEquals("DECORATION", loaded.getUnderlyingMap().get("DECORATION"));
  
}

origin: activequant/aq2o

/**
 * test saving and then loading of a future.
 * 
 * @throws DaoException
 */
public void testCreateFuture() throws DaoException {
  ApplicationContext appContext = new ClassPathXmlApplicationContext("springtest.xml");
  IDaoFactory idf = (IDaoFactory) appContext.getBean("ibatisDao");
  IInstrumentDao idao = idf.instrumentDao();
  Future future = new Future();
  future.setCreationTime(0L);
  future.setDeletionTime(0L);
  future.setName("FDAX");
  future.setDescription("The dax future");
  future.setExpiry(20111231l);
  future.setShortName("FDAX");
  future.setTickSize(10.0);
  future.setTickValue(10.0);
  idao.create(future);
  // load the future
  Future loadedFuture = (Future) idao.load(future.getId());
  assertEquals(future.getId(), loadedFuture.getId());
  assertEquals(future.getShortName(), loadedFuture.getShortName());
  assertEquals(future.getTickSize(), loadedFuture.getTickSize());
  assertEquals(future.getTickValue(), loadedFuture.getTickValue());
}
origin: activequant/aq2o

/**
 * test saving and then loading of a future.
 * 
 * @throws DaoException
 */
public void testCreateFuture() throws DaoException {
  ApplicationContext appContext = new ClassPathXmlApplicationContext("springtest.xml");
  IDaoFactory idf = (IDaoFactory) appContext.getBean("ibatisDao");
  IInstrumentDao idao = idf.instrumentDao();
  Future future = new Future();
  future.setCreationTime(0L);
  future.setDeletionTime(0L);
  future.setName("FDAX");
  future.setDescription("The dax future");
  future.setExpiry(20111231l);
  future.setShortName("FDAX");
  future.setTickSize(10.0);
  future.setTickValue(10.0);
  idao.create(future);
  // load the future
  Future loadedFuture = (Future) idao.load(future.getId());
  assertEquals(future.getId(), loadedFuture.getId());
  assertEquals(future.getShortName(), loadedFuture.getShortName());
  assertEquals(future.getTickSize(), loadedFuture.getTickSize());
  assertEquals(future.getTickValue(), loadedFuture.getTickValue());
}
com.activequant.domainmodelFuturegetShortName

Popular methods of Future

  • <init>
  • getLastTradingDate
  • getTickSize
  • getTickValue
  • setDescription
  • setExpiry
    Should be in date8 format.
  • setShortName
  • setTickSize
  • setTickValue
  • getFirstTradingDate
  • getId
  • getUnderlyingMap
  • getId,
  • getUnderlyingMap,
  • setCreationTime,
  • setDeletionTime,
  • setName,
  • getCurrency,
  • getExchangeCode,
  • getExpiry,
  • getFirstNotice

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (Timer)
  • getExternalFilesDir (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • String (java.lang)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • JPanel (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • CodeWhisperer alternatives
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