/** * PUBLIC: * Create a new TimestampLockingPolicy. * Defaults to using the time retrieved from the server. */ public TimestampLockingPolicy() { super(); this.useServerTime(); }
/** * 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(); }
/** * 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(); }
/** * PUBLIC: * Create a new TimestampLockingPolicy. * Defaults to using the time retrieved from the server. */ public TimestampLockingPolicy() { super(); this.useServerTime(); }
/** * 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(); }
/** * PUBLIC: * Create a new TimestampLockingPolicy. * Defaults to using the time retrieved from the server. */ public TimestampLockingPolicy() { super(); this.useServerTime(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * PUBLIC: * Set if policy uses server time. */ public void setUsesServerTime(boolean usesServerTime) { if (usesServerTime) { useServerTime(); } else { useLocalTime(); } }
/** * PUBLIC: * Set if policy uses server time. */ public void setUsesServerTime(boolean usesServerTime) { if (usesServerTime) { useServerTime(); } else { useLocalTime(); } }
/** * PUBLIC: * Set if policy uses server time. */ public void setUsesServerTime(boolean usesServerTime) { if (usesServerTime) { useServerTime(); } else { useLocalTime(); } }