Beispiel #1
0
 @Override
 public SimpleOrderPath.Builder get(String nodeName, GetterType getterType) {
   Arguments.mustNotBeEmpty("nodeName", Arguments.mustNotBeNull("nodeName", nodeName));
   Arguments.mustNotBeNull("getterType", getterType);
   Object[] arr = this.arr;
   int len = this.len;
   if (len + 2 > arr.length) {
     Object[] newArr = new Object[len << 1];
     System.arraycopy(arr, 0, newArr, 0, len);
     this.arr = arr = newArr;
   }
   arr[len] = nodeName;
   arr[len + 1] = getterType;
   this.len += 2;
   return this;
 }
 protected DescendingSetImpl(AbstractMAOrderedSet<E> parentSet) {
   super(
       ((OrderedBaseEntries<E, Object>)
               Arguments.mustNotBeNull("parentSet", parentSet).baseEntries)
           .descendingEntries());
   this.parentSet = parentSet;
 }
 private UnaryArithmeticExpression(
     XCriteriaBuilder criteriaBuilder, Expression<? extends N> operand) {
   super(criteriaBuilder);
   Arguments.mustNotBeNull("operand", operand);
   this.mustUnderSameCriteriaBuilder("operand", operand);
   this.operand = operand;
 }
Beispiel #4
0
 @Override
 public Builder get(
     String nodeName, GetterType getterType, CollectionFetchType collectionFetchType) {
   Arguments.mustNotBeEmpty("nodeName", Arguments.mustNotBeNull("nodeName", nodeName));
   Arguments.mustNotBeNull("getterType", getterType);
   Arguments.mustNotBeNull("collectionFetchType", collectionFetchType);
   Object[] arr = this.arr;
   int len = this.len;
   if (len + 3 > arr.length) {
     Object[] newArr = new Object[len << 1];
     System.arraycopy(arr, 0, newArr, 0, len);
     this.arr = arr = newArr;
   }
   arr[len] = nodeName;
   arr[len + 1] = getterType;
   arr[len + 2] = collectionFetchType;
   this.len += 3;
   return this;
 }
 protected FrozenLazyInitializerImpl(HibernateProxy owner) {
   ProxyObject proxyObject = (ProxyObject) owner;
   MethodHandler handler = proxyObject.getHandler();
   if (!(handler instanceof LazyInitializer)) {
     Arguments.mustBeInstanceOfValue(
         "((" + ProxyObject.class.getName() + ")owner).getHandler()",
         handler,
         LazyInitializer.class);
   }
   Class<?> persistentClass = getPersistentClass((BasicLazyInitializer) handler);
   LazyInitializer lazyInitializer = owner.getHibernateLazyInitializer();
   if (lazyInitializer instanceof FrozenLazyInitializer) {
     throw new AssertionError();
   }
   this.owner = owner;
   this.lazyInitializer = lazyInitializer;
   this.objectModelMetadata = HibernateMetadatas.of(persistentClass);
   this.initTransient(persistentClass);
   proxyObject.setHandler(this);
 }
 protected SqlAwareDriver(Driver targetDriver) {
   this.targetDriver = Arguments.mustNotBeNull("targetDriver", targetDriver);
 }
Beispiel #7
0
 @Override
 public XQuery setQueryType(QueryType queryType) {
   Arguments.mustNotBeNull("queryType", queryType);
   this.queryType = queryType;
   return this;
 }