Tabnine Logo
Property.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
org.granite.messaging.reflect.Property

Best Java code snippets using org.granite.messaging.reflect.Property.getName (Showing top 20 results out of 315)

origin: org.graniteds/granite-client-javafx

@Override
public String getName() {
  return property.getName();
}
origin: org.graniteds/granite-client

  public int compare(Property p1, Property p2) {
    return p1.getName().compareTo(p2.getName());
  }
};
origin: org.graniteds/granite-client-javafx

  public int compare(Property p1, Property p2) {
    return p1.getName().compareTo(p2.getName());
  }
};
origin: org.graniteds/granite-server

  public int compare(Property p1, Property p2) {
    return p1.getName().compareTo(p2.getName());
  }
};
origin: org.graniteds/granite-client-java

  public int compare(Property p1, Property p2) {
    return p1.getName().compareTo(p2.getName());
  }
};
origin: org.graniteds/granite-client-java-advanced

public String getUidPropertyName(Object entity) {
  if (entity == null)
    throw new IllegalArgumentException("entity should not be null");
  Property property = persistence.getUidProperty(entity instanceof Class<?> ? (Class<?>)entity : entity.getClass());
  return property != null ? property.getName() : null;
}
 
origin: org.graniteds/granite-client

public Property findSerializableProperty(Class<?> cls, String name) throws SecurityException {
  List<Property> properties = findSerializableProperties(cls);
  for (Property property : properties) {
    if (name.equals(property.getName()))
      return property;
  }
  return null;
}
 
origin: org.graniteds/granite-client-java-advanced

public String getIdPropertyName(Object entity) {
  if (entity == null)
    throw new IllegalArgumentException("entity should not be null");
  Property property = persistence.getIdProperty(entity instanceof Class<?> ? (Class<?>) entity : entity.getClass());
  return property != null ? property.getName() : null;
}
origin: org.graniteds/granite-client-java-advanced

private Set<String> getLazyPropertyNames(Class<?> entityClass) {
  Set<String> lazyPropertyNames = lazyPropertiesByClass.get(entityClass);
  if (lazyPropertyNames == null) {
    List<Property> lazyProperties = persistence.getLazyProperties(entityClass);
    lazyPropertyNames = new HashSet<String>();
    for (Property lazyProperty : lazyProperties)
      lazyPropertyNames.add(lazyProperty.getName());
    
    lazyPropertiesByClass.putIfAbsent(entityClass, lazyPropertyNames);            
  }
  return lazyPropertyNames;
}
 
origin: org.graniteds/granite-client-java-advanced

public String getVersionPropertyName(Object entity) {
  if (entity == null)
    throw new IllegalArgumentException("entity should not be null");
  Property property = persistence.getVersionProperty(entity instanceof Class<?> ? (Class<?>)entity : entity.getClass());
  return property != null ? property.getName() : null;
}
 
origin: org.graniteds/granite-client-javafx

public Property findSerializableProperty(Class<?> cls, String name) throws SecurityException {
  List<Property> properties = findSerializableProperties(cls);
  for (Property property : properties) {
    if (name.equals(property.getName()))
      return property;
  }
  return null;
}
 
origin: org.graniteds/granite-server

public Property findSerializableProperty(Class<?> cls, String name) throws SecurityException {
  List<Property> properties = findSerializableProperties(cls);
  for (Property property : properties) {
    if (name.equals(property.getName()))
      return property;
  }
  return null;
}
 
origin: org.graniteds/granite-client-java

public Property findSerializableProperty(Class<?> cls, String name) throws SecurityException {
  List<Property> properties = findSerializableProperties(cls);
  for (Property property : properties) {
    if (name.equals(property.getName()))
      return property;
  }
  return null;
}
 
origin: org.graniteds/granite-client-javafx

values.put(property.getName(), raw ? property.getRawObject(entity) : property.getObject(entity));
throw new RuntimeException("Could not get property " + property.getName() + " on entity " + entity, e);
origin: org.graniteds/granite-client

values.put(property.getName(), raw ? property.getRawObject(entity) : property.getObject(entity));
throw new RuntimeException("Could not get property " + property.getName() + " on entity " + entity);
origin: org.graniteds/granite-client-java

values.put(property.getName(), raw ? property.getRawObject(entity) : property.getObject(entity));
throw new RuntimeException("Could not get property " + property.getName() + " on entity " + entity, e);
origin: org.graniteds/granite-client-java

public void readAndSetProperty(Object obj, Property property) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException {
  if (property.isAnnotationPresent(Include.class) && !property.isWritable())
    property = new NoopWritableProperty(property.getName(), property.getType());
  
  if (property.getType().isPrimitive())
    codecRegistry.getPrimitivePropertyCodec(property.getType()).decodePrimitive(this, obj, property);
  else
    property.setObject(obj, readObject());
}
 
origin: org.graniteds/granite-server

public void readAndSetProperty(Object obj, Property property) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException {
  if (property.isAnnotationPresent(Include.class) && !property.isWritable())
    property = new NoopWritableProperty(property.getName(), property.getType());
  
  if (property.getType().isPrimitive())
    codecRegistry.getPrimitivePropertyCodec(property.getType()).decodePrimitive(this, obj, property);
  else
    property.setObject(obj, readObject());
}
 
origin: org.graniteds/granite-client-javafx

public void readAndSetProperty(Object obj, Property property) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException {
  if (property.isAnnotationPresent(Include.class) && !property.isWritable())
    property = new NoopWritableProperty(property.getName(), property.getType());
  
  if (property.getType().isPrimitive())
    codecRegistry.getPrimitivePropertyCodec(property.getType()).decodePrimitive(this, obj, property);
  else
    property.setObject(obj, readObject());
}
 
origin: org.graniteds/granite-client

public void readAndSetProperty(Object obj, Property property) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException {
  if (property.isAnnotationPresent(Include.class) && !property.isWritable())
    property = new NoopWritableProperty(property.getName(), property.getType());
  
  if (property.getType().isPrimitive())
    codecRegistry.getPrimitivePropertyCodec(property.getType()).decodePrimitive(this, obj, property);
  else
    property.setObject(obj, readObject());
}
 
org.granite.messaging.reflectPropertygetName

Popular methods of Property

  • getBoolean
  • getByte
  • getChar
  • getDouble
  • getFloat
  • getInt
  • getLong
  • getObject
  • getShort
  • getType
  • isAnnotationPresent
  • isWritable
  • isAnnotationPresent,
  • isWritable,
  • setBoolean,
  • setByte,
  • setChar,
  • setDouble,
  • setFloat,
  • setInt,
  • setLong

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • getSystemService (Context)
  • compareTo (BigDecimal)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Permission (java.security)
    Legacy security code; do not use.
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JLabel (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Best IntelliJ plugins
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