public ConditionFragment setCondition(String[] lhs, String rhs) { this.lhs = lhs; this.rhs = ArrayHelper.fillArray(rhs, lhs.length); return this; }
defaultLockModes = ArrayHelper.fillArray( LockMode.NONE, size );
owners = new int[joins]; ownerAssociationTypes = new EntityType[joins]; lockModeArray = ArrayHelper.fillArray( lockOptions.getLockMode(), joins );
public ConditionFragment setCondition(String[] lhs, String rhs) { this.lhs = lhs; this.rhs = ArrayHelper.fillArray(rhs, lhs.length); return this; }
public ConditionFragment setCondition(String[] lhs, String rhs) { this.lhs = lhs; this.rhs = ArrayHelper.fillArray(rhs, lhs.length); return this; }
public ConditionFragment setCondition(String[] lhs, String rhs) { this.lhs = lhs; this.rhs = ArrayHelper.fillArray(rhs, lhs.length); return this; }
public ConditionFragment setCondition(String[] lhs, String rhs) { this.lhs = lhs; this.rhs = ArrayHelper.fillArray(rhs, lhs.length); return this; }
final String typeBindFragment = StringHelper.join( ",", ArrayHelper.fillArray( "?", type.getColumnSpan( walker.getSessionFactoryHelper().getFactory() ? StringHelper.join( ",", ArrayHelper.fillArray( typeBindFragment, ( ( Collection ) value ).size() ) ) : typeBindFragment; result.append( bindFragment );
final String typeBindFragment = StringHelper.join( ",", ArrayHelper.fillArray( "?", type.getColumnSpan( walker.getSessionFactoryHelper().getFactory() ? StringHelper.join( ",", ArrayHelper.fillArray( typeBindFragment, ( ( Collection ) value ).size() ) ) : typeBindFragment; result.append( bindFragment );
/** * Load an entity. * * @param entityPersisters the {@link OgmEntityPersister}s * @param batchSize the batchSize */ public OgmLoader(OgmEntityPersister[] entityPersisters, int batchSize) { if ( entityPersisters == null || entityPersisters.length == 0 ) { throw new AssertionFailure( "EntityPersister[] must not be null or empty" ); } this.entityPersisters = entityPersisters; this.collectionPersisters = new OgmCollectionPersister[] {}; this.factory = entityPersisters[0].getFactory(); ServiceRegistryImplementor serviceRegistry = this.factory.getServiceRegistry(); this.gridDialect = serviceRegistry.getService( GridDialect.class ); this.multigetGridDialect = serviceRegistry.getService( MultigetGridDialect.class ); // NONE, because its the requested lock mode, not the actual! final int fromSize = 1; this.defaultLockModes = ArrayHelper.fillArray( LockMode.NONE, fromSize ); this.collectionAliases = new CollectionAliases[0]; this.batchSize = batchSize; }
/** * Load a collection * * @param collectionPersisters the collection persisters */ public OgmLoader(OgmCollectionPersister[] collectionPersisters) { if ( collectionPersisters == null || collectionPersisters.length == 0 ) { throw new AssertionFailure( "CollectionPersister[] must not be null or empty" ); } this.entityPersisters = new OgmEntityPersister[] {}; this.collectionPersisters = collectionPersisters; this.factory = collectionPersisters[0].getFactory(); ServiceRegistryImplementor serviceRegistry = this.factory.getServiceRegistry(); this.gridDialect = serviceRegistry.getService( GridDialect.class ); this.multigetGridDialect = serviceRegistry.getService( MultigetGridDialect.class ); //NONE, because its the requested lock mode, not the actual! final int fromSize = 1; this.defaultLockModes = ArrayHelper.fillArray( LockMode.NONE, fromSize ); this.collectionAliases = new CollectionAliases[collectionPersisters.length]; for ( int i = 0; i < collectionPersisters.length; i++ ) { collectionAliases[i] = new OgmColumnCollectionAliases( collectionPersisters[i] ); } this.batchSize = -1; }
defaultLockModes = ArrayHelper.fillArray( LockMode.NONE, size );
defaultLockModes = ArrayHelper.fillArray( LockMode.NONE, size );
owners = new int[joins]; ownerAssociationTypes = new EntityType[joins]; lockModeArray = ArrayHelper.fillArray( lockOptions.getLockMode(), joins );
owners = new int[joins]; ownerAssociationTypes = new EntityType[joins]; lockModeArray = ArrayHelper.fillArray( lockOptions.getLockMode(), joins );