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

How to use
PersistentSortedSet
in
org.hibernate.collection.internal

Best Java code snippets using org.hibernate.collection.internal.PersistentSortedSet (Showing top 20 results out of 315)

origin: hibernate/hibernate-orm

@Override
public PersistentCollection instantiate(SharedSessionContractImplementor session, CollectionPersister persister, Serializable key) {
  PersistentSortedSet set = new PersistentSortedSet(session);
  set.setComparator(comparator);
  return set;
}
origin: hibernate/hibernate-orm

@Override
@SuppressWarnings("unchecked")
public Object first() {
  read();
  return ( (SortedSet) set ).first();
}
origin: hibernate/hibernate-orm

  @Override
  public PersistentCollection wrap(SharedSessionContractImplementor session, Object collection) {
    return new PersistentSortedSet( session, (java.util.SortedSet) collection );
  }
}
origin: org.hibernate.orm/hibernate-core

@Override
@SuppressWarnings("unchecked")
public PersistentCollection wrap(
    SortedSet rawCollection,
    PersistentCollectionDescriptor collectionDescriptor,
    SharedSessionContractImplementor session) {
  return new PersistentSortedSet( session, collectionDescriptor, rawCollection );
}
origin: hibernate/hibernate-orm

@Override
@SuppressWarnings("unchecked")
public Object last() {
  read();
  return ( (SortedSet) set ).last();
}
origin: org.hibernate/com.springsource.org.hibernate

public PersistentCollection instantiate(SessionImplementor session, CollectionPersister persister, Serializable key) {
  PersistentSortedSet set = new PersistentSortedSet(session);
  set.setComparator(comparator);
  return set;
}
origin: org.hibernate/com.springsource.org.hibernate

  public PersistentCollection wrap(SessionImplementor session, Object collection) {
    return new PersistentSortedSet( session, (java.util.SortedSet) collection );
  }
}
origin: hibernate/hibernate-orm

@Override
@SuppressWarnings("unchecked")
public SortedSet headSet(Object toElement) {
  read();
  final SortedSet headSet = ( (SortedSet) set ).headSet( toElement );
  return new SubSetProxy( headSet );
}
origin: org.hibernate/com.springsource.org.hibernate.core

public PersistentCollection instantiate(SessionImplementor session, CollectionPersister persister, Serializable key) {
  PersistentSortedSet set = new PersistentSortedSet(session);
  set.setComparator(comparator);
  return set;
}
origin: org.hibernate.orm/hibernate-core

@Override
@SuppressWarnings("unchecked")
public PersistentCollection instantiateWrapper(
    Object key,
    PersistentCollectionDescriptor collectionDescriptor,
    SharedSessionContractImplementor session) {
  return new PersistentSortedSet( session, collectionDescriptor, key );
}
origin: hibernate/hibernate-orm

@Override
@SuppressWarnings("unchecked")
public SortedSet tailSet(Object fromElement) {
  read();
  final SortedSet tailSet = ( (SortedSet) set ).tailSet( fromElement );
  return new SubSetProxy( tailSet );
}
origin: org.hibernate/com.springsource.org.hibernate.core

  public PersistentCollection wrap(SessionImplementor session, Object collection) {
    return new PersistentSortedSet( session, (java.util.SortedSet) collection );
  }
}
origin: hibernate/hibernate-orm

@Override
@SuppressWarnings("unchecked")
public SortedSet subSet(Object fromElement, Object toElement) {
  read();
  final SortedSet subSet = ( (SortedSet) set ).subSet( fromElement, toElement );
  return new SubSetProxy( subSet );
}
origin: org.graniteds/granite-server-hibernate4

  public PersistentSortedSet newInstance(ExtendedObjectInput in, String className)
      throws IOException, ClassNotFoundException, InstantiationException,
      IllegalAccessException, InvocationTargetException,
      SecurityException, NoSuchMethodException {
    
    PersistentCollectionSnapshot snapshot = new JMFPersistentCollectionSnapshot(true, null);
    snapshot.readInitializationData(in);
    
    if (!snapshot.isInitialized())
      return new PersistentSortedSet(null);
    
    Comparator<? super Object> comparator = snapshot.newComparator(in);
    return new PersistentSortedSet(null, new TreeSet<Object>(comparator));
  }
}
origin: org.hibernate/com.springsource.org.hibernate

/**
 * @see PersistentSortedSet#first()
 */
public Object first() {
  read();
  return ( (SortedSet) set ).first();
}
origin: org.graniteds/granite-server-hibernate4

if (initialized) {
  Set<?> set = ((ExternalizablePersistentSet)value).getContentAsSet(target, comparator);
  coll = (sorted ? new PersistentSortedSet(null, (SortedSet<?>)set) : new PersistentSet(null, set));
  coll = (sorted ? new PersistentSortedSet() : new PersistentSet());
origin: org.hibernate.orm/hibernate-core

@Override
@SuppressWarnings("unchecked")
public Object first() {
  read();
  return ( (SortedSet) set ).first();
}
origin: org.hibernate.orm/hibernate-core

@Override
@SuppressWarnings("unchecked")
public Object last() {
  read();
  return ( (SortedSet) set ).last();
}
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * @see PersistentSortedSet#first()
 */
public Object first() {
  read();
  return ( (SortedSet) set ).first();
}
origin: org.hibernate/com.springsource.org.hibernate

/**
 * @see PersistentSortedSet#last()
 */
public Object last() {
  read();
  return ( (SortedSet) set ).last();
}
org.hibernate.collection.internalPersistentSortedSet

Javadoc

A persistent wrapper for a java.util.SortedSet. Underlying collection is a TreeSet.

Most used methods

  • <init>
    Constructs a PersistentSortedSet
  • read
  • setComparator

Popular in Java

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSystemService (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • 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
  • Option (scala)
  • 21 Best IntelliJ Plugins
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