About long

51-60 of 200Refresh
Forum
3

Join performance in Objectdb

population completed.");         long ms, result, elapsedTime;         System.out.println("Query 1 started.");         ms = System.currentTimeMillis();         TypedQuery<Long> q1 = em ... AND a.cId = c.id", Long.class);         result = q1.getSingleResult();         elapsedTime
JDO Doc
3

currentValue()

Method javax.jdo.datastore.Sequence long currentValue() Returns the current sequence value as a long. If the current sequence value is not available or is not numeric, throw JDODataStoreException. Returns: the current value Since: JDO 2.0
JDO Doc
3

getLongField(pc, field, currentValue)

Method javax.jdo.spi.StateManager long getLongField(   PersistenceCapable pc,   int field,   long currentValue ) Return the value for the field. Parameters: pc - the calling PersistenceCapable instance field - the field number currentValue - the current value of the field Returns: the new value for the field Since: JDO 1.0
JPA Doc
3

javax.persistence.GeneratedValue

") @Column(name="CUST_ID") public Long getId() { return id; } Example 2: @Id @GeneratedValue(strategy=TABLE, generator="CUST_GEN") @Column(name="CUST_ID") Long id
JPA Doc
3

javax.persistence.MapsId

has simple primary key @Entity public class Employee { @Id long empId; String name ... public class DependentId { String name; long empid; // corresponds to primary key
JPA Doc
3

javax.persistence.Version

, Integer, short, Short, long, Long, java.sql.Timestamp. Example: @Version @Column(name
JDO Doc
3

nextValue()

Method javax.jdo.datastore.Sequence long nextValue() Returns the next sequence value as a long. If the next sequence value is not available or is not numeric, throw JDODataStoreException. Returns: the next value Since: JDO 2.0
JDO Doc
3

setLongField(pc, field, currentValue, newValue)

Method javax.jdo.spi.StateManager void setLongField(   PersistenceCapable pc,   int field,   long currentValue,   long newValue ) Mark the field as modified by the user. Parameters: pc - the calling PersistenceCapable instance field - the field number currentValue - the current value of the field
JPA Doc
3

sumAsLong(x)

Method javax.persistence.criteria.CriteriaBuilder Expression<Long> sumAsLong(   Expression x ) Create an aggregate expression applying the sum operation to an Integer-valued expression, returning a Long result. Parameters: x - expression representing input value to sum operation Returns: sum expression Since: JPA 2.0
JPA Doc
3

toLong(number)

Method javax.persistence.criteria.CriteriaBuilder Expression<Long> toLong(   Expression number ) Typecast. Returns same expression object. Parameters: number - numeric expression Returns: Expression<Long> Since: JPA 2.0