Tabnine Logo
org.hibernate.ogm.util.impl
Code IndexAdd Tabnine to your IDE (free)

How to use org.hibernate.ogm.util.impl

Best Java code snippets using org.hibernate.ogm.util.impl (Showing top 20 results out of 315)

origin: hibernate/hibernate-ogm

/**
 * A regular embedded is an element that it is embedded but it is not a key or a collection.
 *
 * @param keyColumnNames the column names representing the identifier of the entity
 * @param column the column we want to check
 * @return {@code true} if the column represent an attribute of a regular embedded element, {@code false} otherwise
 */
public static boolean isPartOfRegularEmbedded(String[] keyColumnNames, String column) {
  return isPartOfEmbedded( column ) && !ArrayHelper.contains( keyColumnNames, column );
}
origin: hibernate/hibernate-ogm

private static Tuple extractFromObject(Object obj) {
  if ( obj instanceof Map ) {
    return extractFromMap( ( (Map) obj ) );
  }
  try {
    return extractFromPojo( obj );
  }
  catch (Exception e) {
    throw log.cannotExtractTupleFromObject( obj, e );
  }
}
origin: hibernate/hibernate-ogm

@Override
public MassIndexer threadsForSubsequentFetching(int numberOfThreads) {
  log.unsupportedIndexerConfigurationOption( "threadForSubsequentFetching" );
  return this;
}
origin: hibernate/hibernate-ogm

  private ClosableIterator<Tuple> extractResultSet(String storedProcedureName, Object res) {
    try {
      return CollectionHelper.newClosableIterator( TupleExtractor.extractTuplesFromObject( res ) );
    }
    catch (Exception e) {
      throw log.cannotExtractStoredProcedureResultSet( storedProcedureName, res, e );
    }
  }
}
origin: hibernate/hibernate-ogm

public HostAndPort(String host, Integer port) {
  Contracts.assertNotNull( host, "host" );
  Contracts.assertNotNull( host, "port" );
  this.host = host;
  this.port = port;
}
origin: hibernate/hibernate-ogm

public void configureProperty(String propertyName, ElementType elementType) {
  if ( elementType != ElementType.FIELD && elementType != ElementType.METHOD ) {
    throw log.getUnsupportedElementTypeException( elementType );
  }
  if ( !ReflectionHelper.propertyExists( currentEntityType, propertyName, elementType ) ) {
    throw log.getPropertyDoesNotExistException( currentEntityType.getName(), propertyName, elementType );
  }
  this.currentPropertyName = propertyName;
}
origin: hibernate/hibernate-ogm

/**
 * Return a transaction context given the session; it never returns {@code null}.
 *
 * @param session current {@link Session}
 * @return the {@link TransactionContext}
 */
public static TransactionContext transactionContext(Session session) {
  return transactionContext( (SharedSessionContractImplementor) session );
}
origin: hibernate/hibernate-ogm

private AssociationContextImpl(AssociationTypeContext associationTypeContext,
    TuplePointer entityTuplePointer,
    OperationsQueue operationsQueue,
    TransactionContext transactionContext) {
  Contracts.assertParameterNotNull( associationTypeContext, "associationTypeContext" );
  this.associationTypeContext = associationTypeContext;
  this.entityTuplePointer = entityTuplePointer;
  this.operationsQueue = operationsQueue;
  this.transactionContext = transactionContext;
}
origin: hibernate/hibernate-ogm

/**
 * Check if an array contains an element.
 *
 * @param array the array with all the elements
 * @param element the element to find in the array
 * @return {@code true} if the array contains the element
 */
public static boolean contains(Object[] array, Object element) {
  return indexOf( array, element ) != -1;
}
origin: hibernate/hibernate-ogm

/**
 * Returns true if this grid dialect logger should wrap the real grid dialect
 *
 * @return boolean
 */
public static boolean activationNeeded() {
  return log.isTraceEnabled();
}
origin: hibernate/hibernate-ogm

  @Override
  public OperationsQueue getOperationsQueue() {
    throw LOG.tupleContextNotAvailable();
  }
}
origin: hibernate/hibernate-ogm

/**
 * Asserts that the given object is not {@code null}.
 *
 * @param object the object to validate, e.g. a local variable etc.
 * @param name the name of the object, will be used in the logging message in case the given object is {@code null}
 * @throws IllegalArgumentException in case the given object is {@code null}
 */
public static void assertNotNull(Object object, String name) {
  if ( object == null ) {
    throw log.mustNotBeNull( name );
  }
}
origin: hibernate/hibernate-ogm

  @Override
  public void validate(Integer value) throws HibernateException {
    if ( value == null ) {
      return;
    }
    if ( value < 1 || value > 65535 ) {
      throw log.illegalPortValue( value );
    }
  }
};
origin: hibernate/hibernate-ogm

  @Override
  public void lock(Serializable id, Object version, Object object, int timeout, SharedSessionContractImplementor session)
      throws StaleObjectStateException, LockingStrategyException {

    throw LOG.unsupportedLockMode( gridDialectClass, lockMode );
  }
}
origin: org.hibernate.ogm/hibernate-ogm-infinispan-remote

  private ClosableIterator<Tuple> extractResultSet(String storedProcedureName, Object res) {
    try {
      return CollectionHelper.newClosableIterator( TupleExtractor.extractTuplesFromObject( res ) );
    }
    catch (Exception e) {
      throw log.cannotExtractStoredProcedureResultSet( storedProcedureName, res, e );
    }
  }
}
origin: org.hibernate.ogm/hibernate-ogm-mongodb

/**
 * Instantiates a new MultiPoint.
 *
 * @param points the list of points
 */
public GeoMultiPoint(List<GeoPoint> points) {
  super( TYPE );
  Contracts.assertNotNull( points, "points" );
  this.points = points;
}
origin: hibernate/hibernate-ogm

@Override
public MassIndexer limitIndexedObjectsTo(long maximum) {
  log.unsupportedIndexerConfigurationOption( "limitIndexedObjectsTo" );
  return this;
}
origin: hibernate/hibernate-ogm

@Override
public MassIndexer idFetchSize(int idFetchSize) {
  log.unsupportedIndexerConfigurationOption( "idFetchSize" );
  return this;
}
origin: hibernate/hibernate-ogm

@Override
public MassIndexer transactionTimeout(int timeoutInSeconds) {
  log.unsupportedIndexerConfigurationOption( "transactionTimeout" );
  return this;
}
origin: hibernate/hibernate-ogm

@Override
public MassIndexer threadsToLoadObjects(int numberOfThreads) {
  log.unsupportedIndexerConfigurationOption( "threadsToLoadObjects" );
  return this;
}
org.hibernate.ogm.util.impl

Most used classes

  • ClassObjectFormatter
  • CollectionHelper
  • ArrayHelper
  • Log
  • StringHelper
  • TupleExtractor,
  • EffectivelyFinal,
  • ReflectionHelper,
  • TransactionContextHelper,
  • AssociationPersister$Builder,
  • AssociationPersister,
  • CollectionHelper$ClosableIteratorWrapper,
  • CustomLoaderHelper,
  • EmbeddedHelper,
  • Immutable,
  • Log_$logger,
  • LoggerFactory,
  • LogicalPhysicalConverterHelper,
  • ResourceHelper
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now