/** * PUBLIC: * Create a new VersionLockingPolicy. Defaults to * storing the lock value in the cache. * @param field the write lock field. */ public VersionLockingPolicy(DatabaseField field) { this(); setWriteLockField(field); }
/** * PUBLIC: * Create a new VersionLockingPolicy. Defaults to * storing the lock value in the cache. * @param field the write lock field. */ public VersionLockingPolicy(DatabaseField field) { this(); setWriteLockField(field); }
/** * PUBLIC: * Create a new VersionLockingPolicy. Defaults to * storing the lock value in the cache. * @param field the write lock field. */ public VersionLockingPolicy(DatabaseField field) { this(); setWriteLockField(field); }
/** * PUBLIC: * Set the write lock field name. * @param writeLockFieldName the name of the field to lock against. */ public void setWriteLockFieldName(String writeLockFieldName) { setWriteLockField(new DatabaseField(writeLockFieldName)); }
/** * PUBLIC: * Set the write lock field name. * @param writeLockFieldName the name of the field to lock against. */ public void setWriteLockFieldName(String writeLockFieldName) { setWriteLockField(new DatabaseField(writeLockFieldName)); }
/** * PUBLIC: * Set the write lock field name. * @param writeLockFieldName the name of the field to lock against. */ public void setWriteLockFieldName(String writeLockFieldName) { setWriteLockField(new DatabaseField(writeLockFieldName)); }
/** * INTERNAL: * It is responsible for initializing the policy properties; */ public void initializeProperties() { DatabaseField dbField = getWriteLockField(); dbField = descriptor.buildField(dbField); setWriteLockField(dbField); if (isStoredInCache() && (dbField.getType() == null)) { // Set the default type, only if un-mapped. dbField.setType(getDefaultLockingFieldType()); } Enumeration enumtr = this.getUnmappedFields().elements(); while (enumtr.hasMoreElements()) { DatabaseField lockField; lockField = (DatabaseField)enumtr.nextElement(); descriptor.getFields().addElement(lockField); } }
/** * INTERNAL: * It is responsible for initializing the policy properties; */ public void initializeProperties() { DatabaseField dbField = getWriteLockField(); dbField = descriptor.buildField(dbField); setWriteLockField(dbField); if (isStoredInCache() && (dbField.getType() == null)) { // Set the default type, only if un-mapped. dbField.setType(getDefaultLockingFieldType()); } Enumeration enumtr = this.getUnmappedFields().elements(); while (enumtr.hasMoreElements()) { DatabaseField lockField; lockField = (DatabaseField)enumtr.nextElement(); descriptor.getFields().addElement(lockField); } }
/** * INTERNAL: * It is responsible for initializing the policy properties; */ public void initializeProperties() { DatabaseField dbField = getWriteLockField(); dbField = descriptor.buildField(dbField); setWriteLockField(dbField); if (isStoredInCache() && (dbField.getType() == null)) { // Set the default type, only if un-mapped. dbField.setType(getDefaultLockingFieldType()); } Enumeration enumtr = this.getUnmappedFields().elements(); while (enumtr.hasMoreElements()) { DatabaseField lockField; lockField = (DatabaseField)enumtr.nextElement(); descriptor.getFields().addElement(lockField); } }