ObjectDB Database Search

51-100 of 200 results

General Performance Issues Illustrated with a Specific Method

retireComments; // // @Override public int hashCode() { int hash = 0; hash += (id != null ? id.hashCode() : 0 ... boolean ageCalculated = false; @Transient private int ageMonths; @Transient private int ageDays; @Transient private int ageYears; @Transient private String age; @Transient private long ageInDays

Trouble bug on explorer

@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="seq") private int gid; @Index private int id; private String userName; private String pwd; private String ircim; private String mail; private int access; private int programType; private Date regDate; private Date regEnd; private String jxtaUUID

Error 613 - i cant put a list into a Squad object

the Athletes into a squad it brings up an exception. so the problematic line would u find int the main class ... .OneToMany; @Entity public class Squad {     private int squadId;    ... ; public Squad( int squadId) {         super();   

Persist error @ManyToMany how to define correct entities relationships

Category implements Serializable { @Id private long id; public Category( int id) { this.id = id ... ) private List categories = new ArrayList(); public Product( int id,Category cat) { this.id = id ... Category( int id) { this.id = id; } public long getId() { return id; } public void setId(long id) { this.id

openejb jpa jaas module

.getPrincipals(); final int id = info.getId(); final TypedQuery namedQuery = entityManager.createNamedQuery ... (); for (UserPrincipal userPrincipal : resultList) { final int principalId = userPrincipal.getPrincipalId ... ; @GeneratedValue(strategy = GenerationType.SEQUENCE , generator = "gen") @Id private int principalId; public

Should derived fields of an EmbeddedId be manually maintained by app code?

id = "1"; @SuppressWarnings("unused") // used by JPA @Version private int version; @Basic protected ... { if (lastInstanceInMap == null) { lastInstanceInMap = 0; } int endCnt = lastInstanceInMap + numberToGen; int startCnt = lastInstanceInMap; long timing = System.currentTimeMillis(); while (endCnt

Composite Index error 328

= -4472890635861972890L; private int id; private int dyId; private long pwd; private String usrName; private Integer mail; private int access; private short programType; private Date regDate; private Date regEnd; private Date lastLogin; private String lastIp; private int flags; private String name; private String

@OneToMany(fetch = FetchType.LAZY) list is always null

, generator = "b") private int id; @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) private List children; public int getId() { return id; } public void setId( int id) { this.id = id ... @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "b") private int id; @ManyToOne

Replicated cluster recovery

[], int , int , int ) line: not available [native method] SocketInputStream.read(byte[], int , int ) line: 129 BufferedInputStream.fill() line: 218 BufferedInputStream.read1(byte[], int , int ) line: 258 BufferedInputStream.read(byte[], int , int ) line: 317 CST(NTS).z( int , int ) line: 314 CST(NTS).y() line: 274

EntityManager.find(entityClass, primaryKey) is slow when accessing non-existent IDs

process non-existent IDs fastest. * */ public class OdbEmFindById { public static final int EVALUATION ... (XId id) { this.id = id; } public X( int a, int b, int c) { id = new XId(a, b, c); } @Override public String toString() { return "X [id=" + id + "]"; } } @Embeddable public static class XId { public int

Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

"; @SuppressWarnings("unused") // used by JPA @Version private int version; @Basic protected java.lang.Integer ... ) { lastInstanceInMap = 0; } int endCnt = lastInstanceInMap + numberToGen; int startCnt = lastInstanceInMap ... getLastMapInstanceKey() { return lastInstanceInMap; } public int getNumberOfMapItems(EntityManager em) { Query q

Query.setFirstResult(startPosition) - JPA Method

JPA Method in jakarta.persistence.Query Query setFirstResult (    int  startPosition ) Set the position of the first result to retrieve. Parameters: startPosition - position of the first result, numbered from 0 Return: the same query instance Throws: IllegalArgumentException - if the argument is negative Since: JPA 1.0

Query.getMaxResults() - JPA Method

JPA Method in jakarta.persistence.Query int getMaxResults () The maximum number of results the query object was set to retrieve. Returns Integer if setMaxResults was not applied to the query object. Return: maximum number of results Since: JPA 2.0

Query.setMaxResults(maxResult) - JPA Method

JPA Method in jakarta.persistence.Query Query setMaxResults (    int  maxResult ) Set the maximum number of results to retrieve. Parameters: maxResult - maximum number of results to retrieve Return: the same query instance Throws: IllegalArgumentException - if the argument is negative Since: JPA 1.0

Query.executeUpdate() - JPA Method

JPA Method in jakarta.persistence.Query int executeUpdate () Execute an update or delete statement. Return: the number of entities updated or deleted Throws: IllegalStateException - if called for a Jakarta Persistence query language SELECT statement or for a criteria query

AnnotationAttrRef jakarta.persistence.MapKeyColumn.scale

JPA Annotation Attribute in jakarta.persistence.MapKeyColumn int scale default 0 (Optional) The scale for a column of SQL type decimal or numeric , or of similar database-native type. Applies only to columns of exact numeric type. The default value 0 indicates that a provider-determined precision should be inferred. Since: JPA 2.0

AnnotationAttrRef jakarta.persistence.MapKeyColumn.precision

JPA Annotation Attribute in jakarta.persistence.MapKeyColumn int precision default 0 (Optional) The precision for a column of SQL type decimal or numeric , or of similar database-native type. Applies only to columns of exact numeric type. The default value 0 indicates that a provider-determined precision should be inferred. Since: JPA 2.0

AnnotationAttrRef jakarta.persistence.MapKeyColumn.length

JPA Annotation Attribute in jakarta.persistence.MapKeyColumn int length default 255 (Optional) The column length. Applies only to columns whose type is parameterized by length, for example, varchar or varbinary types. Since: JPA 2.0

Query.getFirstResult() - JPA Method

JPA Method in jakarta.persistence.Query int getFirstResult () The position of the first result the query object was set to retrieve. Returns 0 if setFirstResult was not applied to the query object. Return: position of the first result Since: JPA 2.0 The Running JPA Queries article explains how to use getFirstResult .

StoredProcedureQuery.getUpdateCount() - JPA Method

JPA Method in jakarta.persistence.StoredProcedureQuery int getUpdateCount () Return the update count or -1 if there is no pending result or if the next result is not an update count. Return: update count or -1 if there is no pending result or if the next result is not an update count Throws

TypedQuery.setFirstResult(startPosition) - JPA Method

JPA Method in jakarta.persistence.TypedQuery TypedQuery setFirstResult (    int  startPosition ) Set the position of the first result to retrieve. Parameters: startPosition - position of the first result, numbered from 0 Return: the same query instance Throws: IllegalArgumentException - if the argument is negative Since: JPA 2.0

TypedQuery.setMaxResults(maxResult) - JPA Method

JPA Method in jakarta.persistence.TypedQuery TypedQuery setMaxResults (    int  maxResult ) Set the maximum number of results to retrieve. Parameters: maxResult - maximum number of results to retrieve Return: the same query instance Throws: IllegalArgumentException - if the argument is negative Since: JPA 2.0

AnnotationAttrRef jakarta.persistence.SequenceGenerator.allocationSize

JPA Annotation Attribute in jakarta.persistence.SequenceGenerator int allocationSize default 50 (Optional) The amount to increment by when allocating sequence numbers from the sequence. Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.SequenceGenerator.initialValue

JPA Annotation Attribute in jakarta.persistence.SequenceGenerator int initialValue default 1 (Optional) The value from which the sequence object is to start generating. Since: JPA 1.0

Tuple.get(i) - JPA Method

JPA Method in jakarta.persistence.Tuple Object get (    int  i ) Get the value of the element at the specified position in the result tuple. The first position is 0. Parameters: i - position in result tuple Return: value of the tuple element Throws: IllegalArgumentException - if i exceeds length of result tuple Since: JPA 2.0

Tuple.get(i,type) - JPA Method

JPA Method in jakarta.persistence.Tuple X get (    int  i,    Class  type ) Get the value of the element at the specified position in the result tuple. The first position is 0. Parameters: i - position in result tuple type - type of the tuple element Return: value

AnnotationRef jakarta.persistence.EnumeratedValue

JPA Annotation EnumeratedValue Target: FIELD Implemented Interfaces: Annotation Specifies that an annotated field of a Java enum type is the source of database column values for an plain mapping. The annotated field must be declared final , and must be of type: byte , short , or int for EnumType

AnnotationAttrRef jakarta.persistence.Column.scale

JPA Annotation Attribute in jakarta.persistence.Column int scale default 0 (Optional) The scale for a column of SQL type decimal or numeric , or of similar database-native type. Applies only to columns of exact numeric type. The default value 0 indicates that a provider-determined scale should be inferred. Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.Column.precision

JPA Annotation Attribute in jakarta.persistence.Column int precision default 0 (Optional) The precision for a column of SQL type decimal or numeric , or of similar database-native type. Applies only to columns of exact numeric type. The default value 0 indicates that a provider-determined precision should be inferred. Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.TableGenerator.allocationSize

JPA Annotation Attribute in jakarta.persistence.TableGenerator int allocationSize default 50 (Optional) The amount to increment by when allocating id numbers from the generator. Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.TableGenerator.initialValue

JPA Annotation Attribute in jakarta.persistence.TableGenerator int initialValue default 0 (Optional) The initial value to be used to initialize the column that stores the last value generated. Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.Column.length

JPA Annotation Attribute in jakarta.persistence.Column int length default 255 (Optional) The column length. Applies only to columns whose type is parameterized by length, for example, varchar or varbinary types. Since: JPA 1.0

CriteriaBuilder.substring(x,from) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression substring (    Expression  x,     int  from ) Create an expression for substring extraction. Extracts a substring starting at the specified position through to end of the string. First position

StoredProcedureQuery.getOutputParameterValue(position) - JPA Method

JPA Method in jakarta.persistence.StoredProcedureQuery Object getOutputParameterValue (    int  position ) Retrieve a value passed back from the procedure through an INOUT or OUT parameter. For portability, all results corresponding to result sets and update counts must be retrieved

StoredProcedureQuery.registerStoredProcedureParameter(position,type,mode) - JPA Method

JPA Method in javax.persistence.StoredProcedureQuery StoredProcedureQuery registerStoredProcedureParameter (    int  position,    Class type,     ParameterMode  mode ) Register a positional parameter. All parameters must be registered

StoredProcedureQuery.executeUpdate() - JPA Method

JPA Method in jakarta.persistence.StoredProcedureQuery int executeUpdate () Return the update count of -1 if there is no pending result or if the first result is not an update count. The provider will call execute on the query if needed. Return: the update count or -1 if there is no pending result

StoredProcedureQuery.setParameter(position,value) - JPA Method

JPA Method in jakarta.persistence.StoredProcedureQuery StoredProcedureQuery setParameter (    int  position,    Object value ) Bind an argument value to a positional parameter. Parameters: position - position value - parameter value Return: the same query instance

StoredProcedureQuery.setParameter(position,value,temporalType) - JPA Method

JPA Method in jakarta.persistence.StoredProcedureQuery StoredProcedureQuery setParameter (    int  position,    Calendar value,     TemporalType  temporalType ) Bind an instance of java.util.Calendar to a positional parameter. Parameters

AnnotationRef jakarta.persistence.Version

must be of one of the following basic types: int , Integer, short , Short, long , Long, java.sql.Timestamp

StoredProcedureQuery.setParameter(position,value,temporalType) - JPA Method

JPA Method in jakarta.persistence.StoredProcedureQuery StoredProcedureQuery setParameter (    int  position,    Date value,     TemporalType  temporalType ) Bind an instance of java.util.Date to a positional parameter. Parameters: position

AnnotationAttrRef jakarta.persistence.DiscriminatorColumn.length

JPA Annotation Attribute in jakarta.persistence.DiscriminatorColumn int length default 31 (Optional) The column length for String-based discriminator types. Ignored for other discriminator types. Since: JPA 1.0

TypedQuery.setParameter(position,value,temporalType) - JPA Method

JPA Method in jakarta.persistence.TypedQuery TypedQuery setParameter (    int  position,    Calendar value,     TemporalType  temporalType ) Bind an instance of java.util.Calendar to a positional parameter. Parameters: position - position value

TypedQuery.setParameter(position,value,temporalType) - JPA Method

JPA Method in jakarta.persistence.TypedQuery TypedQuery setParameter (    int  position,    Date value,     TemporalType  temporalType ) Bind an instance of java.util.Date to a positional parameter. Parameters: position - position value

TypedQuery.setParameter(position,value) - JPA Method

JPA Method in jakarta.persistence.TypedQuery TypedQuery setParameter (    int  position,    Object value ) Bind an argument value to a positional parameter. Parameters: position - position value - parameter value Return: the same query instance Throws

AnnotationRef jakarta.persistence.DiscriminatorColumn

a class discriminator. Defaults to DiscriminatorType.STRING . Since: JPA 1.0 int length default 31

CriteriaBuilder.locate(x,pattern,from) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression locate (    Expression  x,    String pattern,     int  from ) Create expression to locate the position of one string within another, returning position of first character

EnumConstRef jakarta.persistence.GenerationType.TABLE

JPA Enum Constant in jakarta.persistence.GenerationType TABLE Indicates that the persistence provider must assign primary keys for the entity using an underlying database table to ensure uniqueness. May be used to generate primary keys of type Long, Integer, long , or int . Since: JPA 1.0

EnumConstRef jakarta.persistence.GenerationType.AUTO

int , the provider selects between TABLE , SEQUENCE , and IDENTITY . The AUTO generation strategy

EnumConstRef jakarta.persistence.GenerationType.IDENTITY

JPA Enum Constant in jakarta.persistence.GenerationType IDENTITY Indicates that the persistence provider must assign primary keys for the entity using a database identity column. May be used to generate primary keys of type Long, Integer, long , or int . Since: JPA 1.0

EnumConstRef jakarta.persistence.GenerationType.SEQUENCE

JPA Enum Constant in jakarta.persistence.GenerationType SEQUENCE Indicates that the persistence provider must assign primary keys for the entity using a database sequence. May be used to generate primary keys of type Long, Integer, long , or int . Since: JPA 1.0