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

How to use
getDefaultSequence
method
in
org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform

Best Java code snippets using org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform.getDefaultSequence (Showing top 20 results out of 315)

origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Get sequence corresponding to the name
 */
@Override
public Sequence getSequence(String seqName) {
  if (seqName == null) {
    return getDefaultSequence();
  } else {
    if (this.sequences != null) {
      return (Sequence)this.sequences.get(seqName);
    } else {
      return null;
    }
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Used only for writing into XML or Java.
 */
@Override
public Sequence getDefaultSequenceToWrite() {
  if (usesPlatformDefaultSequence()) {
    return null;
  } else {
    return getDefaultSequence();
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 *    Set the number of sequence values to preallocate.
 *    Preallocating sequence values can greatly improve insert performance.
 */
public void setSequencePreallocationSize(int size) {
  getDefaultSequence().setPreallocationSize(size);
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * This method sets the update sequence number query.  It
 * allows for other queries to be used instead of the default one.
 */
public void setUpdateSequenceQuery(DataModifyQuery updateSequenceNumberQuery) {
  if (getDefaultSequence() instanceof QuerySequence) {
    ((QuerySequence)getDefaultSequence()).setUpdateQuery(updateSequenceNumberQuery);
  } else {
    throw ValidationException.wrongSequenceType(Helper.getShortClassName(getDefaultSequence()), "setUpdateQuery");
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * OBSOLETE:
 * This method lazy initializes the select sequence number query.  It
 * allows for other queries to be used instead of the default one.
 */
public ValueReadQuery getSelectSequenceQuery() {
  if (getDefaultSequence() instanceof QuerySequence) {
    return ((QuerySequence)getDefaultSequence()).getSelectQuery();
  } else {
    throw ValidationException.wrongSequenceType(Helper.getShortClassName(getDefaultSequence()), "getSelectQuery");
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * This method sets the update sequence number query.  It
 * allows for other queries to be used instead of the default one.
 */
public void setUpdateSequenceQuery(DataModifyQuery updateSequenceNumberQuery) {
  if (getDefaultSequence() instanceof QuerySequence) {
    ((QuerySequence)getDefaultSequence()).setUpdateQuery(updateSequenceNumberQuery);
  } else {
    throw ValidationException.wrongSequenceType(Helper.getShortClassName(getDefaultSequence()), "setUpdateQuery");
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * OBSOLETE:
 * This method lazy initializes the select sequence number query.  It
 * allows for other queries to be used instead of the default one.
 */
public ValueReadQuery getSelectSequenceQuery() {
  if (getDefaultSequence() instanceof QuerySequence) {
    return ((QuerySequence)getDefaultSequence()).getSelectQuery();
  } else {
    throw ValidationException.wrongSequenceType(Helper.getShortClassName(getDefaultSequence()), "getSelectQuery");
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Used only for writing into XML or Java.
 */
public Sequence getDefaultSequenceToWrite() {
  if (usesPlatformDefaultSequence()) {
    return null;
  } else {
    return getDefaultSequence();
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * OBSOLETE:
 * This method lazy initializes the update sequence number query.  It
 * allows for other queries to be used instead of the default one.
 */
public DataModifyQuery getUpdateSequenceQuery() {
  if (getDefaultSequence() instanceof QuerySequence) {
    return ((QuerySequence)getDefaultSequence()).getUpdateQuery();
  } else {
    throw ValidationException.wrongSequenceType(Helper.getShortClassName(getDefaultSequence()), "getUpdateQuery");
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * OBSOLETE:
 * This method lazy initializes the select sequence number query.  It
 * allows for other queries to be used instead of the default one.
 */
public ValueReadQuery getSelectSequenceQuery() {
  if (getDefaultSequence() instanceof QuerySequence) {
    return ((QuerySequence)getDefaultSequence()).getSelectQuery();
  } else {
    throw ValidationException.wrongSequenceType(Helper.getShortClassName(getDefaultSequence()), "getSelectQuery");
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 *    Set the number of sequence values to preallocate.
 *    Preallocating sequence values can greatly improve insert performance.
 */
public void setSequencePreallocationSize(int size) {
  getDefaultSequence().setPreallocationSize(size);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 *    Set the number of sequence values to preallocate.
 *    Preallocating sequence values can greatly improve insert performance.
 */
public void setSequencePreallocationSize(int size) {
  getDefaultSequence().setPreallocationSize(size);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * This method sets the update sequence number query.  It
 * allows for other queries to be used instead of the default one.
 */
public void setUpdateSequenceQuery(DataModifyQuery updateSequenceNumberQuery) {
  if (getDefaultSequence() instanceof QuerySequence) {
    ((QuerySequence)getDefaultSequence()).setUpdateQuery(updateSequenceNumberQuery);
  } else {
    throw ValidationException.wrongSequenceType(Helper.getShortClassName(getDefaultSequence()), "setUpdateQuery");
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * OBSOLETE:
 * This method lazy initializes the update sequence number query.  It
 * allows for other queries to be used instead of the default one.
 */
public DataModifyQuery getUpdateSequenceQuery() {
  if (getDefaultSequence() instanceof QuerySequence) {
    return ((QuerySequence)getDefaultSequence()).getUpdateQuery();
  } else {
    throw ValidationException.wrongSequenceType(Helper.getShortClassName(getDefaultSequence()), "getUpdateQuery");
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * OBSOLETE:
 * This method lazy initializes the update sequence number query.  It
 * allows for other queries to be used instead of the default one.
 */
public DataModifyQuery getUpdateSequenceQuery() {
  if (getDefaultSequence() instanceof QuerySequence) {
    return ((QuerySequence)getDefaultSequence()).getUpdateQuery();
  } else {
    throw ValidationException.wrongSequenceType(Helper.getShortClassName(getDefaultSequence()), "getUpdateQuery");
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Used only for writing into XML or Java.
 */
public Sequence getDefaultSequenceToWrite() {
  if (usesPlatformDefaultSequence()) {
    return null;
  } else {
    return getDefaultSequence();
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * OBSOLETE:
 * Can override the default query for returning the sequence numbers.
 * This query must be a valid query that has one parameter which is
 * the sequence name.
 */
public void setSelectSequenceNumberQuery(ValueReadQuery seqQuery) {
  if (getDefaultSequence() instanceof QuerySequence) {
    ((QuerySequence)getDefaultSequence()).setSelectQuery(seqQuery);
  } else {
    throw ValidationException.wrongSequenceType(Helper.getShortClassName(getDefaultSequence()), "setSelectQuery");
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Indicates whether defaultSequence is the same as platform default sequence.
 */
public boolean usesPlatformDefaultSequence() {
  if (!hasDefaultSequence()) {
    return true;
  } else {
    return getDefaultSequence().equals(createPlatformDefaultSequence());
  }
}
 
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Indicates whether defaultSequence is the same as platform default sequence.
 */
@Override
public boolean usesPlatformDefaultSequence() {
  if (!hasDefaultSequence()) {
    return true;
  } else {
    return getDefaultSequence().equals(createPlatformDefaultSequence());
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Indicates whether defaultSequence is the same as platform default sequence.
 */
public boolean usesPlatformDefaultSequence() {
  if (!hasDefaultSequence()) {
    return true;
  } else {
    return getDefaultSequence().equals(createPlatformDefaultSequence());
  }
}
 
org.eclipse.persistence.internal.databaseaccessDatasourcePlatformgetDefaultSequence

Javadoc

Get default sequence

Popular methods of DatasourcePlatform

  • <init>
  • addOperator
  • appendParameter
    Add the parameter. Convert the parameter to a string and write it.
  • copyInto
    Copy the state into the new platform.
  • createConnectionCustomizer
    INTERNAL:
  • createPlatformDefaultSequence
    INTERNAL: Create platform-default Sequence
  • getConversionManager
    The platform hold its own instance of conversion manager to allow customization.
  • getCustomModifyValueForCall
    Allow for the platform to handle the representation of parameters specially.
  • getEndDelimiter
    Delimiter to use for fields and tables using spaces or other special values. Some databases use diff
  • getPlatformOperators
    Return any platform-specific operators
  • getSequencePreallocationSize
  • getSequences
    INTERNAL: Returns a map of sequence names to Sequences (may be null).
  • getSequencePreallocationSize,
  • getSequences,
  • getStartDelimiter,
  • getTableQualifier,
  • getTimestampQuery,
  • hasDefaultSequence,
  • initializePlatformOperators,
  • sequencesAfterCloneCleanup,
  • setConversionManager

Popular in Java

  • Making http post requests using okhttp
  • startActivity (Activity)
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JOptionPane (javax.swing)
  • 21 Best Atom Packages for 2021
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