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

How to use
useServerTime
method
in
org.eclipse.persistence.descriptors.TimestampLockingPolicy

Best Java code snippets using org.eclipse.persistence.descriptors.TimestampLockingPolicy.useServerTime (Showing top 12 results out of 315)

origin: com.haulmont.thirdparty/eclipselink

/**
 * PUBLIC:
 * Create a new TimestampLockingPolicy.
 * Defaults to using the time retrieved from the server.
 */
public TimestampLockingPolicy() {
  super();
  this.useServerTime();
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * PUBLIC:
 * Create a new TimestampLockingPolicy.
 * Defaults to using the time retrieved from the server.
 * @param fieldName the field where the write lock value will be stored.
 */
public TimestampLockingPolicy(String fieldName) {
  super(fieldName);
  this.useServerTime();
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Create a new TimestampLockingPolicy.
 * Defaults to using the time retrieved from the server.
 * @param field the field where the write lock value will be stored.
 */
public TimestampLockingPolicy(DatabaseField field) {
  super(field);
  this.useServerTime();
}
 
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * PUBLIC:
 * Create a new TimestampLockingPolicy.
 * Defaults to using the time retrieved from the server.
 */
public TimestampLockingPolicy() {
  super();
  this.useServerTime();
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * PUBLIC:
 * Create a new TimestampLockingPolicy.
 * Defaults to using the time retrieved from the server.
 * @param fieldName the field where the write lock value will be stored.
 */
public TimestampLockingPolicy(String fieldName) {
  super(fieldName);
  this.useServerTime();
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * PUBLIC:
 * Create a new TimestampLockingPolicy.
 * Defaults to using the time retrieved from the server.
 */
public TimestampLockingPolicy() {
  super();
  this.useServerTime();
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Create a new TimestampLockingPolicy.
 * Defaults to using the time retrieved from the server.
 * @param field the field where the write lock value will be stored.
 */
public TimestampLockingPolicy(DatabaseField field) {
  super(field);
  this.useServerTime();
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Create a new TimestampLockingPolicy.
 * Defaults to using the time retrieved from the server.
 * @param field the field where the write lock value will be stored.
 */
public TimestampLockingPolicy(DatabaseField field) {
  super(field);
  this.useServerTime();
}
 
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * PUBLIC:
 * Create a new TimestampLockingPolicy.
 * Defaults to using the time retrieved from the server.
 * @param fieldName the field where the write lock value will be stored.
 */
public TimestampLockingPolicy(String fieldName) {
  super(fieldName);
  this.useServerTime();
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * PUBLIC:
 * Set if policy uses server time.
 */
public void setUsesServerTime(boolean usesServerTime) {
  if (usesServerTime) {
    useServerTime();
  } else {
    useLocalTime();
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * PUBLIC:
 * Set if policy uses server time.
 */
public void setUsesServerTime(boolean usesServerTime) {
  if (usesServerTime) {
    useServerTime();
  } else {
    useLocalTime();
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * PUBLIC:
 * Set if policy uses server time.
 */
public void setUsesServerTime(boolean usesServerTime) {
  if (usesServerTime) {
    useServerTime();
  } else {
    useLocalTime();
  }
}
org.eclipse.persistence.descriptorsTimestampLockingPolicyuseServerTime

Javadoc

PUBLIC: set this policy to get the time from the server.

Popular methods of TimestampLockingPolicy

  • <init>
    INTERNAL: Create a new TimestampLockingPolicy. Defaults to using the time retrieved from the server.
  • getDescriptor
  • getInitialWriteValue
    INTERNAL: returns the initial locking value
  • getWriteLockField
  • isNewerVersion
    INTERNAL: Compares the value from the row and from the object (or cache). Will return true if the ro
  • isStoredInCache
  • lockValueFromObject
  • storeInCache
  • storeInObject
  • useLocalTime
    PUBLIC: set this policy to get the time from the local machine.
  • usesLocalTime
    PUBLIC: Return true if policy uses local time.
  • usesServerTime
    PUBLIC: Return true if policy uses server time.
  • usesLocalTime,
  • usesServerTime

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • runOnUiThread (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • 14 Best Plugins for Eclipse
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